Repository navigation
Account for a failed candidate's whole browser report once it has arrived - #737
Merged
Merged
Conversation
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.
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.
ciwent 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:
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 andrethrows (
state-application.js), and the feed that asked for that readingnames it last (
state-feed.js:251). Between the second word and the third sitsapplication.js'sreceiveStatewrapper: its.finallyawaitsflushQueuedInvalidation(), so the rejection reaches the feed only after thequeued 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
conversationRetryHeldwait to the drain taking about thesame. 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_errorswaits 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.sleepleaves
page.lf_errorsfrozen, which is its own way to read a report ascomplete before it is.
Verification
tests/test_render_application_boundary.py— 8 passed. The repaired case alsopassed five consecutive
-n0runs.uv run pytest tests— 1119 passed, 4 failed: the umask case, the tworead-only
/tmpcases, and thebundleLayercase this sandbox cannot run.Each is the same set Fix three nightly failures: the adapter's startup beacon, the screenshot flip's margin command, and a ring specimen behind a closed tab #734 recorded, and each is unrelated to this diff.
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.