Skip to content

ci: Give the check-format workflow a top-level concurrency group (#962) - #2640

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

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

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

Refs #962. Clears the unapproved ci-lint precheck finding against
.github/workflows/check-format.yaml by fixing it rather than recording an
exception: the workflow gains a top-level concurrency group and its ci.toml
WF-002 [[exceptions]] entry is deleted.

RED

ci/test_wf002_concurrency.py (commit c55299d, test only) fails against
master's check-format.yaml:

uv run python -m unittest ci/test_wf002_concurrency.py
Ran 2 tests ... FAILED (failures=2)
  test_burned_down_workflows_keep_their_group (workflow='check-format.yaml')
  test_a_check_format_run_cancels_the_one_it_supersedes

ci-lint precheck on master (pin a1917ce7…, the pin in ci.toml) reports
it as:

[WF-002] APPROVED EXCEPTION .github/workflows/check-format.yaml
    what:  workflow has no top-level 'concurrency' key
    fix:   add a top-level 'concurrency: { group: <expr>, cancel-in-progress: true }'

GREEN

Commit a4204fa:

  • .github/workflows/check-format.yaml gains a top-level
    concurrency: { group: check-format-${{ github.event_name }}-${{ github.ref }}, cancel-in-progress: true }.
    The literal check-format- prefix keeps the group distinct from the
    calling workflow's own group (ci.yml also sets a top-level concurrency
    group), so a newer run of a ref cancels the one it supersedes.
  • ci.toml: the WF-002 [[exceptions]] block for check-format.yaml is
    deleted.

ci-lint precheck with the change: 556 approved exception(s) (was 557),
16 violation(s), no new one — the WF-002 finding for check-format.yaml is
gone. (The 16 includes RUST-018 on origin/master, fixed separately in
#2639.)

Local, on the change:

  • ci/test_wf002_concurrency.py passes (the RED test now GREEN).
  • ci/test_ci_toml.py, ci/test_uv_run.py,
    ci/test_workflow_duplicate_keys.py, ci/test_workflow_schedule_guard.py,
    ci/test_ci_tests_stdlib_only.py pass.

The pin follows ci/test_ci_job_timeouts.py (the WF-001 analog), so a later
edit that drops the group fails the same lane the linter would.

No docs/features.md line: build tooling only.

@zackees
zackees enabled auto-merge October 27, 2026 13:51
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator.

  • RED c55299dc5 (test only): ci/test_wf002_concurrency.py fails on the missing top-level concurrency group; ci-lint precheck on master reports [WF-002] APPROVED EXCEPTION .github/workflows/check-format.yaml.
  • GREEN a4204fac4: the group is added to check-format.yaml and its ci.toml WF-002 exception is deleted; 556 approved exception(s) (was 557), no new violation.
  • Local: the new test and ci/test_ci_toml.py / test_uv_run.py / test_workflow_duplicate_keys.py / test_workflow_schedule_guard.py / test_ci_tests_stdlib_only.py pass; ruff check + format clean.
  • Auto-merge is on.

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