Skip to content

test(fsevents): isolate operations and normalize coalesced events - #285

Draft
anmonteiro wants to merge 1 commit into
draft/fsevents-snapshot-formatfrom
draft/fsevents-event-expectations
Draft

anmonteiro wants to merge 1 commit into
draft/fsevents-snapshot-formatfrom
draft/fsevents-event-expectations

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Change the raw integration tests to create empty files without writing, create the rename source during setup, and compare unique printed records. Creation must decode as Create; rename accepts Rename or Unknown. Actions outside those lists print Unexpected; file/directory kinds and both rename paths remain in the expectations.

This responds to coalescing behavior documented by ocaml#14725, while attempting to retain the event-type coverage requested in ocaml/dune#13324. Several coverage decisions remain unresolved:

  • Sorting and deduplicating the generic logger removes ordering and multiplicity checks, including repeated exception messages.
  • Accepting Unknown for a rename needs evidence from raw flags; it could otherwise hide incorrect decoding of a plain rename.
  • Splitting operations removes the existing create-and-write/create-and-rename scenarios. Those behaviors need explicit coverage if this simpler test is adopted.

Combined-branch mutation experiments caught an incompatible action and a missing rename path. They do not prove that all the normalization above is safe. The deterministic flag tests in ocaml#14725 also do not replace integration coverage of combined operations.

Experimental extraction from ocaml#17301, based on #282 and included in #289's comparison branch. Define the intended event contract and retain raw diagnostics before selecting it.

@check @fmt pass. The CI=true full check still skips the raw suite on this draft and has the baseline failures recorded in ocaml#17301.

01a20619-183b-76f3-b8a7-18c1b28eb1c0

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