ci: run fewer macOS jobs on pull requests and cancel superseded progress reports #14399

Merged
LeandroLP23 merged 2 commits from upstream-pr/14399 into main 2026-11-06 22:10:44 +00:00
LeandroLP23 commented 2026-11-01 11:32:38 +00:00 (Migrated from github.com)

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. relinkerHosts now takes intelMac. The pull request path passes manual, so automatic pull request runs build and test the relinker on macOS arm64 only. Manual runs (workflow_dispatch) and pushes to main still 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.md says so.

  • Fewer macOS jobs for libc pull requests. register-context and write-watch also 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. On pull_request events:

    • register-context runs on macos-15-intel in Release only, through a matrix exclude keyed on the event. Release is the build that inlines the register save code.
    • write-watch runs on macos-15 only.

    Ubuntu keeps Debug and Release. Manual runs and pushes to main keep the full matrices. No check is required on main (required_status_checks is empty), so dropping matrix entries on pull requests blocks nothing.

  • Progress report cancels superseded pull request runs. It had no concurrency group, 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 comment only acts on a successful report, so a cancelled one posts nothing.

test_build_eligibility.py gains test_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 in relinker-hosts. It fails with main's build.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 with cancel-in-progress the trigger only debounces and costs almost nothing.

Tested

  • Windows 11, Python 3.13, Node 22: tools/tests/test_build_eligibility.py (11 tests, the new one included), test_progress_report_inputs.py and test_check_conventions_ci_gate.py pass.
  • check_conventions.py --base origin/main passes.
  • This PR edits build.yml, so its own run starts every job and shows the pull request matrices: one relinker (macos-latest, clang++) job without the x86_64 one, register-context (macos-15-intel, Release) without Debug, and write-watch (macos-15) only.

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. #11455 rewrites the same CONTRIBUTING.md paragraph (textual conflict only); whichever lands second rebases.
  • Fixes: none (implements part of #14396)
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5106932949 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14399). Originally posted by [LeandroLP23](https://github.com/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.** `relinkerHosts` now takes `intelMac`. The pull request path passes `manual`, so automatic pull request runs build and test the relinker on macOS arm64 only. Manual runs (`workflow_dispatch`) and pushes to `main` still 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.md` says so. - **Fewer macOS jobs for libc pull requests.** `register-context` and `write-watch` also 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. On `pull_request` events: - `register-context` runs on `macos-15-intel` in Release only, through a matrix `exclude` keyed on the event. Release is the build that inlines the register save code. - `write-watch` runs on `macos-15` only. Ubuntu keeps Debug and Release. Manual runs and pushes to `main` keep the full matrices. No check is required on `main` (`required_status_checks` is empty), so dropping matrix entries on pull requests blocks nothing. - **`Progress report` cancels superseded pull request runs.** It had no `concurrency` group, 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 comment` only acts on a successful report, so a cancelled one posts nothing. `test_build_eligibility.py` gains `test_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 in `relinker-hosts`. It fails with `main`'s `build.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 with `cancel-in-progress` the trigger only debounces and costs almost nothing. ### Tested - Windows 11, Python 3.13, Node 22: `tools/tests/test_build_eligibility.py` (11 tests, the new one included), `test_progress_report_inputs.py` and `test_check_conventions_ci_gate.py` pass. - `check_conventions.py --base origin/main` passes. - This PR edits `build.yml`, so its own run starts every job and shows the pull request matrices: one `relinker (macos-latest, clang++)` job without the x86_64 one, `register-context (macos-15-intel, Release)` without Debug, and `write-watch (macos-15)` only. ### 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. #11455 rewrites the same `CONTRIBUTING.md` paragraph (textual conflict only); whichever lands second rebases. - [x] Fixes: none (implements part of #14396) - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-11-01 14:18:15 +00:00 (Migrated from github.com)

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

  • Exact head 06b0a4fb91ec49484a0c916e127a340e24bf7f5c, base e53aff3f56 (the precheck base).
  • Environment: Linux, /usr/bin/python3 3.11.2 with PyYAML, no build.
  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14399 --output-dir /dev/shm/reviewer-run/precheck/14399. Its unit run of tools/tests/test_build_eligibility.py passed at head, and its negative control failed on base by assertion.
  • YAML parse of .github/workflows/build.yml and .github/workflows/progress-report.yml at head with yaml.safe_load: both parse; the register-context matrix has the new exclude entry, and write-watch has the fromJSON operating-system selection.
  • Read at head: the relinkerHosts change (the intelMac parameter defaults to true and the pull-request path passes manual), the concurrency block in progress-report.yml, and the CONTRIBUTING.md paragraph.

Results

Precheck report, checks table, unedited (/dev/shm/reviewer-run/precheck/14399/report.md):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check e53aff3f560e05730a608f7fb3084f2010abfacb...06b0a4fb91ec49484a0c916e127a340e24bf7f5c
conventions_and_pr_template passed /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.md
changed_export_abi_audit not_applicable No changed source or public header under core/libs/prx.
python_syntax not_applicable No changed Python implementation files.
unit:tools/tests/test_build_eligibility.py passed /usr/bin/python3 -m unittest tools.tests.test_build_eligibility
python_test_registration passed /usr/bin/python3 tools/check_test_registration.py --scripts
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14399 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14399/stack
build_dependent_cpp_tests not_applicable No C/C++ implementation or test files changed.
test_quality_heuristics failed /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.py
negative_controls passed A 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, eligibility and labels succeeded; conventions was cancelled once; linux was skipped.

Negative control

The precheck's negative control runs test_build_eligibility.py against 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:

  • Trade-off, for the maintainers: automatic pull-request runs no longer build or test the relinker on macOS x86_64, nor the Intel macOS Debug register-context job. The PR's justification is queue-time measurements in #14396, which I did not check. CONTRIBUTING.md says the manual run covers the Intel job when needed.
  • The exclude entry and the fromJSON selection depend on github.event_name; both resolve correctly for pull_request and workflow_dispatch in the parse, but only the hosted run confirms them at runtime.

Sources

Not verified

  • The queue-time measurements cited in #14396 were not checked.
  • The Intel macOS jobs on manual and push runs were not exercised here.
  • Hosted: the macOS Intel jobs did not appear in the head's check runs, so their result at this head is not known.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5728537567 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14399#pullrequestreview-5728537567). Originally posted by [MarcZX10](https://github.com/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 - Exact head `06b0a4fb91ec49484a0c916e127a340e24bf7f5c`, base `e53aff3f56` (the precheck base). - Environment: Linux, `/usr/bin/python3` 3.11.2 with PyYAML, no build. - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14399 --output-dir /dev/shm/reviewer-run/precheck/14399`. Its unit run of `tools/tests/test_build_eligibility.py` passed at head, and its negative control failed on base by assertion. - YAML parse of `.github/workflows/build.yml` and `.github/workflows/progress-report.yml` at head with `yaml.safe_load`: both parse; the `register-context` matrix has the new `exclude` entry, and `write-watch` has the `fromJSON` operating-system selection. - Read at head: the `relinkerHosts` change (the `intelMac` parameter defaults to true and the pull-request path passes `manual`), the `concurrency` block in `progress-report.yml`, and the CONTRIBUTING.md paragraph. ## Results Precheck report, checks table, unedited (`/dev/shm/reviewer-run/precheck/14399/report.md`): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check e53aff3f560e05730a608f7fb3084f2010abfacb...06b0a4fb91ec49484a0c916e127a340e24bf7f5c` | | conventions_and_pr_template | passed | `/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.md` | | changed_export_abi_audit | not_applicable | `No changed source or public header under core/libs/prx.` | | python_syntax | not_applicable | `No changed Python implementation files.` | | unit:tools/tests/test_build_eligibility.py | passed | `/usr/bin/python3 -m unittest tools.tests.test_build_eligibility` | | python_test_registration | passed | `/usr/bin/python3 tools/check_test_registration.py --scripts` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14399 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14399/stack` | | build_dependent_cpp_tests | not_applicable | `No C/C++ implementation or test files changed.` | | test_quality_heuristics | failed | `/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.py` | | negative_controls | passed | `A 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`, `eligibility` and `labels` succeeded; `conventions` was cancelled once; `linux` was skipped. ## Negative control The precheck's negative control runs `test_build_eligibility.py` against 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:** - Trade-off, for the maintainers: automatic pull-request runs no longer build or test the relinker on macOS x86_64, nor the Intel macOS Debug register-context job. The PR's justification is queue-time measurements in #14396, which I did not check. CONTRIBUTING.md says the manual run covers the Intel job when needed. - The `exclude` entry and the `fromJSON` selection depend on `github.event_name`; both resolve correctly for `pull_request` and `workflow_dispatch` in the parse, but only the hosted run confirms them at runtime. ## Sources - Relinker host selection at head: https://github.com/boykopovar/AnyPS5/blob/06b0a4fb91ec49484a0c916e127a340e24bf7f5c/.github/workflows/build.yml#L146-L151 - Manual-run path at head: https://github.com/boykopovar/AnyPS5/blob/06b0a4fb91ec49484a0c916e127a340e24bf7f5c/.github/workflows/build.yml#L270-L276 ## Not verified - The queue-time measurements cited in #14396 were not checked. - The Intel macOS jobs on manual and push runs were not exercised here. - Hosted: the macOS Intel jobs did not appear in the head's check runs, so their result at this head is not known.
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!14399
No description provided.