Repository navigation
test(plugins): make the CSP refusal Electron probe deterministic on Linux - #37326
Merged
Merged
Conversation
…ang on Linux The probe waited for an exact count of refusal lines, but markup-only fonts and media load only on layout, which a hidden Linux CI window may skip, so it timed out at 30s. The page now requests each kind from script, settles each on its own outcome, and logs a done line the main process waits on.
7 tasks done
This was referenced Nov 2, 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.
ELI5
A test that checks how Orca reads blocked-request messages from Electron sometimes hung on Linux CI. It now always finishes.
What Changed
plugin-frame-blocked-requests.electron.test.tsloads a page whose content policy blocks everything, then reads the console lines Electron prints. Before, the page declared fonts and media in markup, and the test waited for an exact number of lines. A hidden Linux window may never lay out the page, so the font and media were never requested, the count was never reached, and the 30s launcher timeout fired. In the failed main runs 41388813032 and 41389106099 this showed up in shard 7 asError: timeout / no result. Now the page requests each kind from script:FontFace.load(), plus appended link, img, iframe, video, script and fetch. It waits for every request to finish, whether it fails or loads, then logs a done line. The main process waits for that line, not for a count.Why
Requesting from script does not depend on rendering, and each request finishes on its own outcome. If Linux ever stops refusing a kind, the test fails on the origin assertion with a readable diff instead of hanging. The alternative was to wait less strictly, for example for "at least N" lines. That keeps the dependence on layout.
Linked Issue
N/A (maintainer; main CI flake)
Visual Proof
N/A, test-only change.
Testing
5/5 passes locally on macOS under
ORCA_BACKGROUND_LAUNCH=1. Not run on Linux locally; Linux CI covers it.Risk
Test-only. Revert with a plain revert.
Level: Low
Review
Agent skill upstream boundary
Notes
Test-only; no product, SSH, or wire impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)