ci: label pull requests by area, and mark the ones that need an in-game run #3315

Merged
MoonEyes merged 2 commits from upstream-pr/3315 into main 2026-12-03 10:55:45 +00:00
MoonEyes commented 2026-12-03 10:29:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T10:29:22Z.


Claim: ORG-AREA-LABELS in #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, and needs in-game run for changes under src/ of leonida-gpu, leonida-shader or leonida-hle (unit-test files excluded) or to d3d12/scripts/play*.ps1, the code the gate in docs/game_gate.md covers.
  • .github/workflows/labeler.yml: actions/labeler pinned by commit (v7.0.0) on pull_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-level permissions: {}, job contents: read and pull-requests: write.
  • The nine labels already exist on the repository (created with this pull request).

Tested

  • The needs in-game run globs with Node's path.matchesGlob: leonida-gpu/src/host.rs and leonida-hle/src/modules/ffx.rs match; draw_tests.rs, emit/tests.rs, src/x/tests/a.rs and apps/leonida/src/main.rs do not.
  • python -I on tests/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. jactionlint runs in CI.
  • Not tested on a real pull request: a pull_request_target workflow 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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5624648681 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3315). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T10:29:22Z. --- Claim: `ORG-AREA-LABELS` in #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`, and `needs in-game run` for changes under `src/` of leonida-gpu, leonida-shader or leonida-hle (unit-test files excluded) or to `d3d12/scripts/play*.ps1`, the code the gate in `docs/game_gate.md` covers. - `.github/workflows/labeler.yml`: `actions/labeler` pinned by commit (v7.0.0) on `pull_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-level `permissions: {}`, job `contents: read` and `pull-requests: write`. - The nine labels already exist on the repository (created with this pull request). ## Tested - The `needs in-game run` globs with Node's `path.matchesGlob`: `leonida-gpu/src/host.rs` and `leonida-hle/src/modules/ffx.rs` match; `draw_tests.rs`, `emit/tests.rs`, `src/x/tests/a.rs` and `apps/leonida/src/main.rs` do not. - `python -I` on `tests/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. `jactionlint` runs in CI. - Not tested on a real pull request: a `pull_request_target` workflow 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](https://claude.com/claude-code)
merzleckeier commented 2026-12-03 10:33:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T10:33:09Z.


Two review findings on 8c1120c6:

  • Preserve concurrent label changes. The pinned labeler calls issues.setLabels, which replaces the full list even with sync-labels: false. Its final read preserves labels already visible at that point. A needs rebase label added by tools/pr_conflict_label.py between that read and the write can still be lost. A label removed during the run can also be restored from the initial snapshot. An additive issues.addLabels write for the matched labels would give this workflow the add-only behavior described in the comments.
  • Match the shipped launcher paths. area: launcher only checks launcher/**. A change confined to tools/leonida_launcher.py, tools/launcher_i18n/**, or Launcher.bat gets no launcher label. I checked the actual paths from main against the proposed glob. Please add those paths and a representative path test.

AI-assisted review with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7375403378 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3315#issuecomment-7375403378). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T10:33:09Z. --- Two review findings on `8c1120c6`: - **Preserve concurrent label changes.** The pinned labeler [calls `issues.setLabels`](https://github.com/actions/labeler/blob/bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13/src/api/set-labels.ts#L8-L14), which replaces the full list even with `sync-labels: false`. Its final read preserves labels already visible at that point. A `needs rebase` label added by `tools/pr_conflict_label.py` between that read and the write can still be lost. A label removed during the run can also be restored from the initial snapshot. An additive `issues.addLabels` write for the matched labels would give this workflow the add-only behavior described in the comments. - **Match the shipped launcher paths.** `area: launcher` only checks `launcher/**`. A change confined to `tools/leonida_launcher.py`, `tools/launcher_i18n/**`, or `Launcher.bat` gets no launcher label. I checked the actual paths from `main` against the proposed glob. Please add those paths and a representative path test. AI-assisted review with OpenAI Codex.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!3315
No description provided.