ci: stop a hung overlap run blocking the group, drop checkout credentials, cancel superseded PR runs #13954

Merged
MarcZX10 merged 5 commits from upstream-pr/13954 into main 2026-11-14 05:54:03 +00:00
MarcZX10 commented 2026-10-31 13:47:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T13:47:46Z.


What

Three small CI hardening changes, one commit each. None changes what the jobs build or test.

  • pr-overlap.yml: the overlap job has no timeout-minutes, so a hung run would take the GitHub default of six hours and block the pr-overlap concurrency group, which does not cancel. The job now has timeout-minutes: 45. Measured in review on the last 58 successful runs: the job takes up to 25.7 minutes and 18 to 23 minutes today, and it grows with the number of open pull requests, so 30 minutes would start timing out.
  • pr-overlap.yml, pr-labels.yml: the checkout kept its token in .git/config. Neither job pushes or runs git against an authenticated remote: pr_overlap.py fetches its pull request refs from the public https://github.com/<repo>.git URL, and pr_labels.py only calls gh. Both checkouts now set persist-credentials: false, as conventions.yml already does.
  • emscripten-libraries.yml, input-mapper.yml: a new push to a pull request now cancels the run that it supersedes. The group is per pull request for pull request events and per commit for pushes, and pushes are never cancelled. A group holds only one pending run, so a per-ref group for pushes would drop runs when several pushes queue behind one another.

Tested

Linux, this branch at 27e2f1330f on upstream/main 73f4f7e06e (five commits; the two newest answer review):

  • Each changed workflow parses with PyYAML 6.0.3, and the changed keys hold the intended values (timeout-minutes: 45, persist-credentials: false, the concurrency group keyed by commit for pushes, and cancel-in-progress).
  • python3 tools/check_conventions.py --base upstream/main: all conventions checks passed.
  • python3 tools/tests/test_check_conventions_ci_gate.py: OK.
  • python3 tools/check_test_registration.py --scripts: 230 test scripts, each run by an add_test or a workflow.
  • git diff --check upstream/main HEAD: clean.
  • tools/pr_overlap.py --branch: no overlap with open pull requests (1,628 probed).

Not run: actionlint (not installed here), and a run of the changed workflows on GitHub. emscripten-libraries.yml and input-mapper.yml run on this pull request because it changes them, which is the real test of the new concurrency expression. pr-overlap.yml and pr-labels.yml run only on main, a schedule, or a pull_request_target event, so their change is verified by parsing and by the reasoning above, not by a run on this pull request.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5098078979 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13954). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T13:47:46Z. --- ### What Three small CI hardening changes, one commit each. None changes what the jobs build or test. - `pr-overlap.yml`: the overlap job has no `timeout-minutes`, so a hung run would take the GitHub default of six hours and block the `pr-overlap` concurrency group, which does not cancel. The job now has `timeout-minutes: 45`. Measured in review on the last 58 successful runs: the job takes up to 25.7 minutes and 18 to 23 minutes today, and it grows with the number of open pull requests, so 30 minutes would start timing out. - `pr-overlap.yml`, `pr-labels.yml`: the checkout kept its token in `.git/config`. Neither job pushes or runs git against an authenticated remote: `pr_overlap.py` fetches its pull request refs from the public `https://github.com/<repo>.git` URL, and `pr_labels.py` only calls `gh`. Both checkouts now set `persist-credentials: false`, as `conventions.yml` already does. - `emscripten-libraries.yml`, `input-mapper.yml`: a new push to a pull request now cancels the run that it supersedes. The group is per pull request for pull request events and per commit for pushes, and pushes are never cancelled. A group holds only one pending run, so a per-ref group for pushes would drop runs when several pushes queue behind one another. ### Tested Linux, this branch at `27e2f1330f` on `upstream/main` `73f4f7e06e` (five commits; the two newest answer review): - Each changed workflow parses with PyYAML 6.0.3, and the changed keys hold the intended values (`timeout-minutes: 45`, `persist-credentials: false`, the concurrency group keyed by commit for pushes, and `cancel-in-progress`). - `python3 tools/check_conventions.py --base upstream/main`: all conventions checks passed. - `python3 tools/tests/test_check_conventions_ci_gate.py`: OK. - `python3 tools/check_test_registration.py --scripts`: 230 test scripts, each run by an `add_test` or a workflow. - `git diff --check upstream/main HEAD`: clean. - `tools/pr_overlap.py --branch`: no overlap with open pull requests (1,628 probed). Not run: `actionlint` (not installed here), and a run of the changed workflows on GitHub. `emscripten-libraries.yml` and `input-mapper.yml` run on this pull request because it changes them, which is the real test of the new concurrency expression. `pr-overlap.yml` and `pr-labels.yml` run only on main, a schedule, or a `pull_request_target` event, so their change is verified by parsing and by the reasoning above, not by a run on this pull request. ### 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/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
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!13954
No description provided.