CI: macOS relinker jobs wait ~40 min in queue on most PRs; bookkeeping jobs wait 10-15 min (data from 1,000 runs) #14396
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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:24:49Z.
I measured where CI time goes, from the last 1,000 workflow runs: 2,141 jobs, 09:56–11:19 UTC today, 1.4 h. The bottleneck is runner queueing, not job length. The worst case is macOS.
Method. Data from the Actions API (
runs/{id}/jobs). Queue isstarted_at − created_at; run time iscompleted_at − started_at, for completed jobs only. Many cancelled jobs were cancelled while still queued (259 of the 278 cancelledBuildjobs ran no step), so counting their time as runner use would overstate waste. Cancelled jobs that did run cost only about 130 runner minutes in the window, so cancellation is not where time goes.Queue per job (completed jobs):
Hosted runners were busy about 31 at a time on average (2,592 completed-job minutes in 84 minutes).
Build / windowsis the largest single consumer, at 1,041 minutes (40%). Its ccache works: one run had 91% hits, with 189 of 2,172 compiles missing. So there is little to gain there without a bigger change.1. macOS: two jobs per relinker-relevant PR, each queued ~35–40 min.
relinkerHostsalways adds bothmacos-latestvariants.select().relinkerturns on for any change undertools/,cmake/,core/shader/recompiler/, libc,CMakeLists.txt,.github/pull_request_template.mdand.github/workflows/pr-overlap.yml. So a PR that only edits a Python tool, or the PR template, waits about 40 minutes for two macOS slots that finish in 5–6 minutes. #14341 (a SPIR-V emitter change) sat with only the two macOS jobs pending well after every other check had passed. Options:pull_request, run one macOS variant (arm64) and keep x86_64 forpushto main andworkflow_dispatch. That halves macOS demand.tools/prefix to the tools the relinker tests run.2. Bookkeeping jobs wait 10–15 minutes to run for seconds.
PR labels(142 runs in 1.4 h, everyedited/synchronize),Progress comment(91),PR intake(42) andConventions(124) together are about 400 jobs and under 80 runner minutes. Each still takes a hosted slot plus setup, andConventionsfeedback arrives about 13 minutes after a push. Folding the label, intake and progress-comment steps into fewer workflows (one job per PR event), and skippingPR labelsoneditedevents that only touch the body, would cut the job count.3. Smaller:
Conflict labelruns on every push tomainwithcancel-in-progress. In the window 13 of 16 runs were cancelled and 2 finished. It also runs hourly, so the per-push trigger could go.Emscripten library portabilityandProgress reporthave noconcurrencygroup, so a quick second push to a PR leaves the first run going.I can turn 1 (one macOS variant on PRs) or 3 into a PR if either is wanted. 2 changes several workflows, so I'd rather hear which shape you prefer first. The data and the script that produced the tables are attached on request.
AI-assisted: yes (Claude Code)