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

Manually merged
github merged 2 commits from github-bot/gh-3315 into gh-pr/3315/base 2026-12-03 10:58:42 +00:00 AGit
Owner

@⁠MoonEyes on GitHub · 2026-12-03 10:29 UTC · original
MoonEyes:org/area-labels → main · +94 −0 · 2 files · 2 commits · merged 2026-12-03 10:55 UTC

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

**@⁠MoonEyes** on GitHub · 2026-12-03 10:29 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3315) `MoonEyes:org/area-labels` → `main` · +94 −0 · 2 files · 2 commits · merged 2026-12-03 10:55 UTC 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)
Add .github/labeler.yml and a pull_request_target workflow running
actions/labeler v7.0.0 (pinned by SHA, sync-labels off, no checkout of pull
request code). Labels: area (d3d12, shader translator, launcher, runtime
(legacy), tools, viewer, docs, ci) and `needs in-game run` for changes under
the gpu/shader/hle src dirs and d3d12/scripts/play*.ps1, excluding tests.rs
and tests/ (docs/game_gate.md).

Claim ORG-AREA-LABELS (#3312).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
all-globs-to-any-file needs one file to match every glob, so three crate globs side by side could never all match;
top-level match objects are AND-ed, so the play-script rule sits with the crate rule under one `any`. *_tests.rs
files are excluded too. Checked with Node's path.matchesGlob on six sample paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 10:32:53 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 10:33 UTC · original

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.

**@⁠merzleckeier** on GitHub · 2026-12-03 10:33 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3315#issuecomment-7375403378) 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.
github-bot changed target branch from main to gh-pr/3315/base 2026-12-03 10:57:35 +00:00
github manually merged commit 8c1120c6e3 into gh-pr/3315/base 2026-12-03 10:58:42 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3315
No description provided.