Repository navigation
Stop triage sessions from waiting hours on a dispatched test-macos job - #5315
Closed
leaf-agent wants to merge 2 commits into
Closed
leaf-agent wants to merge 2 commits into
leaf-agent wants to merge 2 commits into
Conversation
…S check instead of waiting on it The test-macos job takes hours and the triage lane is serialized, so a session that waits on it holds every queued issue behind it.
leaf-agent
commented
Nov 4, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The new paragraph says a macOS-only fix "lands on the checks Linux can run". But Fixing a CI failure's cause still allows a merge without maintainer approval only "once each test it claims to fix failed before the change and passes after it (a skipped or deleted test has not passed)", and adds "run the claimed ones yourself". A macOS-only test can't pass on Linux, so a session reading both sections gets opposite answers. That conflict is how the merge-or-wait question stayed open in the two runs this PR describes. The exception belongs in the rule that grants the merge, where a session decides whether to land, so I'm pushing a commit that adds it to that sentence and points to the macOS paragraph.
…erge rule The macOS paragraph lets a fix for a test only test-macos runs land on the checks Linux can run, but the merge rule in "Fixing a CI failure's cause" still required each claimed test to pass after the change. Name the exception where the merge is granted so the two sections agree.
max-sixty
added a commit
that referenced
this pull request
Nov 4, 2026
`running-tend` told a session fixing a failure only `test-macos` shows to dispatch `ci` on the fix's branch and read that run's `test-macos` job. A triage session takes that as evidence it must collect before it finishes, so it polls the run for its whole length, four to five hours, while it holds the only triage lane. Two Claude triage sessions did so in their first day: #5174's waited 4 h 10 min and #5184's 4 h 46 min. In both, the PR (#5218, #5267) merged within 20 minutes of the wait starting, so the result changed nothing, and #5184's dispatched run ended red after its PR had merged. Leaf already chose not to have Tend sessions wait on CI (`await_ci: false`, #2455), and Tend tells every triage session so. This instruction, added in #3939, asked for a wait the setting doesn't govern, since the dispatched run is outside the PR's checks. It also supplied the "passes after" evidence the merge rule in **Fixing a CI failure's cause** asks for. Now the merge rule says that for a failure only `test-macos` shows, the checks the Linux runner can run suffice, and the macOS paragraph names the next scheduled run on main, after the merge, as the evidence after the fix. The landing sessions already worked that way: both PRs merged before their dispatched runs ended. If the scheduled run still fails, its CI report brings the failure back to triage. Supersedes #5315, which makes the same merge-rule change but still dispatches the macOS run and leaves the cause issue open until a later session reads it. That costs a macOS run and another triage session per fix to learn what the next scheduled run reports anyway. > _This was written by Claude Code on behalf of max-sixty_
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.
Two triage sessions yesterday each sat idle for about four hours, blocking on the
test-macosjob of acirun they had dispatched on their fix branch. Becausetend-triageruns one batch at a time, those waits held up every issue queued behind them: the lane is now about 24 hours behind, with 17 pending runs including the 44-issue recovery batch from 2026-11-03. This changes the overlay's macOS paragraph so the session dispatches that run, names it on the cause issue, and ends. The session that next handles the issue reads the result.The overlay told the session to "dispatch
cion the fix's branch … and read that run'stest-macosjob", but didn't say whether to wait for it. The job runs every tier on macOS and takes about 4.5 hours. Both sessions treated the result as a gate on their merge, but tend-land had already merged each fix within a minute of the wait starting, so the waits gated nothing.Decision for the control-plane owner: with this text, a fix for a macOS-only failure merges on the checks Linux can run. The macOS confirmation comes afterwards, on the cause issue, which stays open until then. That matches how tend-land behaved yesterday, but it is a narrower bar than "each test it claims to fix … passes after" in Fixing a CI failure's cause. If you would rather hold the merge for the macOS result, the alternative is a
cidispatch input that runs only the named tests on macOS. That would cut the wait from hours to minutes.Evidence
untilloop polling thetest-macosjob status every 60 s on dispatch 41746116242Before each wait, both sessions had spent about 15 minutes diagnosing and fixing the test, and about 17 minutes polling the PR's checks. Neither ran the full suite or a later tier locally. Their fixes and their closing comments on the issues were sound, and no maintainer corrected either one.
The triage lane is
concurrency: tend-triage,queue: max. A single-issue run created at 06:51 on 2026-11-03 completed at 07:33 on 2026-11-04.Recorded in the review-runs tracker #5067.