Repository navigation
test: fix unload-IPC and protocol.handle 'is fast' flakes - #55083
Merged
MarshallOfSound merged 2 commits intoOct 20, 2026
Merged
Conversation
Keep renderers at foreground priority in the two tests that wait for an IPC sent from an unload handler after a cross-site navigation, so the backgrounded old renderer does not miss Chromium's 500 ms unload timeout under parallel spec load. Rework protocol.handle 'is fast' to compare the native relay path against both a direct fetch and the JS-pumped path, with a looser bound against direct fetches and timings in the failure message. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS
jkleinsc
approved these changes
Oct 20, 2026
MarshallOfSound
approved these changes
Oct 20, 2026
MarshallOfSound
enabled auto-merge (squash)
October 20, 2026 07:50
MarshallOfSound
deleted the
claude/fix-unload-ipc-and-protocol-is-fast-flakes
branch
October 20, 2026 07:50
|
No Release Notes |
Contributor
|
I was unable to backport this PR to "45-x-y" cleanly; |
Contributor
|
I was unable to backport this PR to "44-x-y" cleanly; |
This was referenced Oct 20, 2026
Contributor
|
claude[bot] has manually backported this PR to "45-x-y", please check out #55132 |
Contributor
|
claude[bot] has manually backported this PR to "44-x-y", please check out #55133 |
2 of 3 tasks
jkleinsc
pushed a commit
that referenced
this pull request
Oct 20, 2026
test: fix unload-IPC and protocol.handle 'is fast' flakes (#55083) * test: fix unload-IPC and protocol.handle 'is fast' flakes Keep renderers at foreground priority in the two tests that wait for an IPC sent from an unload handler after a cross-site navigation, so the backgrounded old renderer does not miss Chromium's 500 ms unload timeout under parallel spec load. Rework protocol.handle 'is fast' to compare the native relay path against both a direct fetch and the JS-pumped path, with a looser bound against direct fetches and timings in the failure message. Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS * test: fix lint Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS --------- (cherry picked from commit efd4495) Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS Co-authored-by: Claude <[email protected]>
dsanders11
pushed a commit
that referenced
this pull request
Oct 20, 2026
test: fix unload-IPC and protocol.handle 'is fast' flakes (#55083) * test: fix unload-IPC and protocol.handle 'is fast' flakes Keep renderers at foreground priority in the two tests that wait for an IPC sent from an unload handler after a cross-site navigation, so the backgrounded old renderer does not miss Chromium's 500 ms unload timeout under parallel spec load. Rework protocol.handle 'is fast' to compare the native relay path against both a direct fetch and the JS-pumped path, with a looser bound against direct fetches and timings in the failure message. Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS * test: fix lint Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS --------- (cherry picked from commit efd4495) Claude-Session: https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS Co-authored-by: Claude <[email protected]>
This was referenced Oct 22, 2026
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 spec flakes that the spec runner's end-of-job rerun has been hiding.
Unload-handler IPC tests (
ipc module > WebFrameMain.ipc > receives ipcs from unloading frames in the main frameandwebFrameMain module > RenderFrame lifespan > is detached when unload handler sends IPC, timing out on macOS arm64). After a cross-site navigation commits, Chromium gives the old frame 500 ms (kUnloadTimeout) to run its unload handler and then drops it along with any IPC it sends. Because the old renderer process no longer hosts an active page, it is also moved to background priority, which on macOS throttles its CPU and timers. With other spec workers busy, the unload handler misses the 500 ms window and the IPC never arrives. Both tests now appenddisable-renderer-backgroundingfor their duration (removed in adeferunless it was already set).RenderProcessHostImplchecks the switch on every priority update, so it takes effect at runtime.protocol module > handle > is fast(Windows x64: intercepted fetch is consistently 3.1-3.9x a direct fetch, limit 3x). The test now times three paths: a direct fetch, a handler that returns thenet.fetchresponse untouched (relayed natively since #52953), and one that re-wraps it asnew Response(res.body, res)so every chunk is pumped through JS. It warms all three paths, runs every ordering once, and compares the medians of the per-round ratios. It asserts relayed/direct < 5 on every platform to catch gross regressions, and relayed/piped < 0.8 on Linux only, which is the only platform measured so far (about 0.5x there). The failure message prints both ratios and the raw samples. On Linux it fails as expected when the relay is disabled.Windows lead: the Windows intercepted timings are close to what the JS-pump path costs, not the native relay from #52953, so the relay may not be taking effect there. The new failure message will show this directly.
Validated on Linux against 46.0.0-nightly.20261016: each of the three tests passed 10/10. oxlint and
tsc -p tsconfig.spec.jsonare clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01LPMvJBQiyP6b7QjatACmnS
Notes: none
Generated by Claude Code