test(turbopack): fix filesystem watcher symlink expectations (#98983)
### What? Makes the filesystem-watcher fuzzer's expected symlink invalidations reflect net target changes over each iteration. Stack: **2/5** · Previous: #98982 · Next: #98863 ### Why? Symlink indices are sampled with replacement, so one link may be changed multiple times before the dependent task re-reads it. A later mutation can restore the iteration-start target. The old expectation retained that path after the first intermediate mutation and incorrectly reported a missing invalidation even though the task observed no net value change. ### How? The fuzzer snapshots symlink targets at the iteration boundary and removes expected paths whose final target matches the snapshot. All unlink/recreate operations and watcher timing remain unchanged; only the expected observable result is reconciled. Behavioural tests cover untouched links, restored targets, repeated mutations, and genuine net changes. Five-minute recursive and nonrecursive directory-symlink runs complete without missing invalidations. <!-- NEXT_JS_LLM --> <!-- fleet 6488265d-2685-49d3-b632-6511b4b47690 --> Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com> Co-authored-by:
Benjamin Woodruff <180404+bgw@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment