Repository navigation
Description
Summary
A failing check suite on a gh-readonly-queue/* branch is read as a merge-queue CI failure whatever posted it. On sydevs/SahajAtlasWeb#489 one failed at 21:24Z on 2026-11-25 while the queue's own CI run was still going; that run (Actions run 45703832793) concluded success at 21:27:02Z and GitHub merged the PR at 21:27:34Z. The dispatcher had already recorded queueFail against head 6ccbee46, bumped fixCi to 2, and fired a fix-ci session that found nothing to repair.
Approach
dispatcher/resolve.mjs:180-184maps a queue-branchworkflow_runorcheck_suitetoqueue-failedon its conclusion alone. The PR-head path does not work that way:dispatcher/gather.mjs:342-353dropsci.ignoreCheckNamesand reduces to the base ruleset's required checks before anything reads red.- Narrow the queue path the same way: accept the failure only from GitHub Actions' own suite —
ev.check_suite.app.slug === 'github-actions', aworkflow_runalways being Actions — and keep thecancelledexclusion inQUEUE_FAILED(dispatcher/resolve.mjs:30). A Cloudflare Workers build, or any other app's suite on the ephemeral branch, is advisory on the PR head and must be advisory here too. - Carry what failed into the record.
resolvepasses onlyrun, which is null for acheck_suiteevent, anddispatcher/decide.mjs:1170stores that, so afterwards nothing names the suite — this ticket cannot say which app's suite fired it. Record the app slug and the suite or run url, and print them besidepr#<n>:queue-failedin theresolvelog line. - Cover both directions in
dispatcher/test/resolve.test.mjs.
The cost is more than one wasted session. dispatcher/decide.mjs:280-282 keeps queueFail against the head while nothing re-arms it, so every later pass repairs instead of re-arming. A spurious entry on a head that is not already mid-queue spends all three ceilings.ciFixIterations passes and ends in a handback, on a PR whose required checks are green.
Acceptance criteria
- A
check_suite.completedwith conclusionfailureon agh-readonly-queue/*branch, from an app other than GitHub Actions, resolves to zero targets. - A
workflow_runfailure on a queue branch whoseeventismerge_groupresolves topr#<n>:queue-failed. One from any other trigger, and everycheck_suite, resolves to zero targets. (review, Ardnived, 2026-11-26) - A recorded
queueFailnames the run that failed: the run page url the event carried, never null. (review, Ardnived, 2026-11-26) - The
resolvelog line for a queue failure names that run. (review, Ardnived, 2026-11-26)
Verification checklist
-
node --test dispatcher/test/*.test.mjspasses from the checkout and from a.claude/worktrees/<slug>worktree. -
claude plugin validatepasses. - The new non-Actions resolve test fails against
dispatcher/resolve.mjsas it stands before the fix.
Notes
Evidence, all from 2026-11-25 on sydevs/SahajAtlasWeb#489:
- Dispatch
SahajAtlasWeb-489-fix-ci-20261125T212444548Z-cb1b, reasonqueue-failed, eventcheck_suite.completed, fired 21:24:44Z. Theresolvejob loggedcheck_suite.completed → 1 target(s): pr#489:queue-failed(job 139521292282). - The PR's status record carries
queueFail {"sha":"6ccbee46…","run":null}andfixCi: 2. - The one queue run on
gh-readonly-queue/main/pr-489-2b8e2a7d…was Actions run 45703832793:success, 21:27:02Z.list_workflow_runswith that branch returnstotal_count: 1. - PR merged 21:27:34Z by
sydevs-dispatcher[bot]. Every required check on head6ccbee46was green.
In review the reviewer chose to test the trigger rather than the posting app: workflow_run.event === 'merge_group' is the queue's own gate by definition, where app.slug only named who posted a suite. Criteria 2 to 4 above carry that amendment; the ## Approach bullet describing the app test is the original proposal, not what shipped. The decision is on the PR's question thread.
Alternative rejected: read the queue branch's Actions run back before firing. It costs an extra call per event and still races — the queue's CI run was in progress when this event arrived, so the answer would have been "no failure yet" rather than "no failure".
Which app posted the failing suite is not recoverable from the record, which is why recording it is part of the fix. Cloudflare Workers Builds is the only other check-posting app on that repo.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Nov 25, 2026
@sydevs-bot implement
sydevs-dispatcher commentedon Nov 25, 2026
🤖 no session running
approved by Ardnived
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.
fix(dispatcher): test the queue trigger, not the app that posted it