ci: run fewer macOS jobs on pull requests and cancel superseded progress reports #14399
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14399"
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 LeandroLP23 on 2026-11-01T11:32:38Z.
What
From the CI measurements in #14396 (1,000 runs, 2,141 jobs, 1.4 h): the two macOS relinker jobs queued 39 and 32 minutes (median, p90 about 50) to run 5–6 minutes, and they are the last checks to finish on most relinker-relevant pull requests.
One macOS job on pull requests.
relinkerHostsnow takesintelMac. The pull request path passesmanual, so automatic pull request runs build and test the relinker on macOS arm64 only. Manual runs (workflow_dispatch) and pushes tomainstill add the x86_64 (Rosetta) job. That halves the macOS slots each pull request takes, and Rosetta coverage still runs before and after every merge.CONTRIBUTING.mdsays so.Fewer macOS jobs for libc pull requests.
register-contextandwrite-watchalso take macOS slots on every pull request that touches libc. In the window, their macOS jobs queued 33–63 minutes to run 1–1.5 minutes. Onpull_requestevents:register-contextruns onmacos-15-intelin Release only, through a matrixexcludekeyed on the event. Release is the build that inlines the register save code.write-watchruns onmacos-15only.Ubuntu keeps Debug and Release. Manual runs and pushes to
mainkeep the full matrices. No check is required onmain(required_status_checksis empty), so dropping matrix entries on pull requests blocks nothing.Progress reportcancels superseded pull request runs. It had noconcurrencygroup, so a second push left the first report running. The group and the cancel condition follow the ones #13954 adds to the other workflows.Progress commentonly acts on a successful report, so a cancelled one posts nothing.test_build_eligibility.pygainstest_pull_requests_run_one_macos_architecture_and_manual_runs_both. It runs the eligibility script for a pull request and for a manual run, and checks the macOS hosts inrelinker-hosts. It fails withmain'sbuild.yml(['native', 'x86_64'] != ['native']) and passes here.Not changed, despite #14396:
Conflict label's push trigger. Its cancelled runs in the window were all cancelled while queued (14 of 14 ran no step), so withcancel-in-progressthe trigger only debounces and costs almost nothing.Tested
tools/tests/test_build_eligibility.py(11 tests, the new one included),test_progress_report_inputs.pyandtest_check_conventions_ci_gate.pypass.check_conventions.py --base origin/mainpasses.build.yml, so its own run starts every job and shows the pull request matrices: onerelinker (macos-latest, clang++)job without the x86_64 one,register-context (macos-15-intel, Release)without Debug, andwrite-watch (macos-15)only.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)CONTRIBUTING.mdparagraph (textual conflict only); whichever lands second rebases.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T14:18:15Z.
Review: COMMENTED
Reviewed — no blocking findings
The change drops the Intel macOS relinker job and the Intel macOS Debug register-context job from automatic pull-request runs and keeps them for manual runs, which the workflow code and the new unit test match; both workflow files parse, and the job matrices resolve as intended.
What I ran
06b0a4fb91ec49484a0c916e127a340e24bf7f5c, basee53aff3f56(the precheck base)./usr/bin/python33.11.2 with PyYAML, no build.python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14399 --output-dir /dev/shm/reviewer-run/precheck/14399. Its unit run oftools/tests/test_build_eligibility.pypassed at head, and its negative control failed on base by assertion..github/workflows/build.ymland.github/workflows/progress-report.ymlat head withyaml.safe_load: both parse; theregister-contextmatrix has the newexcludeentry, andwrite-watchhas thefromJSONoperating-system selection.relinkerHostschange (theintelMacparameter defaults to true and the pull-request path passesmanual), theconcurrencyblock inprogress-report.yml, and the CONTRIBUTING.md paragraph.Results
Precheck report, checks table, unedited (
/dev/shm/reviewer-run/precheck/14399/report.md):The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check e53aff3f560e05730a608f7fb3084f2010abfacb...06b0a4fb91ec49484a0c916e127a340e24bf7f5c/usr/bin/python3 tools/check_conventions.py --base e53aff3f560e05730a608f7fb3084f2010abfacb --head 06b0a4fb91ec49484a0c916e127a340e24bf7f5c --title ci: run fewer macOS jobs on pull requests and cancel superseded progress reports --body /dev/shm/reviewer-run/precheck/14399/pr-body.mdNo changed source or public header under core/libs/prx.No changed Python implementation files./usr/bin/python3 -m unittest tools.tests.test_build_eligibility/usr/bin/python3 tools/check_test_registration.py --scripts/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14399 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14399/stackNo C/C++ implementation or test files changed./usr/bin/python3 /dev/shm/reviewer-run/precheck/14399/head-06b0a4fb91ec-a203b9c6/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14399/head-06b0a4fb91ec-a203b9c6 --json .github/workflows/build.yml .github/workflows/progress-report.yml CONTRIBUTING.md tools/tests/test_build_eligibility.pyA pass means every candidate failed by assertion on base; a failure means at least one did not discriminate or could not run. See per-test results.Hosted at this head (the PR's own runs):
relinker (ubuntu-latest, g++),relinker (windows-latest, g++),relinker-asan,register-context (ubuntu-latest, Debug),register-context (ubuntu-latest, Release),windows,report,conventions,eligibilityandlabelssucceeded;conventionswas cancelled once;linuxwas skipped.Negative control
The precheck's negative control runs
test_build_eligibility.pyagainst base and it fails by assertion on the new test (test_pull_requests_run_one_macos_architecture_and_manual_runs_both), so the test discriminates the change.Findings
Blocking: none.
Non-blocking:
excludeentry and thefromJSONselection depend ongithub.event_name; both resolve correctly forpull_requestandworkflow_dispatchin the parse, but only the hosted run confirms them at runtime.Sources
github.com/boykopovar/AnyPS5@06b0a4fb91/.github/workflows/build.yml (L146-L151)github.com/boykopovar/AnyPS5@06b0a4fb91/.github/workflows/build.yml (L270-L276)Not verified