Skip to content

CI seems flakey when pulling a master commit through proxy.golang.org #1667

@mvdan

Description

@mvdan

https://github.com/cue-lang/cue/runs/6144946455?check_suite_focus=true

v=$(git rev-parse HEAD)
  cd $(mktemp -d)
  go mod init mod.com
  GOPROXY=https://proxy.golang.org/ go get -d cuelang.org/go/cmd/cue@$v
  shell: /bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    GOROOT: /opt/hostedtoolcache/go/1.17.8/x64
    CUE_LONG: true
go: creating new go.mod: module mod.com
go get: cuelang.org/go/cmd/cue@33b18be9eddd72ea356a913117bb1327a04242fd: invalid version: reading https://proxy.golang.org/cuelang.org/go/cmd/cue/@v/33b18be9eddd72ea356a913117bb1327a04242fd.info: 410 Gone
	server response: not found: cuelang.org/go/cmd/[email protected]: invalid version: missing cuelang.org/go/cmd/cue/go.mod at revision 33b18be9eddd

It is somewhat expected that the upstreams may return 410 results to basically mean "sorry, try again later". See golang/go#42809 for instance - it applies to sum.golang.org rather than proxy.golang.org, but I assume the cause is practically the same.

We should probably have CI retry a few times over a minute or two if this happens, to reduce flakes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixinfraIssues related to CI, Gerrit, cuelang.org, GitHub, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions