From 6a38c27aa190bb1aaa55164e37d14019f28332eb Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 19 Nov 2026 08:57:46 -0800 Subject: [PATCH] ci: use the Actions Go cache only on GitHub-hosted runners The self-hosted runner keeps GOCACHE/GOMODCACHE on disk; the setup-go post step uploading them (~4 GB) outlasted the 25-minute job timeout after all tests had passed. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/.github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/seaweed-block/.github/workflows/test.yml b/seaweed-block/.github/workflows/test.yml index 3af9bd21a6..df5114a0a4 100644 --- a/seaweed-block/.github/workflows/test.yml +++ b/seaweed-block/.github/workflows/test.yml @@ -37,7 +37,11 @@ jobs: uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version-file: go.mod - cache: true + # 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