Commit Graph
3468 Commits
Author SHA1 Message Date
pingqiu c084b9ab5c Merge remote-tracking branch 'pr/350' into trial9b 2026-11-21 06:20:13 -08:00
pingqiu b9d4b8c8ad Merge remote-tracking branch 'pr/349' into trial9b 2026-11-21 06:20:13 -08:00
pingqiu 650024bdbd Merge remote-tracking branch 'pr/348' into trial9b 2026-11-21 06:20:13 -08:00
pingqiu 6e2ca6b5b2 Merge remote-tracking branch 'pr/340' into trial9b
# Conflicts:
#	cmd/sw-block/chunk.go
#	docs/design/invariants.md
2026-11-21 06:20:10 -08:00
pingqiuandClaude Fable 5.2 161d34ed19 Merge main: rows re-checked after the claim removal
The fork row no longer names a claim: every attempt of a fork reads its
parent again. Rows main changed keep main's text; count recomputed from
the tables.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 05:49:14 -08:00
pingqiuandClaude Opus 5.5 b9bc151574 storage: test that the copy window holds the cut's own read cap and cause; zero-cap cuts that stage must complete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:43:57 -08:00
pingqiuandClaude Fable 5.2 aa01840223 master: the slow-store lease guard test reports renewal gaps and the fence cause
When TestWorkspaceLeaseGuardSurvivesSlowAuthorityStore fails it now
prints the longest gap between successful renewals, the gap when the
fence was seen, and the cause the guard records, so a starved runner
can be told from a guard that fenced with renewals in time. No bound
changed, nothing skipped.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 05:41:20 -08:00
pingqiuandClaude Opus 5.5 41444b75bb ci: a PR also runs every heavy package its own diff touches
Review fold: the light set dropped the four heavy packages even when the PR
changes them, so a PR's own Red-first tests there first ran in a train. The
step now adds back each heavy package with a file of the PR's diff in it
(checkout depth 2: the merge commit and its base parent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:37:49 -08:00
pingqiuandClaude Opus 5.5 1122108a48 ci: a PR runs the light Go set; the long and timing-sensitive packages run on main and trains
core/storage, core/frontend/durable, core/host/master and core/authority
take minutes each and hold the timing-sensitive tests; under the CI host's
lowered I/O and CPU weight they reached the 10 minute package timeout on
PRs that do not touch them. A PR now runs every other package; pushes to
main and train PRs run the full list. Branch names reach the script only
through the environment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:31:50 -08:00
pingqiuandClaude Opus 5.5 dad0b347d3 storage: one free-space read per cut for staging and the window; a zero cap shows its cause (no_room_to_cut, free_space_unreadable) in stats and abort counts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:30:15 -08:00
pingqiuandClaude Opus 5.5 827cec9752 docs: restore the S11 ForkDelete row dropped in the merge (verbatim from main)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:20:09 -08:00
pingqiu c0a2bafda9 Merge remote-tracking branch 'origin/main' into feat/publish-settled-hook
# Conflicts:
#	core/frontend/chunkstore/catalog.go
#	core/frontend/chunkstore/gc.go
#	core/frontend/durable/provider.go
#	docs/design/invariants.md
2026-11-21 05:16:09 -08:00
pingqiuandClaude Fable 5.2 05edbbcb72 Merge main: verify joins the shared single-filer start check
The chunk commands' single-filer start check now comes from main; this
branch's own copy and its tests are removed. verify runs the check
inside its --timeout: against a split filer view it would report false
findings.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 05:15:50 -08:00
pingqiuandClaude Opus 5.5 d1038546a1 Merge origin/main 654b5601 (Train 8) into restore part B; docs reconciled to no-claim
Train 8 carries the fork-claim removal; the three docs conflicts resolve to
the no-claim union: the claim-free Fork, Retention and diagram text with this
part's Hydrating/Owning rows and steps; INV-RESTORE-PARENT-HOLD-001 archived;
both B.6 notes; the S10 row is the no-claim model, S11 ForkDelete kept.
Ledger recounted from the tables: 138 rows, 118 ACTIVE, 17 STUB, 3 ARCHIVED,
123 new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:13:03 -08:00
pingqiuandClaude Opus 5.5 3204537cb5 storage: test that low free space at the cut stages before the barrier; the cap test's writer has its own bounded join
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:09:38 -08:00
pingqiuandClaude Opus 5.5 64c717f8b3 storage: each cut's COW spill cap is min(the configured cap, half the free space minus 1 GiB)
The free space of the side file's filesystem (--durable-root, statfs on
Linux) is read at each cut, for the staging bound and when the copy
window opens; a read error counts as no free space. At the cap the cut
aborts (cow_capacity) and the guest write completes. Adds Part E.
Quantities to the ledger with this row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:09:38 -08:00
pingqiuandClaude Opus 5.5 5fe54fc1e1 durable: a scheduled-snapshot retry keeps its delay across a wall-clock step backwards
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:08:31 -08:00
pingqiuandClaude Opus 5.5 24405cb3b0 durable: the snapshot schedule runs on the wall clock (observes steps both ways), keeps its state across a re-armed loop; retention keeps pinned scheduled snapshots in their class
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:08:31 -08:00
pingqiuandClaude Opus 5.5 8935841c82 durable: test that wall-clock steps neither repeat nor stall the snapshot schedule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:08:31 -08:00
pingqiuandClaude Opus 5.5 ab3610608c blockvolume: scheduled snapshots (daily:7 by default), one COW cut each at a per-volume offset
A per-volume worker takes a named snapshot of class scheduled once per
period, through the same seal path as an explicit snapshot (resolve the
request, one urgent cut, record that cut's HEAD). A restoring volume
(chunks its HEAD names still absent) is skipped and counted; a failure
keeps the control endpoint's code and is retried with a backoff doubling
from 1m to 1h; status carries the schedule state and snapshot_overdue.
Retention keeps the newest N scheduled snapshots (N from the newest one's
swb.schedule.keep label) separately from other snapshots.
--chunk-snapshot-schedule=daily:N|weekly:N|off, default daily:7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 05:08:31 -08:00
Ping Qiu 654b560170 Merge pull request #346 from seaweedfs/train/20261121-8
train 8: dead flag removal, ops start check, status schema, claim-free snapshot delete, frozen budget fields, periodic cut off by default
2026-11-21 05:06:44 -08:00
pingqiuandClaude Opus 5.5 3ec49ccdc5 ci: Draft PRs skip the Go suite; the legacy-fixture pass runs on main and trains only
The suite writes real files with fsync to the self-hosted runners' disk:
about 650 GiB an hour on tp04 today, most of it from repeated runs on Draft
PRs and from the second full pass with the legacy-fixture tag on every PR.
A Draft PR now runs no Go suite (marking it ready starts one), and the
legacy-fixture pass runs on pushes to main and on train PRs, which carry
every change that merges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 04:55:26 -08:00
pingqiuandClaude Fable 5.2 c82ecff5f8 authority: print all goroutine stacks when the lease horizon test stalls
The three deadlock failures of
TestWorkspaceLeaseConcurrentRenewalsWritersExtendersClose now print the
stack of every goroutine. One CI failure of this test gave no way to see
where the parties were blocked. No timeout changed, nothing skipped.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 04:39:45 -08:00
pingqiu 071dfc96fd test(storage): map complementary capture and barrier coverage 2026-11-21 04:21:42 -08:00
pingqiu 95bba30511 test(storage): witness cut progress at explicit events 2026-11-21 04:16:49 -08:00
pingqiuandClaude Opus 5.5 2629004167 train 8: regenerate the status schema page after #338's comment change
docs/status-schema.md is generated from the Go field comments (#341);
#338 rewrote the StageRounds comment group, so the composed train needs
the page regenerated (STATUS_SCHEMA_UPDATE=1). Docs only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 04:06:11 -08:00
pingqiuandClaude Fable 5.2 fd9781af14 durable, storage: tests for pre-copy and I/O-gate rules no test pinned
A pause's drain waits for every admitted I/O (two in flight), a pause
does not begin on an unusable backend, a drain that loses readiness
ends with an error, the sample history is bounded at 32, the round loop
retries only the named errors, the attach wait fails fast on a terminal
state, a plain-detach stop refuses a closed backend. Tests only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 03:56:24 -08:00
pingqiu 58a47ba5f8 Merge branch 'p345' into train/20261121-8
# Conflicts:
#	cmd/blockvolume/chunk_remote_test.go
#	docs/design/agent-workspace-design.md
2026-11-21 03:23:48 -08:00
pingqiu 1af3fb197a Merge branch 'p344' into train/20261121-8 2026-11-21 03:23:31 -08:00
pingqiu 3c698833fe Merge branch 'p337' into train/20261121-8 2026-11-21 03:23:30 -08:00
pingqiu 1180c82379 Merge branch 'p341' into train/20261121-8 2026-11-21 03:23:30 -08:00
pingqiu 66e0ed494d Merge branch 'p339' into train/20261121-8 2026-11-21 03:23:30 -08:00
pingqiu 66e131b4e6 Merge branch 'p338' into train/20261121-8 2026-11-21 03:23:30 -08:00
pingqiuandClaude Opus 5.5 daad372367 test fold: GoOwned ordering witness and a once-only Close in cleanup
The test records the owned goroutine's settlement and Close's return with
sequence numbers and requires settlement first; before releasing it gives a
Close that does not join 200 ms to return while the goroutine is held. One
Close launcher (sync.OnceFunc) serves the body and the pre-registered cleanup,
which always cancels, releases and joins, also when GoOwned or the start wait
fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 03:18:11 -08:00
pingqiuandClaude Opus 5.5 c329c57985 blockvolume: the periodic HEAD capture is off by default (opt-in, at least 5m when set)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 03:14:07 -08:00
pingqiuandClaude Opus 5.5 7fa772b975 test fold: pace origin before the call, GoOwned held settlement, owner-close teardown order
- The pacing test measures each admission from a time taken before the call,
  a lower bound of the walker's own start, keeping the exact 8 fills, Gets
  and admissions.
- The GoOwned test bounds every wait, pre-registers release and a bounded
  join of Close, and witnesses that Close does not return while the owned
  goroutine is held after its ctx ended (no sleep).
- The owner-close driver test releases the held provider call before the
  owner's join at teardown, so its red case cannot leave a worker behind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 03:08:35 -08:00
pingqiuandClaude Opus 5.5 f2369fad11 docs: INV-SHARE-ACTIVATION-001 has no TLA+ property
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 03:04:56 -08:00
pingqiu 461272afc4 fix(storage): retain frozen observation on drain refusal 2026-11-21 03:00:18 -08:00
pingqiuandClaude Opus 5.5 ef9155e660 test: give the failing-cut fixture 2 s (300 ms was tight on a loaded runner)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 02:48:26 -08:00
pingqiu 06a8410099 storage: report the complete frozen estimate and refreeze quiesce slack 2026-11-21 02:44:51 -08:00
pingqiu e4ec43224f test(storage): require complete frozen admission quantities in candidate tail 2026-11-21 02:37:57 -08:00
pingqiuandClaude Opus 5.5 7a9d0f7008 fold: re-own fully local absent chunks, drop keyless cached payloads, owner-bound driver, stricter tests
- OwnBatch, its cut candidates and its progress use one predicate: a chunk is
  local when present or when every block was written locally (a guest
  overwrite flushed before the walker reached it), so such a chunk is owned
  with no fetch instead of stalling the driver.
- OwnBatch drops a remembered payload of a picked chunk that matched HEAD and
  was never uploaded (no key), so the cut reads and uploads it under an own key.
- The driver runs inside the serving provider's lifetime (DurableProvider
  GoOwned: ctx ends at Close, Close joins it); a closed provider admits none.
- Tests (each red without its fix): fully overwritten absent chunk owned with
  no Get; equal keyless payload from a failed cut still re-owned; a second
  start joins the running run (one walk); owner close cancels and joins a run
  held in a provider call and no marker follows; Close joins GoOwned; the
  pacing test requires all 8 fills and Gets and witnesses admission times.
- Restore diagram and bullet without claims (same text as the snapshot-delete
  change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 02:17:05 -08:00
pingqiuandClaude Opus 5.5 93298f9fa6 fold: restore diagram and model row without claims; post-GC checks name every expected chunk
The restore diagram's first state reads the parent (no claim, publish before
read time + deadline); the S10 model row is marked as the claim-era model.
The two post-GC checks go through chunksMismatch, which requires exactly the
expected indexes and every payload; a negative test shows a missing index is
caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 02:08:31 -08:00
pingqiuandClaude Opus 5.5 c041d9e28e spec: RestoreIndependence no-claim variant (exhausted) replaces the claim-era model
The model this part rests on, as checked (no-claim variant; only comment lines
changed: seat and note names removed), with its 26 configurations: the
no-claim safe cfgs exhausted with no error (360 k to 2.75 M states), the
boundary G >= D on one clock (ForkDelete's G >= D + E + P with E = P = 0),
13 reds and 2 witnesses on their properties, and the claim-frame regression
cfgs. The claim-era configurations not re-run against this spec are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 01:23:17 -08:00
Ping Qiu fafafda577 Merge pull request #342 from seaweedfs/ci/spec-trace-docs-kinds
ci: spec-trace accepts DOCS, TEST and CI kinds, each checked against its files
2026-11-21 01:22:56 -08:00
pingqiuandClaude Opus 5.5 5bb512d0f0 spec: ForkDelete model and its configurations (exhausted)
The fork/restore versus snapshot delete model this change rests on, byte for
byte as checked (sha256 c9c7c7fa), with its 28 configurations: 11 safe
(exhausted, no error, 18,672 to 15.7 M states, including every boundary
G = D + E + P), 12 reds and 5 witnesses each on its expected property.
README rows; the invariant rows drop the simulation tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 01:22:15 -08:00
pingqiuandClaude Opus 5.5 6d6dcdd341 storage: the re-entrant hook test cancels its cuts before the join; drainer doc states the dequeue boundary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 01:19:32 -08:00
pingqiuandClaude Opus 5.5 c87f464e29 ci: spec-trace checks out the base branch tip, not the PR's recorded base
On pull_request_target, base.sha is the base recorded when the PR was last
synchronised, so a PR opened before the spec-trace scripts landed checked
out a tree without them and failed with 'No such file or directory'.
github.sha is the base branch tip at the event; the diff still uses the
merge base of the PR's base and head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:46:22 -08:00
pingqiu 1002f66cf5 Merge remote-tracking branch 'origin/main' into feat/chunk-verify 2026-11-21 00:31:24 -08:00
pingqiuandClaude Fable 5.2 635cf50c16 chunkstore: verify: judge each reference against the object's one outcome, at the end
Nothing is stored about a reference except that a root carried it. An
object (a chunk or a manifest segment, by owner and key) has one outcome
from its one check; whether a reference to it is sound is a pure function
of that outcome and the reference, so the findings no longer depend on
which reference was seen first. An object that had a problem under any
reference seen and yields no finding is counted once.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 00:27:27 -08:00