Skip to content

ci: Go module fetches from proxy.golang.org fail intermittently in CI (TLS handshake timeout / fetch_repo) — two PR runs red today for nothing #1001

Closed

Description

@bpalermo

Two unrelated PRs went red on 2026-09-27 in the same way: #979's test job (gazelle++go_deps+com_github_go_openapi_swag: fetch_repo: … Get "https://proxy.golang.org/…/@v/v0.29.2.info": net/http: TLS handshake timeout) and #995's netns job (gazelle++go_deps+org_golang_google_genproto_googleapis_api: fetch_repo: google.golang.org/genproto/googleapis/api@…). Both passed on a plain re-run. The BuildBuddy remote cache covers actions, not repository fetches, so every job that has to populate the Go module repos re-downloads from proxy.golang.org and inherits its flakiness.

Options, cheapest first: (1) --repository_cache persisted with actions/cache keyed on MODULE.bazel.lock + go.sum so a runner reuses fetched module archives; (2) --experimental_remote_downloader/BuildBuddy's remote asset API so fetches are cached remotely like actions; (3) a retry wrapper around the first Bazel invocation in each job. Seen-red: the two runs above; a gate that proves the fix is a job run with GOPROXY=off after the cache is warm succeeding, or the fetch count in the remote-downloader stats dropping to zero on a warm run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions