Repository navigation
test(browser): fix stall, relay and Chrome startup flakes under load - #255
Merged
Merged
Conversation
This was referenced Oct 6, 2026
Delete the warm-up registry and profile only when no session record keeps a process identity or a pending cleanup mark. Otherwise fail the hook and name the kept directory. Reword the startup stall comment to the CI observation only, since the cause is not confirmed.
…ckforge into fix/251-browser-load-flakes
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.
Three browser tests no longer flake on a loaded host. A pre-identity fixture now uses a pid that can never exist.
The stall test's 500 ms timeout used to start before the fake Chrome had run. A spy now holds the starting-browser record write until the fake has logged its stall, so the timeout always measures a stalled fake. The relay test's 100 ms EOF grace also covered the child's Node startup. It is now 10 s, and a passing run never waits on it. The pre-identity fixture uses pid 4194305, above the kernel limit of 4194304.
In CI, the first real Chrome launch on a fresh runner took 1.4 to 39 s and three times went past the 45 s budget. In those failures Chrome published its DevTools port, but the HTTP endpoint never answered. Every later launch took about 1 s, even from a separate process. The cause is not confirmed. The integration suite now warms Chrome once in a
beforeAllhook with its own 120 s budget, so each test's 45 s budget measures a warm start. The hook deletes its temp registry only after cleanup is confirmed, and it keeps the registry and fails visibly otherwise. This cannot be reproduced locally, so CI on this PR is the real check.Closes #251
251/after-final-stall-2cpu-32burn.log251/after-final-relay-2cpu-32burn.log251/ci-logs/first-chrome-start-timings.txt251/review-fixes/fault-*.log251/pid-limit.txtPICKFORGE_REQUIRE_BROWSER=1 bun run test:coverage251/test-coverage-2.logEvidence lives in
~/Artifacts/pickforge-kickoff-2026-10-06/on the dev host. The QA pass was skipped because this is a test-only change with nothing to drive.