Repository navigation
Stop the pairing test's engine daemons before removing their folders - #2374
Merged
Merged
Conversation
TestAppChatsExistingBeforePairL1 removed folders whose stores a live engine daemon still owned. The daemon outlives an app close by design and can finish an accepted sync after it, so cleanup sometimes found a new file there. Co-Authored-By: Claude Opus 5.5 <[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.
Summary
TestAppChatsExistingBeforePairL1sometimes failed its folder cleanup with "directory not empty" underv3/stores/shared/store-v1orv3.The engine daemon owns those stores and stays up after an app closes, for up to its one-minute idle limit. It can still finish a sync it accepted before the close, and that write is atomic. So a late write after close loses nothing, and the next app attaches to the same daemon. The test was wrong to remove folders a live daemon still owned.
The test now stops the daemons it started, using
cellstore.StopSpawnedlike the other pairing tests, before its folders are removed. No product code changes.Validation
Same test, four processes at once:
Not covered
This doesn't change how long
furrow servestays up after a person quits the app. That is still its idle limit.🤖 Generated with Claude Code