Repository navigation
test(dashboard): Stop e2e tests from hiding races they cause - #4360
Merged
Merged
Conversation
The open-request check let eight background reads stay open when a test ended. A test could then end mid-read and hide a race, as the Lead refresh exemption in #4061 did until #4068 fixed the product. The check now covers every read. Teardown already waits for open reads to end, so a poll that is in flight ends there. Only two specs held a read open on purpose. They now say so with holdRequests, and teardown fails the held reads before the check runs. Refs #4341 Co-Authored-By: David Cramer <[email protected]> Co-Authored-By: David Cramer <[email protected]>
…twork idle A toPass loop retries a step until a race goes its way, and network idle guesses at timing while the versions poll keeps the network busy. Both let a flake pass for days before it fails again, as #3589 and #3974 did before #4049 found the race. test-architecture:check now fails both in specs and in helpers, with no baseline. The existing uses wait for named states instead: - waitForRequestsToEnd waits until no fetch is open and none starts as the page renders. Request budgets, screenshots, and checks that a step sent no more reads use it. - scrollListUntil and scrollTranscriptUntil take one scroll at a time and wait for rows to grow or mount before the next. - The outline jumps wait for the outline to show its active item. Refs #4341 Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
5 screenshot changes — 5 changed · 0 added · 0 removed Review screenshots in Frameshift
|
dcramer
marked this pull request as ready for review
November 25, 2026 20:26
dcramer
approved these changes
Nov 25, 2026
This was referenced Nov 25, 2026
dcramer
pushed a commit
that referenced
this pull request
Nov 25, 2026
…creenshot (#4364) Refs #4341. Follow-up to #4360. #4360 replaced the screenshot step's network-idle wait with `waitForRequestsToEnd` plus a few still frames. Network idle had also waited 500ms with no traffic, and that wait hid two gaps. Since then, Frameshift shows the question card without its lazy Snooze button on pull requests that don't touch the dashboard, such as #4287. - React holds a Suspense boundary's content for up to 300ms after it last showed a fallback. During that time the DOM does not change. The settle step now also requires 350ms with no DOM change or scroll. - `waitForRequestsToEnd` waited only for fetches. It now waits for every open request, including lazy code chunks. - `waitForRender` posted to a `MessageChannel` that nothing held. The page could collect the channel before its message arrived, which hung the step. It now posts a window message. **Frameshift** The report compares against the `main` baseline, which #4360 made wrong. - Conversation Questions Pill · Mobile: this PR fixes the baseline. The `main` shot is missing the Snooze button. - Conversation Share Menu · Mobile: this PR fixes the baseline. The `main` shot was taken before the share sheet opened. - Conversation Attachment Zoom · Desktop and Mobile: this change was already there. The zoomed image sits about 4px lower, and it also changes on PRs that don't touch the dashboard (#4176). <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A84f186fc92c4b7a376ec8e741eb509b4 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A84f186fc92c4b7a376ec8e741eb509b4) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A84f186fc92c4b7a376ec8e741eb509b4/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
This was referenced Nov 25, 2026
23 tasks done
This branch was successfully deployed
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.
Refs #4341
Dashboard e2e flakes keep coming back because some fixes hide a race instead of removing it. This removes every existing use of two such fixes and bans them with no baseline, one commit each.
Background reads left open. The open-request check exempted eight read paths, and #4061 used that list to hide a Lead refresh bug. The list is gone. Reads held open on purpose now go through
holdRequests, which teardown aborts.toPassretries and network idle. These hid the race that #4049 later found. Both are now banned in specs and helpers. Their uses now wait for named states:waitForRequestsToEnd,scrollListUntil/scrollTranscriptUntil, and the outline's active item.A follow-up PR handles
route.fetchforwards and theignoreErrorsteardown.Open question for @dcramer: whether to turn on
failOnFlakyTests. This PR leaves it off.via @dcramer.
--
View Session [Sentry]