You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stabilize Vinext Pages Fast Refresh verification - #184
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.
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
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
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
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.
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