Skip to content

Stabilize Vinext Pages Fast Refresh verification - #184

Merged
tannerlinsley merged 1 commit into
mainfrom
taren/stabilize-vinext-pages-hmr
Nov 25, 2026
Merged

tannerlinsley merged 1 commit into
mainfrom
taren/stabilize-vinext-pages-hmr

Conversation

@tannerlinsley

@tannerlinsley tannerlinsley commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Rapid source edits in the Pages-only Fast Refresh verifier can be dropped by Vite's duplicate-event throttle. The next label assertion then times out even with native React. Configure the generated test server to wait for complete file writes before emitting an update, keeping both state-preservation assertions, existing timeouts and the full matrix gate.

Validation: the original watcher lost updates during repeated native React and Redact edits; atomic saves also failed. Complete-write mode passed 20 edit-and-restore cycles for each renderer in WebKit. Current-main build, 2,127 tests, types and all fixed size caps pass. The change is confined to the test fixture generator, with no package input, dependency or workflow changes.

The actual current-main npm package also passes all 12 Pages node diagnostic configurations (54 scenario assertions) with Vinext 1.3.0 across Chromium, Firefox and WebKit, including native React controls. These diagnostics do not replace the required complete hosted matrix.

Summary by CodeRabbit

  • Tests
    • File-change detection now waits for writes to settle before processing updates. This may make test runs more consistent when files are being written.

@changeset-bot

changeset-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f08e817

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The generated Vite configuration now sets a 100 ms stability threshold and a 10 ms polling interval for watcher write completion.

Changes: Vite watcher configuration

Layer / File(s) Summary
Configure watcher write completion
scripts/test-vinext-pages.mjs
The generated Vite configuration sets server.watch.awaitWriteFinish with a 100 ms stability threshold and a 10 ms polling interval.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to f08e8

This change only makes the Pages Fast Refresh test fixture wait for complete file writes before emitting updates, which should reduce flaky test timeouts. It does not affect shipped package behavior. The risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Stabilize Vinext Pages Fast Refresh verification" matches the main change. The PR makes the generated test server wait for complete file writes (watcher awaitWriteFinish) so rapid edits are…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Stabilize Vinext Pages Fast Refresh verification" matches the main change. The PR makes the generated test server wait for complete file writes (watcher awaitWriteFinish) so rapid edits are not dropped during Fast Refresh verification. The title is specific and concise, and the raw summary's single file change fits the title's scope.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d8b00634-21f4-4caa-af29-77593ebc410d
Commits

Reviewing files that changed from the base of the PR and between 6d3e2af and f08e817.

Files selected for processing: 1

  • scripts/test-vinext-pages.mjs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@tannerlinsley
tannerlinsley merged commit 2d6ad02 into main Nov 25, 2026
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant