Skip to content

ci: Give the dispatch workflow a top-level concurrency group (#962) - #2646

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

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

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

Focused CI/configuration fix for the #962 ci-lint burn-down (WF-002). Local RED evidence plus the separate GREEN commit, per coordination.md §4.

RED — fc1c66c38

test(ci): Pin the dispatch workflow's concurrency group (#962) adds ci/test_wf002_concurrency.py, which fails against the checked-out base:

$ uv run --no-project python -m unittest ci/test_wf002_concurrency.py
FAILED (failures=2)

ci-lint precheck (pin a1917ce7…) reports on origin/master:
[WF-002] APPROVED EXCEPTION .github/workflows/dispatch.yaml — no top-level concurrency key.

GREEN — 4fa56869e

  • .github/workflows/dispatch.yaml gains, after its permissions block:

    concurrency:
      group: dispatch-${{ inputs.job }}-${{ github.event_name }}-${{ github.ref }}
      cancel-in-progress: false
  • the WF-002 [[exceptions]] block for dispatch.yaml is deleted from ci.toml.

ci-lint precheck now prints == WF-002 (5) == with dispatch.yaml absent (6 with it on master); uv run --no-project python -m unittest ci/test_wf002_concurrency.py passes.

Why this group, not the plain form

dispatch.yaml is workflow_dispatch-only and multi-job. The group carries inputs.job so two different manual dispatches on the same ref (steam vs patches) neither cancel nor serialize each other, and cancel-in-progress: false (the claim-bot.yaml precedent for a non-build workflow) so a second dispatch never kills an in-flight release operation. WF-002 checks for the presence of the top-level concurrency key, which is present either way.

No docs/features.md line (CI configuration only).

Refs #962

@zackees
zackees enabled auto-merge October 27, 2026 14:21
@zackees
zackees added this pull request to the merge queue Oct 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 27, 2026
@zackees
zackees force-pushed the infra/962-wf-002-dispatch-concurrency branch from 4fa5686 to d14cee3 Compare October 27, 2026 14:32
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Rebased onto origin/master (b7a503d10) after #2640 landed the check-format WF-002 burn-down, which introduced the same ci/test_wf002_concurrency.py and put this PR into CONFLICTING.

Conflict resolution:

  • ci/test_wf002_concurrency.py (add/add): kept master's table-driven version and added the dispatch.yaml row to EXPECTED plus a test_a_dispatch_never_cancels_an_in_flight_run assertion. One file now pins both burned-down workflows.
  • ci.toml: master's list minus this PR's dispatch.yaml WF-002 block (no other hunk touched).

Rebased SHAs (the PR body's are stale):

  • RED: 5e5e2f62a — test(ci): Pin the dispatch workflow's concurrency group (#962)
  • GREEN: d14cee380 — ci: Give the dispatch workflow a top-level concurrency group (#962)

Local: uv run python -m unittest test_wf002_concurrency.py test_ci_toml.py test_uv_run.py → 27 tests OK; ruff check clean. git diff origin/master --stat is dispatch.yaml +3, ci.toml -6, ci/test_wf002_concurrency.py +8.

Refs #962

@zackees
zackees added this pull request to the merge queue Oct 27, 2026
Merged via the queue into master with commit db777d5 Oct 27, 2026
31 checks passed
@zackees
zackees deleted the infra/962-wf-002-dispatch-concurrency branch October 27, 2026 14:42
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