Commit Graph
3651 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 584ce5e67a Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 04:23:15 -08:00
pingqiuandClaude Opus 5.5 a4db4270b3 C3 kill: fill progress lost to a kill is not a failure
A chunk made local is recorded in the store at its next checkpoint, so a
kill shortly after a fill may leave that chunk absent again; it is fetched
again on its next read and no data is lost. The test no longer requires
fill progress to survive the kill (it logs it) and keeps every data check:
no partly filled chunk is served, and every acknowledged write survives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:30 -08:00
pingqiuandClaude Opus 5.5 c300cf3173 F1 restore targets are placement only
Each round's restore target was listed with size_bytes, so blockmaster
created it as an ordinary volume and the restore into it was refused
(target_exists: bound to another restore request). Targets now carry their
placement only and their restore creates them; sources are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:29 -08:00
pingqiuandClaude Opus 5.5 97171f2a97 Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:23 -08:00
pingqiuandClaude Opus 5.5 ff604a3b27 ci: skip the harness's cleanup headers when showing a failed test's own messages
Run 3 at 19cef1c printed each failed test's own file:line lines, but for
two tests the twelve shown were all cleanup headers ('<process> log:',
'---- <x> log tail ----'), pushing the failing assertion out. Those
headers and successful command echoes are no longer counted. Control: the
reason is shown behind 21 such headers; a mutant without the filter turns
it red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:28:22 -08:00
pingqiuandClaude Opus 5.5 c21893a68f Keep the invariants row out of the test-only change
The v1-limit note on INV-WS-DELETE-NO-LIVE-HOLDER-001 moves to the
documentation change: a test-only change touches tests and testdata only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:20:40 -08:00
pingqiu ee832825c5 Merge the known-zero step-5 fresh-state fix 2026-11-26 03:01:28 -08:00
pingqiuandClaude Opus 5.5 46753ef609 test: known-zero step 5 reads the fresh state from the store descriptor
Step 5 holds the first start of a fresh volume before the attach commit
retires the fresh state, kills it there, and must see the store still
fresh. It looked for a <volume>.chunkfresh sidecar, which the cutover to
the content-named store removed: the fresh state is now in the store's
descriptor (WALStore.SetLayoutIdentity / LayoutIdentity). Every try
therefore read "marker always gone" although the product held at the
right boundary.

kzFreshAtStop opens the killed store (under its <volume>-<id8> layout
directory, or under the root without one) and requires LayoutIdentity()
set and fresh; markers_at_stop records the store read and what it held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:57:11 -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
pingqiuandClaude Opus 5.5 19cef1c03a ci: keep the process-level job on the team runners for now
The move to GitHub-hosted runners is held until the account's billing is
fixed; the job uses the Go suite's runner selection again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:46:05 -08:00
pingqiuandClaude Opus 5.5 56c45dc284 ci: show a failed test's own messages, not only the harness's log dump
Run 2 at 774ee23 showed the last 40 lines of each failed test, which were
the harness's SeaweedFS log tails printed after the failure; the test's
own file:line messages fell outside. The gate now prints the test's own
messages (its last 12 file:line lines at the test's indent) and then its
last 5 lines. Control: the reason line is shown behind 60 lines of log
noise; a mutant that drops the own lines turns it red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:37:47 -08:00
pingqiuandClaude Opus 5.5 6f826ab366 ci: run the process-level job on a GitHub-hosted runner
The named tests need no root; a hosted ubuntu-latest runner is free for
this public repository, so the team's runners stay free for the Go suite
and the lab. SeaweedFS is still fetched and sha256-checked each run;
nothing is assumed of a runner cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:34:08 -08:00
pingqiuandClaude Opus 5.5 774ee23f79 ci: show each failed named test's last output lines
The events file is not kept, so the job log showed which tests failed but
not why. The gate now prints the last 40 output lines of every named test
that did not pass. Control: a failed test's reason line appears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:53:36 -08:00
pingqiuandClaude Opus 5.5 144ad93c06 Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:46:08 -08:00
pingqiuandClaude Opus 5.5 839bc38080 The fill reader is stopped and joined at cleanup
Its stop runs once, from the test or at cleanup, so a failure before the
explicit stop (awaitFill, awaitAbsent) still ends and joins the reader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:44:54 -08:00
pingqiuandClaude Opus 5.5 2d60b4f4ff Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:42:04 -08:00
pingqiuandClaude Opus 5.5 3d58a0f0fd KZ placement-only targets, C3 refusal, a fill witness, a guard that reaches late flag checks
- KZ: each restore target is listed with its placement only (no
  size_bytes), and the test requires that the master has no record of it
  before its restore. Sources and crash volumes are still created.
- C3: a restore from the restored volume's own snapshot is refused
  (not_admitted, naming another volume's chunks); filling makes bytes local
  but leaves the source's chunks named. The restored volume's image is
  read directly; the source's snapshot still restores unchanged.
- C3 kill: the second kill waits for a running fill: the reader has
  completed a read without error and is still reading, and the absent
  count fell since it started. fillWitness has controls for a reader that
  never starts, fails, finishes, or makes no progress.
- Invocation guard: each call runs in a child process killed at its
  deadline; the master resolves every name and the filer dial and restore
  RPC answer a sentinel only reachable after every argument check. A call
  still running at the deadline fails. Controls: snapshots or
  snapshot-delete without --chunk-filer, and restore without --master, are
  refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:40:22 -08:00
pingqiuandClaude Opus 5.5 ab6531ea02 ci: the process-level gate needs exit 0 from every test process too
Code review at 1fb51fc: the loop printed each process's exit status and
dropped it, and the checker ignored package-level failures, so a test
that reported PASS and then failed, panicked or hung on its way out
passed. run-named-tests.sh now keeps each process's status; the checker
(--status) passes a named test only with a PASS event and exit 0, and any
package-level failure fails the run. Controls: 7 new gate cases, and a
real-shell control with fake test binaries (PASS then exit 1, PASS then a
hang until the timeout) that both fail the gate; dropping the status in
the runner turns two of them red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:33:17 -08:00
pingqiuandClaude Opus 5.5 42a4672264 ci: add the creation-gap failover test to the process-level list
TestAVolumeThatServedBeforeItsFirstGateTickFailsOver: a volume that
served before the gate's first tick still fails over. 44 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:17:40 -08:00
pingqiuandClaude Opus 5.5 1fb51fcb7f Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:59:33 -08:00
pingqiu 81a6d318a5 Merge the procedure delete-output fixture 2026-11-26 00:57:47 -08:00
pingqiu d984ee7358 test: inspect documented delete state and stored objects in procedure checks 2026-11-26 00:56:06 -08:00
pingqiuandClaude Opus 5.5 1b1ea53ab7 Headroom blast radius and B1 follow the v1 restore-target contract
The source's snapshot cannot be deleted while restore targets depend on
it: the blast-radius test now requires snapshot_has_dependents while v2 is
refused and v3 serves, deletes both targets through the page's steps (v2
on a root with room), and then requires the snapshot delete and the
source's delete to complete. B1's restore from a restore target's snapshot
requires what the CLI prints: not_admitted, naming another volume's chunks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:56:04 -08:00
pingqiuandClaude Opus 5.5 7c4055da22 Merge #640's branch (with the release candidate on main) into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:54:46 -08:00
pingqiu a58b616fc5 Merge main (RC product) into the test-only change 2026-11-26 00:52:02 -08:00
Ping Qiu db064e0906 Merge pull request #637 from seaweedfs/fix/creation-phase-first
fix(master): creation is its own phase: no replacement decision before a volume's first line is healthy
2026-11-26 00:50:44 -08:00
pingqiuandClaude Opus 5.5 999a91d8eb Merge #640's branch at its newest head into ci/process-level-tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:49:22 -08:00
pingqiuandClaude Opus 5.5 9001a62778 Headroom way-out test reads the volume-delete answer the CLI prints
volume-delete answers {"volume":"<name>-<id8>","state":"deleted"}; the
test decoded a completed field the command no longer prints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:47:20 -08:00
pingqiu 6b817ed075 Merge the restore and HEAD command result fixtures 2026-11-26 00:46:53 -08:00
pingqiu eed6b8439f Merge the procedure HEAD layout view 2026-11-26 00:44:47 -08:00
pingqiuandClaude Opus 5.5 99e3a09057 Snapshot ladders read the snapshot list the CLI prints
ops chunk snapshots prints a JSON array of {name, root, dependents} in
name order, and a listed snapshot is published; the list carries no state
or cut position. The ladders now decode that array and check identity by
name and root: three snapshots with roots of their own, s4 listed only
once published and then unchanged, a retried snapshot keeping its root.
Contents stay checked by the restores that follow. A snapshot of a restore
target that is not fully local is now taken, and a restore from it is
refused with restore_source_not_own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:44:18 -08:00
pingqiu 25b9eeaedb test: decode current restore and HEAD command results in process fixtures 2026-11-26 00:43:27 -08:00
pingqiu 1965bfd45e test: read procedure HEAD proofs from the layout view
FIXTURE: the procedure helpers decoded ops chunk show into the retired storage HEAD. The CLI emits layout.Head: live state is empty, committed position is Position, and the detached HEAD itself is the stop proof. Port each procedure HEAD reader plus the shared seal and successor checks; preserve holder, epoch, image, position and generation assertions. No product deadlines or expected exit codes change.

The real layout.Head JSON passed to the legacy decoder reproduces position zero and nil DetachedBy. Current checks and captured-output controls pass 10x; the Linux subprocess/chunkstore_integration test binary compiles. Full real-binary procedure rerun remains pending.
2026-11-26 00:40:39 -08:00
pingqiuandClaude Opus 5.5 18d1610e8f Merge #640's branch (test/known-zero-current-cli) into ci/process-level-tests
So the process-level job runs on every push of the branch whose tests it
judges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:38:27 -08:00
pingqiuandClaude Opus 5.5 999b4f97b9 ci: the process-level job's measured time
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:37:28 -08:00
Ping Qiu f538171940 Merge pull request #639 from seaweedfs/fix/delete-never-created
fix: a volume that never completed creation is deleted without its holder
2026-11-26 00:30:49 -08:00
pingqiuandClaude Opus 5.5 bea2b7e20e Head-size fixture reads the store through its layout paths
The fixture read <chunk-path>/<name>/HEAD and counted top-level segments
in it, and counted <name>/keys: names the layout no longer writes (a 404,
or a silent 0). It now resolves the store directory <name>-<id8> from
blockmaster's record, decodes HEAD, counts the segments of its current
root, and counts the volume's pool objects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:17:52 -08:00
pingqiuandClaude Opus 5.5 3f1d36f934 docs(invariants): the delete mark in the creation machine; its ledger row in Part B
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:14:50 -08:00
pingqiu 70ffb2e2f9 Merge the creation machine docs (#637) into the delete exit 2026-11-26 00:14:39 -08:00
pingqiuandClaude Opus 5.5 8d5d262b15 docs(invariants): the creation phase's machine in Part A, with its diagram
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:14:25 -08:00
pingqiuandClaude Opus 5.5 1131ad58b0 Restore targets in the procedure harness are placement only
startHandoffEnvWith imported each target as an ordinary volume record, so
the first restore into it was refused as target_exists (bound to another
restore request). Targets now carry placement only and their restore
creates them; startHandoffEnvVolumes keeps the old form for the tests that
start their extra volumes without a restore. Assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:14:18 -08:00
pingqiuandClaude Opus 5.5 e7f238c4a8 fix(master): a store record rewrite keeps the delete mark; writer census
record() rebuilt a volume's store record from a new attestation and
carried Initial and AwaitingFirstReady over but not DeleteWithoutAck, so
a late attestation of the last store erased the mark and ended the frozen
wait. The mark is now carried like the other one-way fields and compared
in sameAttestation. TestTheDeleteMarkFreezesTheStoreWait (an attestation
of every store after the mark, then a restart) is the red control.

A source census pins the rules: a record is built only in open and in
record, record carries the mark over, and only markDeleteWithoutAck
writes it (true); its controls break each rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:14:14 -08:00
pingqiuandClaude Opus 5.5 6fa6f56089 fix(master): the delete without ack only in stage 1, and its mark freezes the wait
The delete without the holder's acknowledgement was admitted whenever the
end of creation was not recorded. That includes a volume that is serving
acknowledged writes whose end the master could not read (after a master
restart or a partition): the reservation stopped its grants, the proof
then found a write and refused, and the volume could neither serve, fail
over nor be deleted.

It is now admitted only in stage 1, while the master's record still
awaits a replica store (the primary serves nothing until every store is
recorded). The mark is written durably first, in the lock that ends the
wait, and freezes the record in stage 1: stores attested after it never
end the wait, so the primary never starts serving. Past stage 1 the
live-lease refusal stays; a broken creating primary's lease ends by
itself and the ordinary delete then applies. The survivor proof at the
HEAD update is no longer needed and is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:10:17 -08:00
pingqiu 957970d634 Merge the handoff layout identity cache fix 2026-11-26 00:09:04 -08:00
pingqiuandClaude Opus 5.5 cbe25d20f9 test: triage of the tagged run: --master, exit 78, the cleaning pass
- ops chunk show and snapshots built as argument slices get --master;
  the guard now also checks []string{"ops", ...} literals.
- A returning old host after a forced move exits 78 with reason=moved
  (the master's typed MOVED refusal), as the product documents.
- TestProcedureStartTooEarlyExitsAndARestartServes is retired: a start
  before the barrier now waits through it and is re-granted, which
  TestProcedureStartInsideTheBarrierWaitIsReGranted covers.
- ops chunk gc is gone: D4 deletes through the holder, whose cleaning
  pass removes exactly the deleted snapshot's chunks from the pool; the
  headroom test asserts the source snapshot of a waiting restore target
  cannot be deleted and keeps its chunks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:09:04 -08:00
pingqiu 98c033d77c Merge the reopen fixture (#637) into the delete exit 2026-11-26 00:06:16 -08:00
pingqiuandClaude Opus 5.5 d9a2783577 test(nvmerdma): the reopen test's primary attests its stores through the heartbeat RPC
The test's volume host has no replication slot, so it never attests
stores and the volume stayed in its creation phase. The fixture now sends
r1's heartbeat with its store attestation through the master's own
ReportHeartbeat RPC, as a replicated primary does after its peers'
barriers: no test hook, no hand-written record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:06:13 -08:00
pingqiuandClaude Opus 5.5 d6aa32ce58 fix(master): a delete without the holder's ack finishes only on proof the volume is empty
The never-created delete was admitted for any creation-hold reason,
including a volume whose primary had acknowledged writes before the
master recorded anything. Now:

- it is admitted only while creation has not ended, and the master's
  record is marked durably first, in the lock that ends creation, so
  creation never ends after the admission (the delete reads the record as
  it was admitted, also after a restart);
- deleting HEAD waits out the holder's lease horizon as before, and then
  requires proof that the volume is empty, read after the horizon: stage 1
  (not every store attested: the primary served nothing), or N-K+1
  survivors that answered on valid tables at end 0. A survivor holding a
  write, a silent survivor or an unknown ack profile refuses;
- a volume whose creation ended keeps the live-lease refusal.

Part A (M2) and the ledger row INV-WS-DELETE-WITHOUT-ACK-001 name the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:03:35 -08:00
pingqiuandClaude Opus 5.5 0150c3b40f ci: drop the retired too-early-start test from the process-level list
A start inside the barrier wait is now re-granted, so the test that
expected it to exit is retired; TestProcedureStartInsideTheBarrierWaitIsReGranted
covers that path. 43 tests remain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:02:50 -08:00
pingqiu 6ab7a1218a Merge the creation predicate (#637) into the delete exit 2026-11-26 00:02:32 -08:00