Repository navigation
test(fsevents): flush setup and operation events at marker boundaries - #284
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.
Call
Fsevents.flush_syncafter 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 @fmtpass. TheCI=truefull check still skips the raw suite on this draft and has the baseline failures recorded in ocaml#17301.01a20619-183b-76f3-b8a7-18c1b28eb1c0