CultLib/packages/cultcache-py/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Libby b2434fc7fc cultcache-py: single-file store takes the cross-process lock, stages uniquely and fsyncs
push, push_all and delete hold <path>.lock (flock; LockFileEx over the whole file on
Windows, as cultcache-ts store-file.ts) across the read and the replace. The staged file
is <path>.tmp-<pid>-<uuid>, fsynced before os.replace, with a directory fsync after off
Windows; a failed write removes its staged file and leaves the store.

Tests fail when the rule breaks: a write waits while a flock holder (Rust's lock) and the
TypeScript runtime's withStoreWriteLock hold the lock, three processes lose no writes,
fsync precedes replace, staged names differ, a failed replace leaves no staged file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 20:49:32 +00:00
..
test_cultcache.py TS and Python: pin the refusal text (v3 named, ASCII digits only); TS comments say a zero-byte file is refused 2026-10-02 21:05:38 +02:00
test_first_call.py docs/start: tested Rust and Python CultCache first calls 2026-11-04 20:20:33 +00:00
test_store_lock.py cultcache-py: single-file store takes the cross-process lock, stages uniquely and fsyncs 2026-11-06 20:49:32 +00:00
test_typed_leaves.py cultcache-ts and cultcache-py tests: golden models carry element ids; python-written store asserts them 2026-10-14 19:44:28 +02:00
test_union_parity.py cultcache-py, -rs and -ts: unit-arm tests assert against the bytes the C# reference wrote 2026-10-14 20:33:24 +02:00