From 209079cf683b16c0fb2facce06ef08ad9fe749b9 Mon Sep 17 00:00:00 2001 From: Max Vojtkov Date: Sun, 9 Aug 2026 13:57:18 +0300 Subject: [PATCH] Stop paying the unreachable cache server's timeout setup-go caches by default. act_runner's built-in cache server binds to an address job containers cannot route to, so every restore and save blocks until it times out: Failed to restore: getCacheEntry failed: connect ETIMEDOUT 10.0.2.12:40789 Failed to save: reserveCache failed: connect ETIMEDOUT 10.0.2.12:40789 That was 634s of a 946s build. Disable caching until the runner's cache.host points somewhere reachable, then turn it back on. --- .gitea/workflows/build.yml | 6 +++++- .gitea/workflows/release.yml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 7e059c6..85a0982 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -18,7 +18,11 @@ jobs: - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache-dependency-path: go.sum + # setup-go caches by default, and this runner's built-in cache server + # is unreachable from job containers -- every restore and save hangs + # until it times out, which cost 634s of a 946s build. Re-enable once + # act_runner's cache.host points somewhere job containers can route. + cache: false - name: Format run: test -z "$(gofmt -l .)" || { gofmt -l .; echo "run gofmt -w ."; exit 1; } diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f36aa4d..565db2e 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -17,6 +17,9 @@ jobs: - uses: actions/setup-go@v5 with: go-version: "1.25.x" + # See build.yml: the runner's cache server is unreachable from job + # containers, so caching costs minutes of timeouts instead of saving. + cache: false - uses: goreleaser/goreleaser-action@v6 with: