Stop TestEvictionRunsOnPeriodicSchedule racing the evictor (closes #183) #187

Merged
clawbot merged 1 commits from issue-183-periodic-eviction-test-race into next 2026-10-04 16:58:35 +02:00
1 Commits
Author SHA1 Message Date
clawbot d6a7bd9ab6 Stop TestEvictionRunsOnPeriodicSchedule racing the evictor (closes #183)
check / check (push) Waiting to run
The test wrote each variant file and then inserted its accounting row by
hand while the evictor was running. A reconciliation pass between the two
steps adopted the file first, and the hand insert failed on the unique key.

The test now writes the files only, while it holds the test database's
only connection, so the evictor's startup pass waits after walking the
still empty variant directory. A periodic reconciliation pass then adopts
the files and the eviction pass after it evicts them; no write-pressure
notification fires. The test waits until two of the three files are gone,
then checks that usage is within the limit and that no row points at a
missing file.

Model: opus-5-5
2026-10-04 13:30:34 +00:00