Skip to content

ci: Give the push workflow a top-level concurrency group (#962) - #2647

Merged
zackees merged 2 commits into
masterfrom
infra/962-wf-002-push-concurrency
Oct 27, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/962-wf-002-push-concurrency

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

Burn down one WF-002 entry in the #962 ci-lint baseline: .github/workflows/push.yaml gets a top-level concurrency group and loses its [[exceptions]] block in ci.toml.

RED — f920a2b03

ci/test_wf002_concurrency.py gains a row pinning push.yaml's group and a case pinning its cancel-in-progress: false. Against this commit push.yaml has 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 }}'
Ran 3 tests ... FAILED (failures=1)

uvx --from 'git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2' ci-lint precheck on origin/master reports == WF-002 (5) == with [WF-002] APPROVED EXCEPTION .github/workflows/push.yaml.

GREEN — cc062ac76

# after the permissions block
concurrency:
  group: push-${{ github.event_name }}-${{ github.ref }}
  cancel-in-progress: false
  • ci-lint precheck WF-002 drops 5 → 4 and no longer lists push.yaml; nothing else in the report changes except the two SEC-001 push.yaml line numbers (they stay approved exceptions).
  • ci/test_wf002_concurrency.py passes (3 tests OK).
  • ./lint OK (lane lint: ok).

Why cancel-in-progress: false

push.yaml is the master-push entry that calls the cache-warming build-project; #1286 deliberately preserves the one active warm build and drops only older pending snapshots. true would cancel the in-flight warming run, undoing that. The literal push- prefix (not ${{ github.workflow }}) keeps the group distinct per ref.

No docs/features.md line (CI configuration). Refs #962.

@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Local gate note (not blocking): ci-lint local-gate run failed on lane rust-test: FAILED (101) — the x86_64-pc-windows-gnu cross build of obs-c-oracle — then skipped cross, tier2-linux. The diff touches only .github/workflows/push.yaml, ci.toml and ci/test_wf002_concurrency.py (no rust/, no C), so this is the host's cross lane/broker, not this change; the log also reports the running broker was started from a different soldr image (soldr-0.9.35-… vs 0.9.41-…). HEAD is unstamped, so PR CI runs the full suite — that is the merge gate. ./lint is OK (lane lint: ok).

[user]      skip list?
== lane rust-test: FAILED (101)
local-gate: not run after a heavy-lane failure: cross, tier2-linux

Enabling auto-merge; handing to the coordinator.

@zackees
zackees enabled auto-merge October 27, 2026 14:44
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
@zackees
zackees force-pushed the infra/962-wf-002-push-concurrency branch from cc062ac to 1661b52 Compare October 27, 2026 14:45
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master (db777d5fc, after #2646 landed dispatch). Resolved one conflict in ci.toml (master's list minus my push.yaml block — claim-bot and sign-windows kept, push gone) and auto-merged the ci/test_wf002_concurrency.py EXPECTED rows (check-format + dispatch + push) and both cancel-in-progress: false cases (dispatch, push).

Re-stated SHAs after the rebase:

  • RED 7de229d4a — ci/test_wf002_concurrency.py push row fails against master.
  • GREEN 1661b525a — WF-002 drops to == WF-002 (3) == (analyze-project, build-project, sign-windows remain); uv run --no-project --script ci/test_wf002_concurrency.py OK (4 tests).

The PR body's original SHAs (f920a2b03 / cc062ac76) are stale after the rebase.

@zackees
zackees added this pull request to the merge queue Oct 27, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Oct 27, 2026
Merged via the queue into master with commit b926b01 Oct 27, 2026
31 checks passed
@zackees
zackees deleted the infra/962-wf-002-push-concurrency branch October 27, 2026 15:05
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant