Repository navigation
fix(loop): our own check runs are not CI, however GitHub names them - #86
Merged
Merged
Conversation
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]>
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.
The loop found a way to spend sessions arguing with itself. Five
fix-cisessions fired today, three of them on sydevs/SahajCloud#742, whose only real check had passed. Then the cap, thenawaiting, with a reason that names the dispatcher's own job:Why
ci.ignoreCheckNamesexists because the dispatcher runs onpull_request_target, so its jobs land as check runs on the PR head. It listeddispatch / actand 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 theactjobs are serialized per item withcancel-in-progress, which makes cancelled legs routine — and a cancelled run reads as failing.The head of #742 at the time:
Lint, Test & Smokedispatch / act (…, review, …)dispatch / act (…, issue_comment, …)dispatch / resolve,dispatch / journal,legacyThe fix
The list matches a name or that name followed by a matrix suffix, and gains
dispatch / journalandlegacy— both ours, both on the head.dispatch / actions-otheris still counted: the suffix has to be a matrix suffix, not any longer name.docs/why.md#our-own-check-runs-are-not-cirecords 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.mjsdrives the verbatim check-run list from #742 throughgather, 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
awaitingcleared 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.