GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(rsc): fix e2e flakes in use-cache-persistent and isolated fixture setup by hi-ogawa · Pull Request #1487 · vitejs/vite-plugin-react

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Oct 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • split out from fix(rsc): resolve facade client entry with strictExecutionOrder #1480 (commits by @james-elicx)
  • the HMR edit race fix from the same commits moved to test(rsc): make e2e file editor async and space out writes #1489
  • example failures on main nightlies (react-server-dom-webpack › dev › basic, beforeAll hook timeout): 2026-10-05 macos webkit, 2026-10-02 macos chromium, 2026-09-30 macos chromium

Two e2e flakes, unrelated to the facade entry fix in #1480, so they can land independently.

The use-cache-persistent dev test reloaded the page while the RSC refetch triggered by a server edit was still in flight. WebKit reported the aborted request as an unhandled TypeError: Load failed, and a late update could also reach the reloaded page before it hydrated (setPayload is not a function). The test now waits for that refetch to finish before reloading. Seen on #1480 CI as Load failed on macos webkit and setPayload is not a function on macos chromium.

Isolated fixtures run pnpm i over the network, which took 16-34s on macOS runners and pushed beforeAll past the default 30s hook timeout, especially for the react-server-dom-webpack fixture that installs twice. The setup now allows 60s.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
james-elicx and others added 3 commits October 5, 2026 16:41
@james-elicx @hi-ogawa
test(rsc): fix HMR edit races in e2e
1a0b609
- Space out editor writes to the same file. Vite's chokidar watcher drops
  a `change` event within 50ms of the previous one, so a fast HMR round
  trip could swallow `editor.reset()` (e.g. `dev-no-ssr > client hmr`).
- Wait for the `rsc:update` refetch before reloading in
  `use-cache-persistent`, so the reload neither aborts it (unhandled
  `Load failed` in WebKit) nor receives the late update before hydration
  (`setPayload is not a function`).
@james-elicx @hi-ogawa
test(rsc): allow 60s for isolated fixture installs
f74bb8e
`setupIsolatedFixture` runs `pnpm i` over the network inside a
`beforeAll` hook. On macOS runners installs take 16-34s, and the
`react-server-dom-webpack` fixture installs twice, so the hook kept
hitting the default 30s timeout.
@hi-ogawa @claude
test(rsc): lead e2e deflake comments with what they do
f9d69d4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@hi-ogawa hi-ogawa mentioned this pull request Oct 5, 2026
test(rsc): make e2e file editor async and space out writes #1489
Merged
@hi-ogawa @claude
test(rsc): move e2e write spacing to #1489
17be196
The editor write-spacing fix moves to its own PR, which makes the editor API async instead of sleeping synchronously.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@hi-ogawa hi-ogawa changed the title test(rsc): fix e2e flakes in HMR edits, use-cache-persistent, and isolated fixture setup test(rsc): fix e2e flakes in use-cache-persistent and isolated fixture setup Oct 5, 2026
@hi-ogawa
hi-ogawa marked this pull request as ready for review October 5, 2026 08:42
@hi-ogawa
hi-ogawa merged commit 7212f34 into main Oct 5, 2026
23 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@hi-ogawa
hi-ogawa deleted the test/rsc-e2e-deflake branch October 5, 2026 08:42
hi-ogawa added a commit to james-elicx/vite-plugin-react that referenced this pull request Oct 5, 2026
@hi-ogawa
Merge remote-tracking branch 'origin/main' into fix/rsc-facade-client…
c4c6e02
…-entry

Take main's e2e/fixture.ts and e2e/use-cache-persistent.test.ts. The e2e
deflake fixes from this PR landed separately in vitejs#1487, with the write
spacing moved to vitejs#1489.
@vite-release-bot vite-release-bot Bot mentioned this pull request Oct 7, 2026
release: [email protected] #1492
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@hi-ogawa @james-elicx
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.