Skip to content

Stop the pairing test's engine daemons before removing their folders - #2374

Merged
santoshkumarradha merged 2 commits into
app/v3from
c27/stop-owned-daemon-on-close
Nov 5, 2026
Merged

santoshkumarradha merged 2 commits into
app/v3from
c27/stop-owned-daemon-on-close

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

Summary

TestAppChatsExistingBeforePairL1 sometimes failed its folder cleanup with "directory not empty" under v3/stores/shared/store-v1 or v3.

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.StopSpawned like the other pairing tests, before its folders are removed. No product code changes.

Validation

Same test, four processes at once:

Version Runs Failures
Before 120 4
After 120 0

Not covered

This doesn't change how long furrow serve stays up after a person quits the app. That is still its idle limit.

🤖 Generated with Claude Code

santoshkumarradha and others added 2 commits November 4, 2026 23:52
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]>
@santoshkumarradha
santoshkumarradha merged commit a9a8609 into app/v3 Nov 5, 2026
@santoshkumarradha
santoshkumarradha deleted the c27/stop-owned-daemon-on-close branch November 5, 2026 06:16
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