Commit Graph
56 Commits
Author SHA1 Message Date
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
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