Commit Graph
119 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 7cb62f3b71 ci: the stderr fallback and a missing recorder have their own controls
The dead-recorder twins wrote a large stdout but one short stderr line,
so removing only the stderr fallback still passed. A fake Go that writes
10,000 stderr lines now runs with a recorder that dies after 100 bytes,
and with no recorder at all (no such interpreter); each keeps Go's own
exit 0 and 7, and dropping the stderr fallback turns the suite red.

The sampler stop test's wait for its stand-in is bounded (10 s) and
fails at once if the stand-in exits before it is ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:42:45 -08:00
pingqiuandClaude Opus 5.5 69cd5c08bb ci: a dead recorder hands its stream to cat; a sampler that will not stop is recorded
If the Go event recorder itself dies or cannot start, the rest of its
stream (stdout, and the stderr side) now drains through cat, so go test
never writes into a closed pipe and its own exit status stays the answer.
Twins with a recorder that exits after 100 bytes and a large stream:
exit 0 stays 0, exit 7 stays 7.

Stopping the load sampler now waits on its pidfd (readable on exit) for
2 s; a sampler still alive leaves load.incomplete beside its rows and a
stderr note instead of returning as if it had flushed. The stop test
checks the process is gone (no file-stability guess) and a SIGTERM-
ignoring stand-in yields the note within 5 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:50:48 -08:00
pingqiuandClaude Opus 5.5 af7ee03fe4 Merge branch 'main' into ci/failure-bundle-ae
Conflict in the test workflow: main added the self-hosted runner NVMe
check after checkout; this branch adds the load-evidence start and its
self-test there. Both kept, the NVMe check first so a misplaced runner
stops before anything else runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 23:40:50 -08:00
pingqiuandClaude Opus 5.5 a2419b2cec ci: judge tmpfs by filesystem type; an lsblk error voids its output
A tmpfs mounted under another source name (shm, a custom label) was
refused because the check compared the source name. And an lsblk that
printed an NVMe disk and then failed was accepted, since its status was
discarded. The check now reads the filesystem type from df and treats any
lsblk failure as "not a block device". Two stub cases pin both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:53:34 -08:00
pingqiuandClaude Opus 5.5 4ec8ec06e6 ci: stop a self-hosted job whose work or temp dir is not on NVMe
One runner box kept its runners' work, temp and Go cache directories on
its SATA system disk (the default install puts _work under the runner
directory in /home). Under the process-level tests' fsync load that disk
saturated and jobs timed out, which read as test failures.

The first step of the test and known-bugs jobs on a self-hosted runner now
checks that every disk behind the workspace, RUNNER_TEMP, TMPDIR and GOCACHE
is NVMe (tmpfs accepted) and fails naming the runner and the directory
otherwise. GitHub-hosted runners skip the step. The script's test stubs df
and lsblk: NVMe, tmpfs, a not-yet-created dir pass; SATA, an array with a
SATA member and a network share fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:45:32 -08:00
pingqiuandClaude Opus 5.5 7c5a0ae8c4 ci: run C3 non-gating on shared runners until #905 is fixed
The first write after the holder reports its frontend ready can still be
answered namespace-not-ready for longer than a host retries (measured
18 s with retries on a shared runner). That is a product finding tracked
in #905 and a v1.1 release gate; the test keeps running and reporting on
every job, and the fix removes this marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:32:31 -08:00
pingqiu 92658eccdb ci: keep recorder errors separate from the Go test verdict 2026-12-01 20:49:27 -08:00
pingqiu 458f64dda9 ci: resolve evidence directory only after runner allocation 2026-12-01 20:36:42 -08:00
pingqiuandClaude Opus 5.5 3fdc17e3e7 ci: retain timed test events and whole-job load on failure
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:33:20 -08:00
Ping Qiu dee857b2f3 Merge pull request #915 from seaweedfs/ci/process-level-artifacts
ci: keep the process-level logs and shard results when a run fails
2026-12-01 20:32:30 -08:00
pingqiuandClaude Opus 5.5 f9cca837b0 ci: named tests can be non-gating with an open issue; the preview fencing round is (#920)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 19:37:14 -08:00
pingqiuandClaude Opus 5.5 e74a4eccc2 ci: keep the process-level logs and shard results when a run fails
The harness already copies each failed test's full daemon logs to
SWBLOCK_TEST_LOG_DIR (keepFullLog), but the workflow never set it and
uploaded nothing, so a failure's evidence was lost with the runner's
temp directory. Set the directory and upload it, with every shard's
JSON, log and status, as an artifact on failure (14 days).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:52:02 -08:00
pingqiuandClaude Opus 5.5 32f9366542 ci: vet and test each lab tag alone and both together
The draft v1.1 format tag is now separate from the 256 GiB cap lift, so
the lab-tag step builds and tests swblock_lab_bigvol, swblock_v11_format
and both, and runs the format-tag test under each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:16:50 -08:00
pingqiuandClaude Opus 5.5 73ec053d7f build: the draft v1.1 store format gets its own tag, apart from the cap lift
swblock_v11_format now turns on the draft v1.1 store format;
swblock_lab_bigvol lifts only the create cap and the headroom refusal.
A build with the format tag names itself in its revision
("LAB BUILD(swblock_v11_format)"), so the image refusal keys on it as it
does on the cap tag, and the CI tag check refuses either tag outside its
allowlist. CI tests each tag alone and both together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:12:42 -08:00
pingqiuandClaude Opus 5.5 d7abff2bac ci: a failed test's message keeps its continuation lines
The summary kept only each file:line line, so a message whose reason is on
its next lines (a holder's log tail after "its log ends:") lost it. Each
own message now keeps its last 20 continuation lines; a harness header's
dump stays out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 02:58:21 -08:00
pingqiuandClaude Opus 5.5 32e8135a47 ci: allow the v1.1 format guard files to name the lab tag; vet core/storage with it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:59:32 -08:00
pingqiu ffa6608972 Serve lab heap profiles on the existing status listener 2026-11-30 13:08:56 -08:00
pingqiu 81db85916b Allowlist the lab heap profile diagnostic files 2026-11-30 12:50:23 -08:00
Ping Qiu 51984cefac Merge pull request #833 from seaweedfs/feature/v11-chunk-coverage
Add durable per-block chunk coverage and upgrade boundary
2026-11-30 12:29:40 -08:00
pingqiuandClaude Opus 5.5 c32199b872 ci: move :alpha only for the highest stable version; refuse odd tags
A stable tag moves :alpha only when it is the highest vX.Y.Z tag, so a
later patch on an older line never moves :alpha back. A tag that is not
vX.Y.Z or vX.Y.Z-pre fails the run instead of publishing. The checkout
fetches tags so the comparison sees them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:51:43 -08:00
pingqiuandClaude Opus 5.5 82498e840d ci: a release candidate publishes only its own version tag
Only a stable-line release tag (vX.Y.Z, no pre-release suffix) moves the
public :alpha and sha-* image tags; a release candidate (vX.Y.Z-rc.N)
publishes its version tag alone. The workflow also runs only on version
tags and on a manual run from a version tag, never on a branch push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:49:11 -08:00
pingqiu e3f3762e55 Merge main into chunk coverage upgrade 2026-11-30 10:40:22 -08:00
Ping Qiu e876a773bc Merge pull request #826 from seaweedfs/feat/lab-bigvol-tag
v1.1 V0: lab-only build tag swblock_lab_bigvol (create cap, headroom), kept out of every image
2026-11-30 09:12:40 -08:00
pingqiu a2cd299086 Recover half-fence map reuse through an intact unmarked slot 2026-11-30 08:53:11 -08:00
pingqiu 32a7f1f74d Refuse presence reseeding after the chunk coverage marker 2026-11-30 08:43:44 -08:00
pingqiu 2d0a20bdc0 Add durable per-block chunk coverage and upgrade boundary 2026-11-30 08:27:14 -08:00
Ping Qiu 0f1fccdfb0 Merge pull request #817 from seaweedfs/feature/v11-store-format
storage: fence chunk-state upgrades and persist checked record pages
2026-11-30 07:49:23 -08:00
pingqiuandClaude Opus 5.5 0db65a8cc6 ci: refuse a manual image publish that is not on a version tag
A workflow_dispatch from a branch would still write :alpha. The publish job
now runs only when the ref is a v* tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:46:21 -08:00
pingqiuandClaude Opus 5.5 d7d5fcc8b2 ci: publish images on version tags only, not on every push to main
main now carries the next minor version in development, which will bring a
one-way store format change. Publishing on each push to main would move the
public ':alpha' and 'sha-*' tags to those development builds. Images are
published only for version tags (and manual dispatch) until the image tag
policy for development builds is decided.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:41:11 -08:00
pingqiuandClaude Opus 5.5 748e4bc5e6 lab tag: the wiring check pins an executed refusal; every read is checked
The refusal must be an executed line, RUN bash scripts/refuse-lab-binary.sh,
after the recipe's last go build and naming every binary the recipe builds
(go build ... -o /out/NAME); a comment no longer counts. Each recipe and the
publish workflow is read once with a checked read, so a read error fails
instead of reading as no match; failures go to stderr. The controls now
start from copies of the real recipes and publish workflow: the guard
deleted with its comment kept (both recipes), commented out, a built
binary left out, a new binary not refused, the refusal before the build,
and an unreadable recipe (Linux), each refused for its own reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:31:25 -08:00
pingqiuandClaude Opus 5.5 549524f537 lab tag: a lab binary names itself and no image can hold one
A lab build's revision carries LAB BUILD(swblock_lab_bigvol), so -version and
the volume's /status show it. Every image Dockerfile runs
scripts/refuse-lab-binary.sh right after its go build: a binary that is a
lab build, or cannot answer -version, stops the image build, so neither
the publish workflow nor the image scripts can push one. lab-tag-check.sh
now fails closed: an allowlist of the files that may name the tag (git grep;
a scan that cannot run fails), plus the wiring (each Dockerfile refuses
after its last build; the publish workflow builds only from those, with no
go build of its own). Controls cover each contamination and the refusal
script's stand-in binaries. The lab headroom test asserts the warning, and
both invariant rows name the lab exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:22:45 -08:00
pingqiuandClaude Opus 5.5 1ca31ed44c geometry, durable: a lab-only build tag for scale rehearsals
The swblock_lab_bigvol tag lifts the 256 GiB create cap to the format's own
limit (16 TiB - 4 KiB) and turns the local headroom refusal at create into a
warning, so the scale rehearsals can create sparse volumes larger than the
release allows and than the disk. A release build is unchanged and pins
that (TestReleaseBuildKeepsTheCreateCap). CI refuses the tag under deploy/
and in every workflow but test.yml (lab-tag-check.sh, with controls), and
tests the lab build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:11:21 -08:00
pingqiuandClaude Opus 5.5 48e1e7f53f ci: run Test for same-repo pull requests on the self-hosted runner
The hosted queue held every same-repo pull request's Test job for more than
an hour today, which blocked gate fixes and reviewed work alike. Same-repo
pull requests now run Test on the tp04-seaweed-block label, as main pushes
and train branches already do. Pull requests from forks keep the hosted
runner, so no fork code runs on our machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 04:38:27 -08:00
pingqiu 6c5a1b42e4 docs: trace the chunk-state slot fence to its model rules 2026-11-30 03:09:02 -08:00
pingqiuandClaude Opus 5.5 c915e21903 ci: run the format v3 tagged tests, five BASE tests skipped by name
The swblock_format_v3_test tags never ran in CI. Five durable tests
install a BASE on a chunk store, which no production path does; they are
skipped by name until their rewrite, so every other tagged test gates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 22:10:33 -08:00
pingqiuandClaude Opus 5.5 133e3f7745 ci: run a train PR's Test suites on the self-hosted runners
The organization's shared hosted queue held train PRs 30 to 55 minutes
before their suites started, while the team's runners, which already
run the same suites on every push to main, were idle. Only train/*
branches of this repository select them; every other PR, forks
included, stays on GitHub-hosted machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:25:11 -08:00
Ping Qiu b2eaab0da0 Merge pull request #784 from seaweedfs/ci/tagged-real-filer-and-ledger-report
ci: run the real-filer integration tests; report invariants-ledger anchors
2026-11-29 19:12:48 -08:00
pingqiuandClaude Opus 5.5 166bba1252 ci: run the integration tests for provider-only changes; harden the ledger check
The scope gate selected the real-filer suites only for chunk-store and
storage changes, but its second suite tests the durable provider: a PR
that changed only core/frontend/durable/ skipped it. The ledger anchor
check is the hardened script: a git failure or a ledger with no rows is
an error (exit 2), not a pass, and a path matches whole components only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 18:45:26 -08:00
pingqiuandClaude Opus 5.5 3b7c35216b ci: the Facts line names one of three placement classes per fact
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:18:51 -08:00
pingqiuandClaude Opus 5.5 e25678f9aa ci: the PR template asks for the facts a change adds or changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:17:47 -08:00
Ping Qiu 0ae0c519b4 Merge pull request #793 from seaweedfs/ci/post-merge-review-hosted
ci: run post-merge-review paths on GitHub-hosted runners again
2026-11-29 15:50:02 -08:00
pingqiuandClaude Opus 5.5 6e33814b92 ci: run post-merge-review paths on GitHub-hosted runners again
On the self-hosted runners every run of this job failed in "Set up job"
within two seconds and left no log, while spec trace passes there. The
job only echoes for an unlabelled PR, so it goes back to ubuntu-latest
until the cause is known.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 14:40:45 -08:00
pingqiu e372193edc Merge main f5d43af2 (#787, #789) into train/20261129-t1
# Conflicts:
#	docs/design/invariants.md
2026-11-29 14:33:59 -08:00
pingqiuandClaude Opus 5.5 954179e9cb ci: choose the light checks' runner by PR origin; check blob paths
A PR from a fork keeps a GitHub-hosted machine: pull_request_target
starts for any PR without approval. The DOCS blob step wrote files by the
paths a PR's tree names, which git does not check when it prints a diff;
a crafted tree with '..' entries wrote outside the workspace. The step is
now a script that refuses such a path before any write, and both jobs
fetch the PR head with fetch.fsckObjects=true. spec trace sets up Go for
sametokens.go, which a self-hosted runner does not have on its PATH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:33:17 -08:00
pingqiuandClaude Opus 5.5 8c582a43b1 ci: run the light PR checks on the self-hosted runners
The spec trace and post-merge-review path checks read only the PR
description and git objects. On the organization's shared GitHub-hosted
queue they waited behind other repositories' jobs and held merges back;
the self-hosted runners are mostly idle since PR suites run GitHub-hosted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:24:42 -08:00
pingqiuandClaude Opus 5.5 2eb4269448 ci: decide the integration-test scope in a tested script
The path check piped git diff into grep -q under pipefail: on a match grep
exits early, git diff can die of SIGPIPE, and the pipeline's failure read as
"no match", so the tests were skipped exactly when they were needed.

chunkstore-scope.sh writes the NUL-delimited list to a file and reads it to
its end, as docs-only-scope.sh does; an error of the check runs the tests.
Its self-test covers a match listed after 20000 other files, a deletion, a
look-alike prefix and an unknown revision. Each filtered go test must PASS at
least one test, so a filter that matches nothing fails instead of passing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:14:41 -08:00
pingqiuandClaude Opus 5.5 9b01a4172b ci: run the real-filer integration tests; report invariants-ledger anchors
The chunkstore_integration tests (real weed master, volume and filer) ran
nowhere in CI. They now run in the process-level job against the pinned weed
it already downloads: always on pushes to main and train PRs, and on any other
PR that touches core/frontend/chunkstore/ or core/storage/. Only the
integration tests run (-run '^TestIntegration' in chunkstore, the layout
sync crash cases in durable); the default suite already covers the rest.

The spec-trace job also prints every code and test anchor of
docs/design/invariants.md that does not exist at the PR's commit. It reads
git objects only and never fails the check yet: it becomes gating once the
known imprecise anchors are corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:05:59 -08:00
pingqiuandClaude Opus 5.5 c0b8242b1f ci: the PR template asks the five questions, Weakens among them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 10:28:05 -08:00
pingqiuandClaude Opus 5.5 c7ac7b2199 docs(trace): map volume_backup.go to RestoreCommand; ledger names the required-name test
The public trace map gains the RestoreCommand module (Run, Start,
AbortVerify, Abort) for cmd/sw-block/volume_backup.go, and
INV-CLI-RESTORE-VERB-001 also names the backup's required-name test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 02:37:05 -08:00
Ping Qiu 745c20715d Merge pull request #727 from seaweedfs/feat/log-level-utc
feat, logging: add log levels and UTC microsecond timestamps
2026-11-28 23:43:55 -08:00