Skip to content

[stress] native watcher — 50-round macos-14 pressure test#1520

Draft
stormslowly wants to merge 3 commits into
mainfrom
e2e/native-watcher-stress-50
Draft

[stress] native watcher — 50-round macos-14 pressure test#1520
stormslowly wants to merge 3 commits into
mainfrom
e2e/native-watcher-stress-50

Conversation

@stormslowly

Copy link
Copy Markdown

Draft / do-not-merge. Stress-validation companion to #1441.

Runs the watch e2e suite 50 times on macos-14 (10 shards × 5 fresh rounds) with the rspack native watcher enabled, to statistically confirm the stale-FSEvent flake (~7.5% baseline, expected '' to match 'other.test.ts') is gone on released @rsbuild/core 2.1.4 / @rspack/core 2.1.2.

Contains the #1441 watcher-enablement changes plus a throwaway stress-watch CI job (not wired into test-gate). The stress job is removed before #1441 merges.

Turn on experiments.nativeWatcher now that rsbuild 2.1's safeTime
baseline suppresses the stale-FSEvent reruns that used to flake macOS
watch e2e.

- watch aggregateTimeout 5 -> 100ms (macOS FSEvent/vnode cache cycle)
- poll config files for restart (chokidar v5 dropped fsevents)
- await chokidar 'ready' so pre-ready events are not dropped
10 shards x 5 fresh rounds = 50 runs of the watch e2e suite. Draft-only,
not wired into test-gate; remove before merge.
Each round now runs the complete e2e suite (rstest run over all ~237
files incl. browser-mode) instead of only watch/, so the watch flake is
exercised under real full-suite load. 10 shards x 5 rounds = 50 runs.
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