Repository navigation
Renderer-crash test: wait for the crash itself, and give the fixture time under load - #2800
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 2, 2026 16:55
davidmckayv
force-pushed
the
fix/renderer-crash-flake
branch
from
December 2, 2026 17:08
6861f87 to
92f3134
Compare
davidmckayv
force-pushed
the
fix/renderer-crash-flake
branch
from
December 2, 2026 20:39
92f3134 to
9a5c5e9
Compare
…time under load The fixture's tests ran under bun's default 5-second timeout. Under CI's load, three crashes and new pages took longer: bun failed the test for its time, killed the Chromium it had left running, and every fixture test after it failed, which the parent test read as a crash that was not run again (merge-queue run 46925536152). The fixture now gets 60 seconds a test. The harness waited a fixed 100ms after every failure for Playwright's crash event. It now waits for the event itself, only when the failure says its page went away, for 3 seconds at most, and decides at once for any other failure. The fixture's crashRenderer waits for the page's crash event rather than taking goto's failure to mean the renderer is gone: goto fails with ERR_ABORTED about 200ms before the renderer dies, and up to seconds before under load.
davidmckayv
force-pushed
the
fix/renderer-crash-flake
branch
from
December 2, 2026 21:18
9a5c5e9 to
cf95080
Compare
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.
The renderer-crash test failed in the merge queue (run 46925536152, "app (real browser, WebKit) (shard 2 of 3)") with "crashes once" read as failed. It passes on an idle machine and failed under load.
Why it was timing-dependent
crashRenderertook goto's failure to mean the renderer was gone.goto("chrome://crash")fails withERR_ABORTEDabout 200ms before the renderer dies, and up to seconds before under load, so the next call could run against a page that had not crashed yet.The fix
renderer-crash.ts: no fixed wait. A failure counts as a crash if Playwright has already reported one. If the failure says its page went away ("Target crashed", "Page crashed", "Target page, context or browser has been closed") and no crash has been reported yet, the harness waits for the crash event and stops as soon as it arrives, for 3 seconds at most. Any other failure is decided at once.renderer-crash.fixture.ts:crashRendererwaits for the page'scrashevent.renderer-crash.test.ts: the fixture runs with a 60-second test timeout, and the parent test's timeout goes from 120 to 300 seconds. What it proves stays the same: a crashed renderer runs the test again, up to twice and no more, and any other failure fails on the first go.Proof
Stress on a 16-core Actions runner (
openbot-ubuntu-16core, the WebKit job's Playwright image andOPENBOT_APP_ENGINES=chromium,webkit):renderer-crash.test.tsrun 100 times, 24 at a time, alongside 24 busy-loop processes. This was a temporary push-only workflow on a branch that has since been deleted (run 46931846502).The failures before matched the merge queue's (
expect(result("crashes once")).toBe("pass")and the tests after it). Each one came from the fixture's 5-second timeout and the browser it killed.Run normally on a Mac, with the fix: 3 of 3 with no engine set, and 3 of 3 with
OPENBOT_APP_ENGINES=chromium,webkit.Changelog
none