ci: stop a hung overlap run blocking the group, drop checkout credentials, cancel superseded PR runs #13954
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13954"
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 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 notimeout-minutes, so a hung run would take the GitHub default of six hours and block thepr-overlapconcurrency group, which does not cancel. The job now hastimeout-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.pyfetches its pull request refs from the publichttps://github.com/<repo>.gitURL, andpr_labels.pyonly callsgh. Both checkouts now setpersist-credentials: false, asconventions.ymlalready 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
27e2f1330fonupstream/main73f4f7e06e(five commits; the two newest answer review):timeout-minutes: 45,persist-credentials: false, the concurrency group keyed by commit for pushes, andcancel-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 anadd_testor 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.ymlandinput-mapper.ymlrun on this pull request because it changes them, which is the real test of the new concurrency expression.pr-overlap.ymlandpr-labels.ymlrun only on main, a schedule, or apull_request_targetevent, so their change is verified by parsing and by the reasoning above, not by a run on this pull request.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)