Skip to content

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

Closed

Description

@zackees

ci.toml still records this WF-002 block:

# WF-002: Upstream workflows without top-level concurrency; tracked in #962.
[[exceptions]]
rule = "WF-002"
path = ".github/workflows/claim-bot.yaml"

The file it excepts 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 at all, on origin/master 5074635e3: the entry 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 supposed to be what the linter still reports, so a dead entry only hides the next real one.

ci/test_wf002_concurrency.py never pinned this: it checks that each burned-down workflow keeps its group, but nothing checked that the exception for a burned-down workflow goes. That half is the RED commit of the PR.

Scope: delete the seven-line block, add claim-bot.yaml to EXPECTED with its exact group, pin cancel-in-progress: false for it (a superseded run must not cancel claim processing mid-flight), and add the offline "no WF-002 exception for a burned-down workflow" case.

Evidence, both on origin/master 5074635e3:

step result
ci/test_wf002_concurrency.py with the new case AssertionError: Lists differ: ['claim-bot.yaml'] != []
ci-lint precheck 4 violation(s), 363 approved exception(s), 2 needs_review — no WF-002 line
same, with the block deleted 4 violation(s), 363 approved exception(s), 2 needs_review (header neutral: the tool counts only exceptions whose finding is present)
uv run --no-project python -m unittest ci/test_wf002_concurrency.py ci/test_ci_toml.py 56 tests, OK

No workflow behaviour changes: claim-bot.yaml is untouched.

Activity

  1. added
    infra
    on Oct 30, 2026
  2. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Claiming: investigation — ci.toml's dead WF-002 exception for claim-bot.yaml (#2982)

    1. RED: ci/test_wf002_concurrency.py gains the case that a burned-down workflow holds no WF-002 [[exceptions]] block; it fails on origin/master 5074635e3 with ['claim-bot.yaml'] != []. claim-bot.yaml also comes into EXPECTED with its exact group and a cancel-in-progress: false case (a superseded run must not cancel claim processing mid-flight).
    2. GREEN: delete the seven-line WF-002 block from ci.toml. ci-lint precheck at the pin reports no WF-002 finding before or after, so the header stays 4 violation(s), 363 approved exception(s), 2 needs_review; the offline pin is the RED/GREEN. No workflow changes.

    This is the last WF-002 exception in the manifest, which is why it is one PR and not a family.

  3. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    /ready

    Ready check against the definition of Ready:

    1. Scope is concrete. One deletion in ci.toml, one test file; no workflow edit and no behaviour change.
    2. Acceptance criterion is objective. ci/test_wf002_concurrency.py fails without the deletion (['claim-bot.yaml'] != []) and passes with it, and ci-lint precheck names no WF-002 finding either way.
    3. The evidence exists. ci-lint precheck run at ci.toml's own pin on origin/master 5074635e3; the header and the absent WF-002 section are quoted in the body.
    4. No decision is open. The exception is inert by the linter's own output, so deleting it changes no run and no gate.
    5. No dependency. The only reader of the block is ci.toml's schema check, which passes either way.
  4. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Claiming: the dead WF-002 exception in ci.toml (#2982)

    RED and GREEN are pushed together (this is the CI-configuration shape, no remote RED run required): #2983.

    • RED dc6d87515: the new test_burned_down_workflows_hold_no_wf_002_exception fails with ['claim-bot.yaml'] != [].
    • GREEN bf49a3835: the block is gone; ci/test_wf002_concurrency.py ci/test_ci_toml.py = 56 tests OK, and ci-lint precheck prints no WF-002 line either way.

    Waiting on PR CI.

  5. added
    needs-investigation
    on Oct 30, 2026
  6. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    /ready

  7. added
    ready
    and removed
    needs-investigation
    on Oct 30, 2026
  8. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Landed as #2983 (da9535c02): the WF-002 block is gone from ci.toml, claim-bot.yaml is pinned in EXPECTED with cancel-in-progress: false, and test_burned_down_workflows_hold_no_wf_002_exception keeps a burned-down workflow from carrying an exception again. PR CI: Fast Gate ⚡ and Format 🔍 green, CI Gate ✅. No follow-up: this was the last WF-002 exception, so the rule is fully burned down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions