ci: label pull requests by area, and mark the ones that need an in-game run #3315
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3315"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T10:29:22Z.
Claim:
ORG-AREA-LABELSin #3312.188 of the 214 open pull requests carry no label, and nothing can mark "render change, needs an in-game run". This adds area labels set from the paths a pull request changes.
.github/labeler.yml:area: d3d12,area: shader translator,area: launcher,area: runtime (legacy),area: tools,area: viewer,area: docs,area: ci, andneeds in-game runfor changes undersrc/of leonida-gpu, leonida-shader or leonida-hle (unit-test files excluded) or tod3d12/scripts/play*.ps1, the code the gate indocs/game_gate.mdcovers..github/workflows/labeler.yml:actions/labelerpinned by commit (v7.0.0) onpull_request_target, with no checkout, so no code from the pull request runs with the write token.sync-labels: false: it only adds labels, never removes one set by hand. Top-levelpermissions: {}, jobcontents: readandpull-requests: write.Tested
needs in-game runglobs with Node'spath.matchesGlob:leonida-gpu/src/host.rsandleonida-hle/src/modules/ffx.rsmatch;draw_tests.rs,emit/tests.rs,src/x/tests/a.rsandapps/leonida/src/main.rsdo not.python -Iontests/test_ci_registration.py,test_no_game_data_workflow.py,test_pr_conflict_label.py,test_docs_pr_template.py,test_progress_dashboard_ci.py,test_check_apt_key.py: OK.jactionlintruns in CI.pull_request_targetworkflow runs from main, so it starts labelling after the merge.AI-assisted (Claude Code, Claude Opus 5.5). Independent review: a separate Claude Opus 5.5 agent before merge.
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:33:09Z.
Two review findings on
8c1120c6:issues.setLabels, which replaces the full list even withsync-labels: false. Its final read preserves labels already visible at that point. Aneeds rebaselabel added bytools/pr_conflict_label.pybetween that read and the write can still be lost. A label removed during the run can also be restored from the initial snapshot. An additiveissues.addLabelswrite for the matched labels would give this workflow the add-only behavior described in the comments.area: launcheronly checkslauncher/**. A change confined totools/leonida_launcher.py,tools/launcher_i18n/**, orLauncher.batgets no launcher label. I checked the actual paths frommainagainst the proposed glob. Please add those paths and a representative path test.AI-assisted review with OpenAI Codex.