Skip to content

Stop triage sessions from waiting hours on a dispatched test-macos job - #5315

Closed
leaf-agent wants to merge 2 commits into
mainfrom
daily/review-runs-41794835142-macos-wait
Closed

leaf-agent wants to merge 2 commits into
mainfrom
daily/review-runs-41794835142-macos-wait

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Two triage sessions yesterday each sat idle for about four hours, blocking on the test-macos job of a ci run they had dispatched on their fix branch. Because tend-triage runs 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 ci on the fix's branch … and read that run's test-macos job", 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 ci dispatch input that runs only the named tests on macOS. That would cut the wait from hours to minutes.

Evidence
Run Issue Job time Idle wait Fix PR merged
41592440789 #5184 305 min 00:38–05:07, an until loop polling the test-macos job status every 60 s on dispatch 41746116242 #5267 at 00:39
41592348737 #5174 284 min 15:16–19:27, the same loop every 300 s on dispatch 41659201956 #5218 at 15:17

Before 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.

…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
leaf-agent requested a review from max-sixty as a code owner November 4, 2026 07:57
@leaf-agent leaf-agent added the review-runs Opened by the tend-review-runs sweep label Nov 4, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_
@max-sixty max-sixty closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Opened by the tend-review-runs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants