Skip to content

test(fsevents): finish after restoring the working directory - #17310

Merged
anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:draft/fsevents-cleanup-order
Nov 29, 2026
Merged

anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:draft/fsevents-cleanup-order

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Signal normal FSEvents test completion after restoring the process working directory and removing the temporary directory. Previously, finish ran inside Exn.protect, allowing the next test to start before the previous test's cleanup changed the shared working directory.

A temporary experiment in the combined #17301 branch inserted a 0.05s delay before restoring the directory. The old ordering produced missing output and errors for a deleted previous directory; moving completion after cleanup passed with the same delay. The delay is not committed here.

Standalone extraction from #17301 and anmonteiro#281. It preserves event expectations and the existing CI gate. This fixes normal completion; timeout cleanup remains a separate issue, and this reproduction does not establish the cause of the historical CI disablement.

@check @fmt pass. The full local CI=true check retains three failures reproduced on the unchanged base (listed in #17301), while the raw suite remains disabled by its existing gate. The timing experiment above used the combined branch.

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

@anmonteiro
anmonteiro merged commit c327725 into ocaml:main Nov 29, 2026
44 of 65 checks passed
anmonteiro added a commit that referenced this pull request Nov 29, 2026
Record the final FSEvents callback batch before stopping the stream
wakes the waiter, preventing the log from being flushed before those
events are recorded.

Standalone extraction from #17301 and anmonteiro#280; complements
the cleanup-ordering fix in #17310. The timing reproduction and
local-check limitations are documented in anmonteiro#280.

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

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@Alizter Alizter added this to the 3.26.0 milestone 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.

2 participants