Skip to content

test(file-watcher): shut down the macOS test watcher - #286

Closed
anmonteiro wants to merge 1 commit into
draft/fsevents-split-basefrom
draft/fsevents-watcher-shutdown
Closed

anmonteiro wants to merge 1 commit into
draft/fsevents-split-basefrom
draft/fsevents-watcher-shutdown

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Keep the macOS test's watcher handle and call File_watcher.shutdown after its file operations finish. The existing test creates a watcher and leaves it running.

This is independent resource cleanup. It leaves the operation sequence and all expectations unchanged. There is no isolated before/after reproduction showing that it fixes a missed event, and it should not be presented as the explanation for the 2022 watcher CI gate or the failures behind the revert in ocaml#13380.

Extracted from ocaml#17301 and merged upstream as ocaml#17315. #287 uses this as its base to keep lifecycle cleanup separate from changes to event expectations. #290 handles CI enablement; cleanup alone does not establish that the suite is ready.

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

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

anmonteiro added a commit to ocaml/dune that referenced this pull request Nov 29, 2026
Shut down the macOS test watcher after its file operations finish,
releasing the resources created by the test.

Standalone cleanup extracted from #17301 and anmonteiro#286.

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

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro anmonteiro closed this Nov 29, 2026
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