Commit Graph
43 Commits
Author SHA1 Message Date
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
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 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
pingqiuandClaude Opus 5.5 46db22aa42 ci: kind DOCS compares Go tokens, not lines; CI covers .github/ only
Review fold. The line-multiset comparison let reordered statements,
directive comments (//go:build, //go:linkname, the cgo preamble), a //
inside a string after a rune quote, a line inside a multi-line raw
string and spacing inside a string all pass as comment-only. A small Go
program (sametokens.go, go/scanner) now requires the old and new token
sequences of each changed non-test Go file to be identical, comments
dropped except directives and the cgo preamble; gofmt realignment passes
by construction. The workflow passes old/new blobs instead of a diff.
DOCS no longer covers docs/spec (the models); CI no longer covers
scripts/, which holds shipped install and deploy scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:16:40 -08:00
pingqiuandClaude Opus 5.5 49fdfc52b4 ci: spec-trace accepts DOCS, TEST and CI kinds, each checked against its files
A PR that changes no behaviour names one of three kinds instead of
IMPL, FIX or CHANGE. TEST may touch only tests, testdata and test
helpers; CI only .github/ and scripts/; DOCS docs, tests and Go whose
hunks change only comments. For DOCS the workflow passes the diff of the
non-test Go files, and the check compares removed and added lines with
line comments (outside strings) and spacing dropped; every changed Go
file must appear in that diff. Ten self-test cases added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:56:34 -08:00
pingqiuandClaude Opus 5.5 8e3e8d1bcb ci: spec-trace runs on the self-hosted runners for same-repository PRs
GitHub-hosted jobs in this org can queue for a long time; the test
workflow already sends same-repository PRs to the self-hosted runners and
forks to a hosted one. The spec-trace job does the same. It runs no PR
code on either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:41:48 -08:00
pingqiuandClaude Opus 5.5 e82d04f5ac ci: spec-trace check on every PR description
The PR template now carries the five trace lines (Feature, Machine/INV,
Model, Red-first, Simplest). A pull_request_target workflow checks the
description from the base branch's script: the four trace lines are
present, NONE carries a reason, Machine/INV starts with the PR kind
(IMPL <machine>.<transition>, FIX <INV-ID> or CHANGE <machine>), and
Simplest is present when non-test Go under core/ or cmd/ changes.
The self-test runs before the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:46:13 -08:00
pingqiuandClaude Opus 5.5 8b95fb320a ci: give each test job 40 minutes
Seven of the last 80 runs were cancelled at the 25-minute job limit while the
tests were still running under host load (the default pass alone takes 11-16
minutes on a busy tp04). Each job now carries one pass, and 40 minutes leaves
room for a loaded runner without letting a hung run sit for long.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:32:38 -08:00
pingqiuandClaude Opus 5.5 274a3fe921 Merge #307 (post-merge-review path check) into train 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:01:45 -08:00
pingqiuandClaude Opus 5.5 7271a21877 ci: run the legacy-fixture job on the tp04 runners too
The hosted runner queue for this org waited 2 h 18 min for the job on this
PR's own run (created 18:03Z, started 20:21Z), which blocks every merge on
it. tp04 now has two runner instances with the same label, so the
legacy-fixture job uses the default job's routing: same-repo PRs and pushes
run both passes in parallel on tp04, fork PRs stay on a hosted runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:12:41 -08:00
pingqiuandClaude Opus 5.5 c1d556bf48 ci: post-merge-review check as an allow list, over raw paths, rerun on retarget
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:30:52 -08:00
pingqiuandClaude Opus 5.5 ae1c2c0a25 ci: fail a post-merge-review PR that touches a denied path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:20:56 -08:00
pingqiuandClaude Opus 5.5 3173a85585 ci: run the legacy-fixture pass on a hosted runner in parallel
The two test passes ran back to back on the single tp04 runner and, under
load, together outran the 25-minute job timeout. The legacy-fixture pass
now runs as its own job on ubuntu-latest, in parallel with the default pass
on tp04, so each job carries one pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 10:02:53 -08:00
pingqiuandClaude Opus 5.5 0af77589c1 ci: nightly job runs the known-bug reproductions and expects each to fail
A reproduction that starts passing fails the job and names its issue, so its
skip is removed. A fix PR drops its line here with its skip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:32:53 -08:00
pingqiuandClaude Opus 5.5 6a38c27aa1 ci: use the Actions Go cache only on GitHub-hosted runners
The self-hosted runner keeps GOCACHE/GOMODCACHE on disk; the setup-go post
step uploading them (~4 GB) outlasted the 25-minute job timeout after all
tests had passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 08:57:46 -08:00
Ping Qiu 56af794492 Merge pull request #197 from seaweedfs/feat/walstore-format-v3
storage: walstore format bump v3 (#51, #189)
2026-11-18 08:07:17 -08:00
pingqiu fbd33f9712 test: restore native typed cut controls and close activation isolation coverage 2026-11-18 04:16:20 -08:00
pingqiu a81bca4926 feat(storage): activate mapped v3 through the production storage callers 2026-11-18 03:49:47 -08:00
pingqiuandClaude Opus 5.5 bd2bc5d5ea ci: run same-repo tests on the team's tp04 runner
Pushes to main and PRs from branches in this repository now run the
test job on the self-hosted tp04 runner (label tp04-seaweed-block).
PRs from forks keep running on ubuntu-latest, so code from outside the
repository never executes on our machine. The job name stays
"go test (linux)", so the required check is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:55:46 -08:00
pingqiuandClaude Opus 5.5 48db2739ec ci: add a test workflow (build, vet, go test -short) and harden dead-port tests
- .github/workflows/test.yml, job 'go test (linux)': on pull_request and on
  push to main; Go from go.mod; go build ./..., go vet ./..., and
  go test -short -count=1 -timeout 10m ./... with CGO_ENABLED=0. Actions are
  pinned by commit SHA, permissions are contents: read, and a new push to a
  PR cancels the older run.
- core/ops/surface_test.go: fix the two go vet warnings (resp used before
  the error check), so vet covers the whole module.
- cmd/blockvolume: a withdrawn port no longer has to answer ECONNREFUSED.
  A successful connect still fails; any other dial error passes only if the
  address can be bound again.
- core/host/volume: probe tests dial a listener they opened and closed,
  not the fixed 127.0.0.1:1.
- core/replication/component: on failure, the G5-5C and G9A catch-up tests
  log frontiers, peer status and the engine trace. Assertions and timeouts
  are unchanged.

Test files and the workflow only; no product code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:47:44 -08:00
pingqiu 0566dcbd09 ci(k8s): publish alpha images to GHCR 2026-05-04 10:21:31 -07:00