Repository navigation
ci: Give the push workflow a top-level concurrency group (#962) - #2647
Conversation
|
Local gate note (not blocking): Enabling auto-merge; handing to the coordinator. |
The burned-down workflow set grows by push.yaml; both the group and the
'wait for the run in progress' choice are pinned by
ci/test_wf002_concurrency.py. Against this commit push.yaml carries no
top-level concurrency key, so the new row fails:
FAIL: test_burned_down_workflows_keep_their_group
(workflow='push.yaml')
AssertionError: '' != 'push-${{ github.event_name }}-${{ github.ref }}'
Refs #962
push.yaml had no top-level concurrency key, so a burst of master pushes stacked whole push workflows (the CI Pre janitor, the services and compatibility validations, and the warming build) on the runner pool. Add the group and delete its WF-002 [[exceptions]] block from ci.toml. cancel-in-progress stays false: this is the master cache-warming entry and pending snapshots. The literal push- prefix keeps the group distinct per ref. GREEN: ci-lint precheck WF-002 drops 5 -> 4 and no longer lists push.yaml; ci/test_wf002_concurrency.py passes (was FAILED on the RED commit). Fixes #962
cc062ac to
1661b52
Compare
|
Rebased onto master ( Re-stated SHAs after the rebase:
The PR body's original SHAs ( |
Burn down one WF-002 entry in the #962 ci-lint baseline:
.github/workflows/push.yamlgets a top-levelconcurrencygroup and loses its[[exceptions]]block inci.toml.RED —
f920a2b03ci/test_wf002_concurrency.pygains a row pinningpush.yaml's group and a case pinning itscancel-in-progress: false. Against this commitpush.yamlhas no top-levelconcurrencykey, so the new row fails:uvx --from 'git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2' ci-lint precheckonorigin/masterreports== WF-002 (5) ==with[WF-002] APPROVED EXCEPTION .github/workflows/push.yaml.GREEN —
cc062ac76ci-lint precheckWF-002 drops 5 → 4 and no longer listspush.yaml; nothing else in the report changes except the twoSEC-001push.yamlline numbers (they stay approved exceptions).ci/test_wf002_concurrency.pypasses (3 tests OK)../lintOK (lane lint: ok).Why
cancel-in-progress: falsepush.yamlis the master-push entry that calls the cache-warmingbuild-project; #1286 deliberately preserves the one active warm build and drops only older pending snapshots.truewould cancel the in-flight warming run, undoing that. The literalpush-prefix (not${{ github.workflow }}) keeps the group distinct per ref.No
docs/features.mdline (CI configuration). Refs #962.