Commit Graph
7 Commits
Author SHA1 Message Date
pingqiu 25b9eeaedb test: decode current restore and HEAD command results in process fixtures 2026-11-26 00:43:27 -08:00
pingqiuandClaude Opus 5.5 b7e1180eda test: restore targets fill on access; the guard covers run calls
v1 has no background fill: hydrate reads one block of every chunk, then
requires none absent, and the killed-mid-fill test drives its fill with
a background reader. The guard also checks the harness's run calls, and
the show and snapshot-delete calls it found get --master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:31:44 -08:00
pingqiuandClaude Opus 5.5 252d30ace7 test: the process-level tests run the current CLI
A guard runs every literal `sw-block ops ...` call in cmd/blockvolume's
tests through the CLI's own argument handling, so a call the CLI refuses
fails CI instead of a lab run. The calls it found are brought to the
current CLI: --master on restore and snapshot commands, the removed
restore driver and fork replaced or dropped, and the killed-mid-fill
test converted to background hydration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:22:19 -08:00
pingqiuandClaude Opus 5.5 409f706f31 test(blockvolume): review fold: a real unreadable-record read, the cure's exact attach refusal, the invariant under 300 characters
The unreadable-record control reads a valid volume through a filer whose
lookups fail and asserts the read happened. The cure test's right-flag
start on the planted store must exit 75 with the attach check's
geometry_mismatch and never log a frontend phase over its life. The
ledger statement keeps its meaning in 288 characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:02:35 -08:00
pingqiuandClaude Opus 5.5 f1227debce fix(blockvolume): refuse geometry flags that disagree with the volume record before creating a store
INV-VOL-GEOMETRY-FLAGS-RECORD-001. A create-mode start whose
--durable-blocks/--durable-blocksize disagree with the volume record exits 78
(no restart) with a line naming both geometries, before the durable provider
is built, so no local store of the wrong size is created. An existing local
store is never rechecked against the flags (its geometry is checked at
attach, as before); a missing record keeps the create path; an unreadable
record falls through to the attach check.

Tests: TestGeometryFlagsRefusalComparesTheRecord (unit);
TestWrongGeometryFlagIsRefusedBeforeTheStoreIsCreated (real binaries, red on
the previous main: exit 75 after 35 s and a wrong-size store). The cure for a
store an earlier release left stays: TestWrongGeometryCureAsWritten plants
that store from a readable text fixture of a 2129a736 capture (sha256 checked
per file); the operator guide scopes the cure to such a store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:51:02 -08:00
pingqiuandClaude Opus 5.5 bf44e7bbf9 test(blockvolume): the cure's order: stop first, then the guard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:11:14 -08:00
pingqiuandClaude Opus 5.5 ff124a5a75 test(blockvolume): the wrong --durable-blocks cure run as written, guard first
A blockvolume started with half the spec's --durable-blocks creates its
local store at that size, never claims HEAD and exits 75; a right-flag
start then fails on geometry_mismatch. The test checks the guard (ops chunk
show: epoch 0, no holder), removes the four local files, starts with the
right flags and serves; the guard then reads as claimed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:09:55 -08:00