Skip to content

ci: drop claim-bot.yaml's dead WF-002 exception and pin the class (#2982) - #2983

Merged
zackees merged 2 commits into
masterfrom
infra/962-wf002-claim-bot
Oct 30, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/962-wf002-claim-bot

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

Fixes #2982. Refs #962.

ci.toml still records a WF-002 exception for .github/workflows/claim-bot.yaml, but that file has carried its top-level group since the org claim bot took claims over (#2286, 9d6caff9b):

concurrency:
  group: claim-bot-${{ github.event.issue.number || 'sweep' }}
  cancel-in-progress: false

So ci-lint precheck at the pin in ci.toml (zackees/ci.yml@a1917ce…) reports no WF-002 finding — the block has been inert since #2286, and it is the last WF-002 exception in the manifest (WF-002 is now fully burned down). The recorded baseline is meant to be what the linter still reports, so a dead entry hides the next real one.

RED (test(ci) commit)

ci/test_wf002_concurrency.py checked that each burned-down workflow keeps its group, but nothing checked that the exception for a burned-down workflow goes. On origin/master 5074635e3:

uv run --no-project python -m unittest ci/test_wf002_concurrency.py
AssertionError: Lists differ: ['claim-bot.yaml'] != []
... : these workflows carry a top-level concurrency group, so ci.toml must not
    keep a WF-002 [[exceptions]] block for them (#962)

Ran 9 tests, FAILED (failures=1)

The same commit adds claim-bot.yaml to EXPECTED with its exact group and pins cancel-in-progress: false for it (the same reasoning as push.yaml: a superseded run must not cancel claim processing mid-flight; the group already serialises one issue's events).

GREEN (ci commit)

Delete the seven-line block. No workflow file changes, so no run's behaviour moves.

uv run --no-project python -m unittest ci/test_wf002_concurrency.py ci/test_ci_toml.py
Ran 56 tests, OK

ci-lint precheck (before)  : 4 violation(s), 363 approved exception(s), 2 needs_review, in 27.03s
ci-lint precheck (after)   : 4 violation(s), 363 approved exception(s), 2 needs_review, in 42.79s

The header is deliberately unchanged: the tool counts only exceptions whose finding is present, so an inert entry never showed up in it — which is exactly why this half needed an offline pin. ci-lint precheck prints no WF-002 line in either run.

No docs/features.md line: CI configuration, not user-visible behaviour.

No local-gate stamp: this PR touches ci.toml and ci/ only, and the ci/ self-tests are pinned above (uv run ci/local_gate.py --only self-test is the lane that runs them).

Reviewer notes

  • This is a test-plus-manifest change, not a rule fix: nothing about WF-002's coverage changes.
  • If a future workflow file gains a top-level group without its exception being deleted, the new case fails, which is the mechanism this PR adds.

…962)

RED on origin/master: `test_burned_down_workflows_hold_no_wf_002_exception`
fails with `['claim-bot.yaml'] != []` — the workflow gained its top-level
`concurrency` group with the org claim bot (#2286) but ci.toml still records
its WF-002 [[exceptions]] block, so the recorded baseline carries one
exception for a finding that no longer exists.

Also pins claim-bot.yaml's group and `cancel-in-progress: false` (a superseded
run must not cancel claim processing mid-flight), and adds it to EXPECTED so
a later edit that drops the group fails here the same way the linter would.

Refs #962
claim-bot.yaml carries the top-level group `claim-bot-${{ github.event.issue.number
|| 'sweep' }}` with `cancel-in-progress: false` since the org claim bot took
claims over (#2286), so ci-lint's WF-002 no longer reports the file and the
recorded exception has been inert ever since: `ci-lint precheck` on
origin/master prints no WF-002 line at all, before or after this change.

Deleting it keeps ci.toml's baseline honest — the recorded set is what the
linter still reports, and a dead entry hides the next real one.
`ci-lint precheck` header is unchanged at `4 violation(s), 363 approved
exception(s), 2 needs_review` because the tool counts only exceptions whose
finding is present; the RED half of this PR is the offline pin that now fails
without this deletion.

Refs #962
@zackees
zackees added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit da9535c Oct 30, 2026
35 checks passed
@zackees
zackees deleted the infra/962-wf002-claim-bot branch October 30, 2026 03:47
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.

infra: ci.toml still records a WF-002 exception for claim-bot.yaml, which has carried its group since #2286

1 participant