From 133e3f77455c4176a01d4dab92581911b64f06ab Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sun, 29 Nov 2026 21:25:11 -0800 Subject: [PATCH] ci: run a train PR's Test suites on the self-hosted runners The organization's shared hosted queue held train PRs 30 to 55 minutes before their suites started, while the team's runners, which already run the same suites on every push to main, were idle. Only train/* branches of this repository select them; every other PR, forks included, stays on GitHub-hosted machines. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/.github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/seaweed-block/.github/workflows/test.yml b/seaweed-block/.github/workflows/test.yml index c139ab0134..429d55821b 100644 --- a/seaweed-block/.github/workflows/test.yml +++ b/seaweed-block/.github/workflows/test.yml @@ -35,8 +35,11 @@ jobs: if: github.event_name == 'push' || !github.event.pull_request.draft # Pull requests run on GitHub-hosted runners (free for this public repo, many # jobs in parallel); pushes to main keep the team's tp04 runner (seaweed.slice, - # capped at 8 cores / 8 GiB) as the self-hosted signal. - runs-on: ${{ github.event_name == 'push' && 'tp04-seaweed-block' || 'ubuntu-latest' }} + # capped at 8 cores / 8 GiB) as the self-hosted signal. A train PR (branch + # train/* of this repository, a few a day) also runs on the team's runners: + # it is the merge gate, and the organization's shared GitHub-hosted queue held + # it 30-55 minutes before it started. A PR from a fork never runs there. + runs-on: ${{ (github.event_name == 'push' || (github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'train/'))) && 'tp04-seaweed-block' || 'ubuntu-latest' }} # process: 44 tests in 4 parallel shards of about 13 min each (55 min in sequence). timeout-minutes: ${{ matrix.suite == 'unit' && 40 || 90 }} env: