Repository navigation
test(file-watcher): check unique typed events per operation - #287
Draft
anmonteiro wants to merge 1 commit into
Draft
anmonteiro wants to merge 1 commit into
anmonteiro wants to merge 1 commit into
Conversation
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
This was referenced Nov 28, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Collect unique serialized path/kind pairs for each operation, split directory creation from child-file creation, and create empty files instead of creating and writing them. Both rename paths and their kinds remain required; unexpected paths/kinds remain visible in the snapshot.
This preserves more than the expected-path-only matching introduced by ocaml#13316 and reverted by ocaml#13380. It still makes substantive policy changes:
With this draft and #290, the latest local
CI=truerun still missed the initialx Createdevent: expected 1, saw 0 after 10 seconds. Diagnose that loss through raw FSEvents delivery, watcher conversion, and collection before changing expectations again.Experimental extraction from ocaml#17301, based on #286. The historical review calls for reproductions and meaningful event-type coverage; this draft is not yet sufficient to enable CI.
@check @fmtpass. TheCI=truefull check still skips the macOS watcher suite on this draft and has the baseline failures recorded in ocaml#17301.01a20619-183b-76f3-b8a7-18c1b28eb1c0