Skip to content

test(fsevents): flush setup and operation events at marker boundaries - #284

Draft
anmonteiro wants to merge 1 commit into
draft/fsevents-split-basefrom
draft/fsevents-stream-flushes
Draft

anmonteiro wants to merge 1 commit into
draft/fsevents-split-basefrom
draft/fsevents-stream-flushes

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Call Fsevents.flush_sync after starting the streams and before writing start markers, then again after the tested operations and before writing end markers. The intended boundary is to drain setup notifications before recording and finish buffered operation callbacks before stopping.

The flush API waits for pending events to be delivered. That alone does not establish that every preceding filesystem operation has reached the event stream or that no later callback can arrive.

The harness already has marker synchronization. We still need an isolated boundary failure after #280/#281 to show what these additional flushes fix. A post-operation flush can also conceal the callback-completion race fixed directly by #280. The separate “multiple paths in one fsevents” test does not receive these flushes, so the proposed boundary is not applied consistently.

Experimental extraction from ocaml#17301, included in #289's comparison branch. It changes synchronization, but does not establish a production event-delivery fix or CI readiness.

@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