Skip to content

Account for a failed candidate's whole browser report once it has arrived - #737

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-34992769528
Sep 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-34992769528

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

ci went red on main at 328189d with one failure,
test_a_failed_list_candidate_restores_its_complete_committed_reading
(run 34992769528).
The test drained the browser-error list at the rollback checkpoint and found
three entries where it named two:

+     'leaf: read failed: Thread list presentation retry failed',

One failed candidate is reported by three boundaries, and the third one trails
the other two. The presentation publisher names the fault
(semantic-state.js), the reading that was applying it names it again and
rethrows (state-application.js), and the feed that asked for that reading
names it last (state-feed.js:251). Between the second word and the third sits
application.js's receiveState wrapper: its .finally awaits
flushQueuedInvalidation(), so the rejection reaches the feed only after the
queued projection retry the failed application left behind has presented again.
Instrumenting the page put that gap at about 90 ms, with the test's own
round-trips from the conversationRetryHeld wait to the drain taking about the
same. The checkpoint was landing on either side of one boundary's report, and
which side decided the run.

The report is not a state the page rests in, so the test now accounts for it
once, at the end, where the retry has been released and the reading has settled.
The inventory is the same three lines in the same order — nothing is dropped,
and an unexpected fourth still fails the equality. reported_browser_errors
waits for the named inventory before consuming it, so the last boundary's word
cannot be read as absent while it is still on its way; anything past the
inventory still reaches the browser fixture's own end-of-test reading. The wait
is a Playwright call rather than a sleep, because the sync driver only hands
console messages to the test process while it is inside one — a time.sleep
leaves page.lf_errors frozen, which is its own way to read a report as
complete before it is.

Verification

The next main run, 35003473594
on b8ab9ef, was green: the gap is narrow enough that most runs fall on the
early side of it. The arrangement, not the frequency, is what this changes.

The failed list candidate is named by three boundaries, and the feed's own
word trails the other two by however long the queued projection retry the
failed application left behind takes to present. The rollback checkpoint drained
the error list inside that gap, so whether the run was green depended on which
side of the gap the checkpoint landed on.
@max-sixty
max-sixty merged commit 9c2e2d8 into main Sep 15, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-34992769528 branch September 15, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants