Skip to content

The eviction test waits for the engine before removing its folder - #2301

Merged
santoshkumarradha merged 5 commits into
app/v3from
c52/eviction-tempdir
Nov 3, 2026
Merged

santoshkumarradha merged 5 commits into
app/v3from
c52/eviction-tempdir

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What changes

Test only. TestEvictionIsLeastRecentlyOpenedFirst could fail its TempDir cleanup with "directory not empty". The engine's background group commits were still writing refs.log and group-commit.json under the test's folder when it was removed. The test never closed the engine.

The fixture now flushes and waits for the engine's background work to exit before storage is removed.

Validation

  • Before: unlinkat .../workspaces: directory not empty, 6 of 600 under this run's conditions. Earlier gates saw 10 of 60.
  • After: 0 of 600 at this PR's head. Package passes.

Limits

  • No runtime change. No deterministic red test; the fix is shown by rate and by the captured stacks at the two writes.

🤖 Generated with Claude Code

santoshkumarradha and others added 5 commits November 3, 2026 04:41
The fixture removed its TempDir without flushing pending group commits or stopping its engine daemon. Captured leftovers include refs.log and group-commit.json, with background syncEngine stacks during cleanup. No close boundary was called.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 3, 2026 10:31
@santoshkumarradha
santoshkumarradha merged commit 941f5a3 into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the c52/eviction-tempdir branch November 3, 2026 10:31
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