From bd2bc5d5eaf684a99b5888fda5ab1360971ec5b1 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Tue, 17 Nov 2026 01:55:46 -0800 Subject: [PATCH] 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 --- seaweed-block/.github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seaweed-block/.github/workflows/test.yml b/seaweed-block/.github/workflows/test.yml index d936cb7be4..1a5c304c92 100644 --- a/seaweed-block/.github/workflows/test.yml +++ b/seaweed-block/.github/workflows/test.yml @@ -18,7 +18,10 @@ concurrency: jobs: test: name: go test (linux) - runs-on: ubuntu-latest + # Pushes and same-repo PRs run on the team's tp04 runner (seaweed.slice, + # capped at 8 cores / 8 GiB). Fork PRs never reach it: they stay on a + # GitHub-hosted runner. + runs-on: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && 'tp04-seaweed-block' || 'ubuntu-latest' }} timeout-minutes: 25 env: # Pure-Go build: no package in the default build needs cgo, and the