actions/setup-go

Intermittent failures downloading go

jmhbnz opened this issue · 4 comments

Description:
The etcd project see failures downloading go with the setup-go action from time to time on our managed arm64 runners. We suspect this might just be network flakiness so could mean retries are potentially required to prevent it happening.

Action version:
actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4

Platform:

  • Ubuntu

Runner type:

  • Hosted
  • Self-hosted

Tools version:
go-version: 1.22.2 - This issue has occurred across multiple go versions.

Repro steps:
We don't know how to reproduce this, it is occurring on a small percentage of workflow runs. We have attempted a repro with this repository but not had any luck https://github.com/actuated-samples/checkout-go/actions.

Expected behavior:
Go downloads should succeed. Retries should overcome intermittent network flakiness.

Actual behavior:

https://github.com/etcd-io/bbolt/actions/runs/8065572741/job/22031667659

Run actions/setup-go@v5
  with:
    go-version: 1.21.6
    check-latest: false
    token: ***
    cache: true
Setup go version spec 1.21.6
Attempting to download 1.21.6...
matching 1.21.6...
Not found in manifest.  Falling back to download directly from Go

https://github.com/etcd-io/etcd/actions/runs/8651099263/job/23721045685

Run actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
  with:
    go-version: 1.22.2
    check-latest: false
    token: ***
    cache: true
Setup go version spec 1.22.2
Attempting to download 1.22.2...
Request timeout: /repos/actions/go-versions/git/trees/main
Falling back to download directly from Go
Error: Request timeout: /dl/?mode=json&include=all