ci(workflows): decouple main concurrency from lucebox3 queue so hosted jobs seed sccache
Merged
GR
8d ago+15+15+01234567890123456789-4-4-0123456789
Based on main (a70ab3ca2). Independent of #1068, #1070, #1074, and #1076 (no overlapping lines).
What
- Cause (observed on
main):ci.ymlpreviously put allmainpushes into one workflow-level concurrency group (ci-refs/heads/main,cancel-in-progress: false). Wheneverlucebox3had a queue backlog or went offline, a singlemainrun stayed active waiting onlucebox3and blocked every subsequent merge from starting any hosted job (build,build-windows,build-windows-hip,dgx-gb10):mainrun45093666495(2026-11-23T01:16:54Z → 2026-11-24T01:18:09Z) held themainconcurrency slot for 24h, cancelling/blocking 11 subsequent merges (45140798351–45203829685) and stalling45221174045for 8h 27m (16:51Z → 01:18Z).- Until
45221174045finally started and seededsccacheonrefs/heads/main, PRs ran cold:#1074(45216308106) took31m 30sLinux /45m 15stimeout Win CUDA /21m 19sWin HIP, and#1073(45244737064) took38m 05s/31m 13s/30m 09s. - Immediately after
45221174045seededsccache,#1048(45336602898) dropped to7m 52sLinux (92.2% hit) /7m 27sWin CUDA (93.6% hit) /4m 33sWin HIP (83.0% hit).
- Fix (
.github/workflows/ci.yml):- Workflow-level
concurrency: keep cancelling superseded PR runs (opened/synchronize/reopened, attempt 1) underCI-pr-latest-<pr>, while givingpushtomain,merge_group,workflow_dispatch, and reruns (run_attempt > 1) their ownCI-run-<run_id>group so hosted jobs anddgx-gb10start immediately on every merge and seedsccachepromptly. - Job-level
concurrencyongpu-tests-amd: collapse queuedpushruns onmainper arch (lucebox3-main-<arch>,cancel-in-progress: false— at most 1 active + 1 latest pending) so rapid merges don't queue redundant 75mlucebox3builds, while keeping each PR run inlucebox3-run-<run_id>-<arch>so PRs never cancel one another onlucebox3.
- Workflow-level
Baseline & measurement (provisional)
- Observed cold vs warm hosted build times (post-#1062):
- Linux
build:31m 30s–38m 05scold →7m 52swarm (-23m 38sto-30m 13s) build-windows(MSVC + CUDA):31m 13s–45m 15s(timeout) cold →7m 27swarm (-23m 46sto-37m 48s)build-windows-hip(ROCm HIP):21m 19s–30m 09scold →4m 33swarm (-16m 46sto-25m 36s)
- Linux
- After merge: verify with Joggernaut
ci-measureacross >= 5 comparable post-merge runs thatmainhosted builds start within seconds of merge regardless oflucebox3queue state, and that PRsccachehit rates stay warm.
Coverage & checks
- Every job, matrix entry, test suite, and check name is unchanged.
- Checked group names case-insensitively against every other workflow (
docker-${{ github.ref }},lucebox-rtx3090-gpu-runner): zero collisions. - Validated locally:
yaml.safe_loadon.github/workflows/ci.ymland.github/ci/check_commit_messages.py.