Commit Graph
70 Commits
Author SHA1 Message Date
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 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
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
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 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
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
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
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 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
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 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
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 aaef4cf5d6 ci: run pull-request tests on GitHub-hosted runners
Pull requests queued for over an hour behind three self-hosted runners while
GitHub-hosted runners, free for this public repository and already used for
fork PRs, start within about a minute and run many jobs in parallel. Pushes to
main keep the self-hosted tp04 runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:38:42 -08:00
pingqiuandClaude Opus 5.5 3d09c242b4 ci: run the spec trace check on a GitHub-hosted runner
The check only reads the PR description and the changed-file list. On the
self-hosted runners it waited behind full test jobs for over an hour and held
back merges whose tests had already passed. Hosted jobs in this repository
start within about a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:29:53 -08:00
pingqiu 7a9387982a ci: require CSI real-binary process tests 2026-11-28 12:41:58 -08:00
pingqiuandClaude Opus 5.5 3b43a590ae ci: run the process-level tests in 4 parallel shards
The process-level job ran its 44 named tests in sequence, about 53 min of
the CI time. They now run in 4 parallel shards in the same job, so the
required check keeps its name and its gate: shard-named-tests.py splits
the names file by each test's last measured time
(.github/process-level-seconds.txt; longest first into the least-loaded
shard; about 787 s each), each shard runs run-named-tests.sh with its own
slice of the test port ranges (SWBLOCK_TEST_PORT_SHARD) and its own TMPDIR,
and required-tests-check.py then judges every named test from all the
shards' events and statuses. shard-named-tests-test.py runs in the gate's
self-test step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 08:42:18 -08:00
pingqiuandClaude Opus 5.5 6c10de4e30 ci: the docs-only check reads its whole list and never skips on an error
The classification moves into .github/scripts/docs-only-scope.sh: it
writes git's NUL-delimited list to a file and reads it to the end, so no
pipe stops early and a writer's error cannot read as "no other file". A
failed git diff exits nonzero, and the step then runs the tests.

docs-only-scope-test.sh runs first in the step, against real commits:
docs only, docs and a test file, no file, a docs-like prefix, README, a
move out of docs, a docs deletion, 20000 docs files with one other file
last, an unknown revision (an error), and that test.yml applies the check
only to a pull request's process suite and gates all four process steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:55:23 -08:00
pingqiuandClaude Opus 5.5 bcf2082d5b ci: skip the process-level tests for a pull request that changes only docs
A pull request whose changed files are all under docs/ runs no product
code the process-level tests could exercise, yet waited about 55 minutes
for them. The process job now compares the merge commit with its base
parent; when every changed file is under docs/ it prints "skipped: docs
only (N files under docs/)" and skips the SeaweedFS fetch, the builds and
the named tests, so the required check still reports success. Pushes to
main always run them, as does any pull request with another changed file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:48:39 -08:00
pingqiuandClaude Opus 5.5 fc16b78ea3 ci: the process-level tests as a second entry of the go-test job's matrix
The repository's public-text gate refuses a pull request that adds a line
naming the team runner label, and the separate process-level job added a
second runs-on line. It now runs as the 'process' entry of the existing
job's two-entry matrix (unit | process), under that job's unchanged
runs-on line; each step is gated on matrix.suite, and the job name and
timeout are templated so the two checks keep their names ('go test
(linux)', 'process-level tests (real binaries)') and bounds (40 / 90 min).
The old two-test step stays folded into the named list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:19:55 -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 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 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 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
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
pingqiuandClaude Opus 5.5 3c1554f7d2 ci: build the kzhold blockvolume for the known-zero crash step
The known-zero acceptance's first-start crash step (step 5) needs
KZ_HOLD_BIN, a test-only blockvolume built with -tags kzhold; without it
the test refuses at that step once it gets there. The job builds it
beside the other binaries and exports KZ_HOLD_BIN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:02:18 -08:00
pingqiu e89276507f ci: run the named process-level tests; a skip or a test that never ran fails
The process-level tests (cmd/blockvolume, tags subprocess and
chunkstore_integration) were only compiled; the workflow ran two of them.
A new job runs every test named in .github/process-level-tests.txt, each
in its own bounded process of one prebuilt test binary, against the
pinned SeaweedFS release. required-tests-check.py fails the job unless
every named test passed: a skip, a failure, a test that never ran or one
cut off mid-run is a failure. Its self-test runs first in the job.

The tests that need root, a mapped device or systemd stay outside CI
(named in the list's header). The previous two-test step is folded in.
2026-11-25 23:53:10 -08:00
pingqiu aedd3002bd ci: require mapped model actions in spec traces 2026-11-25 15:48:26 -08:00
pingqiuandClaude Opus 5.5 599caf1354 ci: run the spec trace check on the project's runner again (revert #576)
GitHub-hosted jobs for this repository wait in a shared queue: since
04:21Z every spec trace job sat queued on ubuntu-latest with no runner,
so no pull request could pass its checks. The workflow's own comment had
said so (the hosted queue can wait for hours).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 20:55:40 -08:00
pingqiuandClaude Opus 5.5 b81e0597d2 ci: run the spec trace check on a GitHub-hosted runner
The check runs no PR code and needs no project host, but it queued behind
the self-hosted test jobs; every PR's merge waited on that queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:23:48 -08:00
pingqiu 9b975064e7 Merge branch 'pr412' into train/20261122-25 2026-11-22 08:27:31 -08:00
pingqiu 8bf4428682 Merge remote-tracking branch 'origin/main' into ci/g4-planned-handoff
# Conflicts:
#	.github/workflows/test.yml
2026-11-22 06:29:53 -08:00
pingqiuandClaude Fable 5.2 abff195976 ci: refuse internal names in a pull request's public text
A check on the lines a pull request adds, its commit messages, its title
and its description: internal seat names and internal file-share paths
are refused, each hit printed with file and line. Runs beside the spec
trace check from the base branch; no pull request code is run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:27:33 -08:00
Ping QiuandClaude Opus 5.5 d38f816700 ci: give a touched heavy package 20 minutes
core/storage alone took 602 s under -short on the shared runner on main,
past the 10 minute per-package limit, so a PR that touches it fails on
the limit, not on a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:32:19 -08:00
pingqiuandClaude Opus 5.5 4bc8ba094a ci: run the planned hand-over tests against a pinned SeaweedFS release
A step after the default pass runs the documented standalone planned
hand-over and its refused clean move without the ACK (cmd/blockvolume
TestStandalone*, build tags subprocess and chunkstore_integration) with
weed 4.53 linux_amd64 from the SeaweedFS release, checked against its
sha256 before every use, also from the runner's tool cache. A mismatch
fails the step. It follows the job's rules: pushes, train PRs and
non-Draft PRs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:07:43 -08:00
pingqiuandClaude Opus 5.5 09cac1bcf2 ci: run the full suites on the per-train test VM, not on the shared runner
Main pushes and train PRs run the light set only; the legacy-fixture
job is removed. Each train runs both full configurations on a
separate test VM before it merges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:29:29 -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