Repository navigation
test(fsevents): finish after restoring the working directory - #17310
Merged
Merged
Conversation
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
This was referenced Nov 28, 2026
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]>
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.
Signal normal FSEvents test completion after restoring the process working directory and removing the temporary directory. Previously,
finishran insideExn.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 @fmtpass. The full localCI=truecheck 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