Commit Graph
8 Commits
Author SHA1 Message Date
pingqiu 15c1f4a33b test: keep typed delete stdout separate from HEAD diagnostics 2026-11-28 21:49:21 -08:00
pingqiuandClaude Opus 5.5 b76698d7b5 test(blockvolume): v1 deletes a never-started line once its lease horizon passed
A never-started line that holds a lease (a first start stopped at the
grant, a clean-move target that never started) is refused by the delete's
reservation while that lease may be live, and completes when the same
delete is rerun past the horizon the refusal names (nobody renews it).
The three tests now assert that, through deleteAfterTheHorizon: any
other refusal still fails them, and every fencing assertion stays (a late
start after the delete is still refused, the claimed control is
unchanged). The immediate delete of such a line is the 1.0.1 fix.

INV-WS-DELETE-NO-LIVE-HOLDER-001 states the v1 limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:51:08 -08:00
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 eb96edc7b6 test: a 16-byte pattern for the clean-move case
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:30:18 -08:00
pingqiuandClaude Opus 5.5 e1626eb714 test: served means HEAD claimed or frontend ready, not an adopted assignment
Adopting the master's assignment comes before the HEAD claim; a start
that adopted and then lost the HEAD race to the delete never served.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:28:06 -08:00
pingqiuandClaude Opus 5.5 f55f9f8b02 test(blockvolume): 1.0.1 red tests: a line whose epoch HEAD never reached is deletable without a revoke
INV-WS-DELETE-NO-LIVE-HOLDER-001; red on main by design (the fix is the
live-holder change). Three routes, none needs root, each asserted by the
master's authority record (the line) and HEAD before any delete:
- S1: a first start with the store down (line at 1, no lease, HEAD 0);
- S2: a first start stopped at the lease grant (line and lease at 1,
  HEAD 0; the next candidate when the claim wins);
- a clean move whose target never starts (line and lease at e+1, HEAD at
  e, detached).
volume-delete without a revoke must complete (at once, after the lease
lapsed, after a master restart), a later start must not claim, and a
racing start and delete have one winner. Guards, green on main: a
never-attached target is deletable and fenced, and a claimed target stays
refused after a master restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:28:53 -08:00