Unverified Commit 2912f102 authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

Turbopack: Add file write invalidation tracking to filesystem watcher fuzzing (#88665)

In addition to creating task invalidators for file reads, we also create invalidators for file writes. This extends the fuzzer to cover that.

This is a bit trickier to test. Because the `write` call doesn't return anything, the caller of `write` never gets invalidated and re-executed, even though `write` does. So instead, we must observe that `write` was re-executed by looking at the contents of the file it wrote to. We write a sentinel value to files when we call the turbo-tasks-fs `write` function, and write random values to it to trigger an invalidation.

I tested this on Windows and Linux.

I don't care about the code quality here, so this was LLM-generated with very lightweight review.
parent d23af532
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment