From 09cac1bcf2ab00bd495926fc4395aa34bc5f25c3 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 21 Nov 2026 08:29:29 -0800 Subject: [PATCH] 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 --- seaweed-block/.github/workflows/test.yml | 58 +++--------------------- 1 file changed, 7 insertions(+), 51 deletions(-) diff --git a/seaweed-block/.github/workflows/test.yml b/seaweed-block/.github/workflows/test.yml index f37cdca486..4b32f0a04b 100644 --- a/seaweed-block/.github/workflows/test.yml +++ b/seaweed-block/.github/workflows/test.yml @@ -62,18 +62,18 @@ jobs: run: go vet ./... - name: Test default configuration - # A PR runs the light set plus every heavy package its own diff touches; - # the long, disk-heavy, timing-sensitive packages run in full on main and - # on train PRs. A green PR check does not cover an untouched heavy package. + # The runner disk is shared, so the long, disk-heavy, timing-sensitive + # packages do not run here on main or on train PRs: every train runs the + # whole suite (both configurations) on a separate test VM before it + # merges, and main moves only by those trains. A PR runs the light set + # plus every heavy package its own diff touches. env: EVENT: ${{ github.event_name }} HEAD_REF: ${{ github.head_ref }} run: | set -euo pipefail - if [ "$EVENT" = push ] || [[ "$HEAD_REF" == train/* ]]; then - pkgs=$(go list ./...) - else - pkgs=$(go list ./... | grep -vE '/core/(storage|frontend/durable|host/master|authority)$') + pkgs=$(go list ./... | grep -vE '/core/(storage|frontend/durable|host/master|authority)$') + if [ "$EVENT" != push ] && [[ "$HEAD_REF" != train/* ]]; then mod=$(go list -m) changed=$(git diff --name-only HEAD^1 HEAD) for p in core/storage core/frontend/durable core/host/master core/authority; do @@ -83,47 +83,3 @@ jobs: done fi go test -p=1 -short -count=1 -timeout 10m $pkgs - - test-legacy: - name: go test legacy-fixture - # A second full pass (legacy-fixture tag) writes as much again: it runs on - # main and on train PRs, which carry every change that merges. - if: github.event_name == 'push' || startsWith(github.head_ref, 'train/') - # Same routing as the default job: same-repo PRs and pushes use the tp04 - # runners (two instances, so both passes run in parallel); fork PRs stay on - # a GitHub-hosted runner, whose shared queue can wait for hours. - runs-on: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && 'tp04-seaweed-block' || 'ubuntu-latest' }} - timeout-minutes: 40 - env: - CGO_ENABLED: "0" - steps: - - name: Checkout - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - with: - persist-credentials: false - - - name: Set up Go - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 - with: - go-version-file: go.mod - # The self-hosted runner keeps GOCACHE/GOMODCACHE on its own disk; - # uploading them as an Actions cache (~4 GB) in the post step - # outlasted the job timeout after every test had passed. Only the - # GitHub-hosted (fork PR) runner uses the Actions cache. - cache: ${{ runner.environment == 'github-hosted' }} - cache-dependency-path: go.sum - - - name: Go version - run: go version - - - name: Build - run: go build ./... - - - name: Vet - run: go vet ./... - - - name: Test legacy-fixture configuration - # Legacy-input fixtures and native caller controls stay executable after - # their constructors move behind the explicit test-only build tag. - # Bound package concurrency for existing short wall-clock assertions. - run: go test -p=1 -short -tags=swblock_format_v3_test -count=1 -timeout 10m ./...