From 3173a85585eed31bc25cfa2d9d22465fd089ca80 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Fri, 20 Nov 2026 10:02:53 -0800 Subject: [PATCH] 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 --- seaweed-block/.github/workflows/test.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/seaweed-block/.github/workflows/test.yml b/seaweed-block/.github/workflows/test.yml index df5114a0a4..b3010fb44c 100644 --- a/seaweed-block/.github/workflows/test.yml +++ b/seaweed-block/.github/workflows/test.yml @@ -56,6 +56,41 @@ jobs: - name: Test default configuration run: go test -p=1 -short -count=1 -timeout 10m ./... + test-legacy: + name: go test legacy-fixture (hosted) + # Second runner: the legacy-fixture pass runs on a GitHub-hosted runner in + # parallel with the default pass on tp04, so neither job queues behind the + # other on the single self-hosted runner. + runs-on: ubuntu-latest + timeout-minutes: 30 + 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.