GeezerVison is showing github.com — [Closed] Reject focused Playwright tests on CI by chengchuu · Pull Request #3 · chengchuu/react
Conversation
chengchuu
commented
Oct 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Change the Flight fixture’s forbidOnly from !isCI to isCI to reject .only on CI and allow focused debugging locally. This prevents CI from passing while accidentally excluding other tests and matches the existing comment.
The inverted condition dates to #28350.
How did you test this change?
- Temporarily added
test.only() and confirmed CI=true yarn test rejects it with exit code 1.
- Removed
.only and ran the full Flight fixture suite from the repository root:
yarn && yarn build && cd fixtures/flight && yarn && yarn playwright install chromium && CI=true yarn test
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
In react#36911, we stopped treating a recovery retry that suspends in the
shell as a successful recovery, because the tree it produces is
incomplete and must not be committed. That fix was correct, but there
was an oversight: the branch it skips is also the one that disables
error recovery for the lanes that errored. So nothing ever turns error
recovery off for those lanes, and the error boundary from the first
attempt never commits.
This causes an infinite render loop with useDeferredValue when the
initial value suspends in the shell (no Suspense boundary) and the final
value throws:
1. The deferred render shows the final value, which throws. An error
boundary catches it.
2. Before committing the boundary, React retries all pending lanes
synchronously. The retry includes the original update, so
useDeferredValue shows the initial value, which suspends in the shell.
The retry also spawns a new deferred lane.
3. The retry is incomplete, so it isn't treated as recovered, and error
recovery stays enabled. The new deferred lane throws again, and so on.
Before react#36911, this happened to terminate after a few iterations, once
the deferred lanes wrapped around to one whose recovery was disabled.
The fix: when the retry suspends in the shell, disable error recovery
for the lanes that errored, plus any deferred lane spawned by the retry.
The retry couldn't finish, so it can't tell us whether the error was
caused by a data race. The next attempt commits the error boundary. The
root still stays suspended in the meantime, so the incomplete tree is
never committed.
|
Comparing: 7c6ac13...5199792
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
Significant size changes
Includes any change greater than 0.2%:
(No significant changes)
Generated by sizebot against 5199792
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chengchuu
changed the title
[Flight fixture] Reject focused Playwright tests on CI
[Closed] Reject focused Playwright tests on CI
Oct 5, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bug
Something isn't working
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|