Repository navigation
fix(test): give each drawing test its own page - #477
Merged
Merged
Conversation
All 98 tests in drawingBrowser.test.ts drove one page. On CI one page load partway through the file stalled, the dev server's live-reload client then went into its "server connection lost" polling, and the page never came back: every later test's setup timed out at 30s, so one stall failed up to 41 tests. Each test now opens and closes its own page, the file retries on CI, and the shared browser harness logs it when Chromium loses a tab. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryThe drawing tests now use a fresh page for each test.
No actionable issues were found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "fix(test): give each drawing test its ow..." · Reviewed by Greptile |
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.
Why
mainhas been red since #448:tests/drawingBrowser.test.tsfails in test shard 3 on most runs, with anywhere from 1 to 41 tests timing out inbeforeEach.All 98 tests in that file drove one page. On CI, about two minutes into the file, one page load stalls: the page never gets its app. The dev server's live-reload client then logs "server connection lost. Polling for restart..." and the page never comes back, so every later test's setup waits 30s on it. One stall failed every test after it.
What changes
beforeEachand closes it inafterEach.tests/browser.tslogs it when Chromium loses a tab, and the drawing tests fail with that reason.Verification
main.drawingBrowser.test.tspassed in 8 of 8 CI runs of the same shard with this change, and no retry was needed in any of them.The CI runs were on the private mirror, which has two more tests in this file.
Not covered
🤖 Generated with Claude Code