Skip to content

x/build: using proxy.golang.org directly is incompatible with builder's outbound network restriction #33928

@bradfitz

Description

@bradfitz

Check out the failures on e.g. https://go-review.googlesource.com/c/build/+/191577 ...

https://storage.googleapis.com/go-build-log/0b9b152e/linux-amd64_c339c8eb.log

linux-amd64 at 0b9b152ee3c9a2ff079569d8d5a3a6982b1ae91d building build at dee4382cfa88a26484ad9afc880d5e21ca0c110d

:: Running /workdir/go/bin/go with args ["/workdir/go/bin/go" "test" "-short" "golang.org/x/build/..."] and env ["PATH=/workdir/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "HOSTNAME=buildlet-linux-stretch-rn7c6c4c7" "DEBIAN_FRONTEND=noninteractive" "HOME=/root" "USER=root" "GO_STAGE0_NET_DELAY=100ms" "GO_STAGE0_DL_DELAY=0s" "WORKDIR=/workdir" "GOROOT_BOOTSTRAP=/workdir/go1.4" "GO_BUILDER_NAME=linux-amd64" "GOROOT_BOOTSTRAP=/go1.4" "GO_DISABLE_OUTBOUND_NETWORK=1" "GOROOT=/workdir/go" "GOPATH=/workdir/gopath" "GOPROXY=http://10.240.0.129:30157" "GO111MODULE=on" "TMPDIR=/workdir/tmp" "GOCACHE=/workdir/gocache"] in dir /workdir/gopath/src/golang.org/x/build

...

go: finding grpc.go4.org v0.0.0-20170609214715-11d0a25b4919
go: finding github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1
go: finding github.com/google/go-querystring v1.0.0
go: finding golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82
go: finding golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852
go: finding github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d
build golang.org/x/build/app/appengine: cannot load google.golang.org/api/compute/v1: google.golang.org/[email protected]: Get "https://storage.googleapis.com/proxy-golang-org-prod/3a4011dc517dc6d3-google.golang.org:api-v0.4.0.zip?Expires=1567105990&GoogleAccessId=gcs-urlsigner-prod%40golang-modproxy.iam.gserviceaccount.com&Signature=H6dQ47hBsB9eSDZcrmF9B%2F4t2v8NvSDIBVL9jwu%2BHDZHxj%2FdVvXRonTHKbF%2B5%2F5XbYTXV8cU%2BwKhEnx%2BfLmxqfcm3CugvFYWmV%2B9qnCENts4aL%2F4a6t3fd2T8%2FwJY75mo4r85%2FIiM0NzpoDUBaef1qPhnVq3u8eegvh5WcZKcXuQb9PXZHKsds%2FTIL2Gy48lGQsg11Gct1H45ycX6Reb2RnzIduOlM%2BVmbrSKB7lQ4MopftS6rlfzhex09p5Kc3AB0eZoUoT27VUE0kXht88dh2GGSirMDVJgD9zbFWmYNMR8OxgC45lyfcuJOAitfMjWL62ijK3sKynaqcRS%2FjV7A%3D%3D": dial tcp 74.125.126.128:443: connect: no route to host

Error: tests failed: exit status 1

That "connect: no route to host is because most of our builders are firewalled off so they don't accidentally depend on the network more than expected.

Did the Go module proxy start returning redirects to GCS?

/cc @andybons @toothrot @dmitshur @katiehockman @ianlancetaylor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions