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