mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
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>
This commit is contained in:
1 parent
7fe86bfb94
commit
3173a85585
1 file changed
+35
+35
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user