Repository navigation
ci: drop claim-bot.yaml's dead WF-002 exception and pin the class (#2982) - #2983
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2982. Refs #962.
ci.tomlstill 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):So
ci-lint precheckat the pin inci.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.pychecked that each burned-down workflow keeps its group, but nothing checked that the exception for a burned-down workflow goes. Onorigin/master5074635e3:The same commit adds
claim-bot.yamltoEXPECTEDwith its exact group and pinscancel-in-progress: falsefor it (the same reasoning aspush.yaml: a superseded run must not cancel claim processing mid-flight; the group already serialises one issue's events).GREEN (
cicommit)Delete the seven-line block. No workflow file changes, so no run's behaviour moves.
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 precheckprints noWF-002line in either run.No
docs/features.mdline: CI configuration, not user-visible behaviour.No local-gate stamp: this PR touches
ci.tomlandci/only, and theci/self-tests are pinned above (uv run ci/local_gate.py --only self-testis the lane that runs them).Reviewer notes