Skip to content

fix(loop): our own check runs are not CI, however GitHub names them - #86

Merged
Ardnived merged 1 commit into
mainfrom
claude/ignore-our-own-checks
Sep 9, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/ignore-our-own-checks

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The loop found a way to spend sessions arguing with itself. Five fix-ci sessions fired today, three of them on sydevs/SahajCloud#742, whose only real check had passed. Then the cap, then awaiting, with a reason that names the dispatcher's own job:

⚠️ ci-capped · sydevs/SahajCloud#742 CI capped: failing:
   dispatch / act (sydevs, SahajCloud, sydevs/SahajCloud, pr, 742, review, pull_request_review.submitted, …),
   dispatch / act (sydevs, SahajCloud, sydevs/SahajCloud, pr, 742, issue_comment, pull_request_review_comment.c…)

Why

ci.ignoreCheckNames exists because the dispatcher runs on pull_request_target, so its jobs land as check runs on the PR head. It listed dispatch / act and matched by equality.

GitHub does not name a matrix leg that. It names it dispatch / act (<every matrix parameter>), so the list never matched one. And the act jobs are serialized per item with cancel-in-progress, which makes cancelled legs routine — and a cancelled run reads as failing.

The head of #742 at the time:

Check Result
Lint, Test & Smoke success
dispatch / act (…, review, …) cancelled
dispatch / act (…, issue_comment, …) cancelled
dispatch / resolve, dispatch / journal, legacy success / skipped

The fix

The list matches a name or that name followed by a matrix suffix, and gains dispatch / journal and legacy — both ours, both on the head. dispatch / actions-other is still counted: the suffix has to be a matrix suffix, not any longer name.

docs/why.md#our-own-check-runs-are-not-ci records the general shape, which is the part worth keeping: anything the dispatcher does on a PR becomes input the dispatcher reads. Every filter over that has to be written against what GitHub emits, not what the workflow file says.

Test results

dispatcher/test/gather-ci.test.mjs drives the verbatim check-run list from #742 through gather, and asserts nothing is failing and CI is green. Checked both ways: it fails against the old exact matcher and passes with the fix. 61 tests pass overall.

After merging

#742 needs its awaiting cleared and a nudge, since nothing will re-derive a draft until its next event. The other five open drafts have not capped yet and will settle on their own.

ci.ignoreCheckNames matched by equality. GitHub names a matrix leg
`dispatch / act (sydevs, SahajCloud, …, pr, 742, review, …)`, so it never
matched one. The act jobs are serialized with cancel-in-progress, cancelled
legs are routine, and a cancelled run reads as failing.

So the dispatcher read its own cancelled jobs as red CI and fired fix-ci
against a PR whose only real check had passed: five sessions, three on
SahajCloud#742, then the cap and `awaiting` naming its own job.

The list now matches a name or that name plus a matrix suffix, and gains
`dispatch / journal` and `legacy`. The test drives the verbatim check-run
list from #742 and fails against the old matcher.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant