ci(labels): checkout before area labeler #969

Merged
Saibamen merged 1 commit from upstream-pr/969 into main 2026-10-09 20:58:09 +00:00
Saibamen commented 2026-10-06 20:45:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Saibamen on 2026-10-06T20:45:26Z.


What

  • Area labels: check out the repository before actions/labeler when labeling open PRs, so .github/labeler.yml is read from the runner instead of being fetched from the API once per PR in the batch.

Scheduled Area labels jobs were taking several minutes with hundreds of open PRs; the labeler step logged The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api on every PR (example: actions run 37502653127).

Tested

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4764444765 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/969). Originally posted by [Saibamen](https://github.com/Saibamen) on 2026-10-06T20:45:26Z. --- ### What - **Area labels:** check out the repository before `actions/labeler` when labeling open PRs, so `.github/labeler.yml` is read from the runner instead of being fetched from the API once per PR in the batch. Scheduled Area labels jobs were taking several minutes with hundreds of open PRs; the labeler step logged `The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api` on every PR (example: [actions run 37502653127](https://github.com/boykopovar/AnyPS5/actions/runs/37502653127)). ### Tested - https://github.com/Saibamen/AnyPS5/actions/runs/37790115892/job/113354971342 ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
adriadam10 commented 2026-10-08 05:24:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T05:24:01Z.

Review: CHANGES_REQUESTED


Thanks. The checkout before actions/labeler looks right (same checkout@v7 as the other workflows). Requests:

  • labels.yml:9: the new .github/labeler.yml path trigger does nothing useful. labels.yml only creates/updates labels with gh label and never reads labeler.yml; the per-PR labeling is done by area-labels.yml. Please drop it.
  • conflict-label.yml:21: secrets.GITHUB_TOKEN → github.token is a no-op (same token) and unrelated to the labeler speed-up. Please drop it (one topic per PR).
  • Evidence: the PR says it wasn't run. Please run Area labels via workflow_dispatch from this branch and attach the run link, showing that the configuration file ... was not found locally, fetching via the api lines are gone and the duration vs. a scheduled run.

Remaining change after that: the checkout step in area-labels.yml.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5451888312 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/969#pullrequestreview-5451888312). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-08T05:24:01Z. **Review:** CHANGES_REQUESTED --- Thanks. The checkout before `actions/labeler` looks right (same `checkout@v7` as the other workflows). Requests: - `labels.yml:9`: the new `.github/labeler.yml` path trigger does nothing useful. `labels.yml` only creates/updates labels with `gh label` and never reads `labeler.yml`; the per-PR labeling is done by `area-labels.yml`. Please drop it. - `conflict-label.yml:21`: `secrets.GITHUB_TOKEN` → `github.token` is a no-op (same token) and unrelated to the labeler speed-up. Please drop it (one topic per PR). - Evidence: the PR says it wasn't run. Please run **Area labels** via `workflow_dispatch` from this branch and attach the run link, showing that the `configuration file ... was not found locally, fetching via the api` lines are gone and the duration vs. a scheduled run. Remaining change after that: the checkout step in `area-labels.yml`.
Saibamen commented 2026-10-08 14:10:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Saibamen on 2026-10-08T14:10:13Z.


Fixed after code review
https://github.com/Saibamen/AnyPS5/actions/runs/37790115892/job/113354971342

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6061723017 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/969#issuecomment-6061723017). Originally posted by [Saibamen](https://github.com/Saibamen) on 2026-10-08T14:10:13Z. --- Fixed after code review https://github.com/Saibamen/AnyPS5/actions/runs/37790115892/job/113354971342
oneandonlydean commented 2026-10-09 09:21:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:21:50Z.


The conventions check fails on the unticked template checklist; please tick the items that apply (the run's log lists them). The linux failure is from main at that base, not from this change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6078113577 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/969#issuecomment-6078113577). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T09:21:50Z. --- The `conventions` check fails on the unticked template checklist; please tick the items that apply (the run's log lists them). The `linux` failure is from main at that base, not from this change.
Saibamen commented 2026-10-09 11:13:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Saibamen on 2026-10-09T11:13:50Z.


done

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6079747508 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/969#issuecomment-6079747508). Originally posted by [Saibamen](https://github.com/Saibamen) on 2026-10-09T11:13:50Z. --- done
adriadam10 commented 2026-10-09 20:58:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T20:58:06Z.

Review: APPROVED


Thanks, the checkout before actions/labeler is the only change left and it looks right: the workflow only runs on schedule/dispatch from main, so no PR code is checked out. Merging once CI is green.

Once it's on main, a workflow_dispatch run of Area labels would confirm the "fetching via the api" lines are gone.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5475292906 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/969#pullrequestreview-5475292906). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-09T20:58:06Z. **Review:** APPROVED --- Thanks, the checkout before `actions/labeler` is the only change left and it looks right: the workflow only runs on schedule/dispatch from `main`, so no PR code is checked out. Merging once CI is green. Once it's on `main`, a `workflow_dispatch` run of Area labels would confirm the "fetching via the api" lines are gone.
Saibamen commented 2026-10-09 22:11:42 +00:00 (Migrated from github.com)
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090108065 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/969#issuecomment-6090108065). Originally posted by [Saibamen](https://github.com/Saibamen) on 2026-10-09T22:11:42Z. --- Before: 3m 25s https://github.com/boykopovar/AnyPS5/actions/runs/37988385670/job/114016013277 After: 2m 6s https://github.com/boykopovar/AnyPS5/actions/runs/37994547951/job/114037113446
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
boykopovar/AnyPS5!969
No description provided.