Skip to content

Commit 5e0d1ba

Browse files
dmitshurcodebien
authored andcommitted
dashboard: disable outbound network restriction on builders
Issue golang.org/issue/30612 implemented a restriction on outbound network access to help catch unintended uses of internet in tests. We're currently relying on GOPROXY=https://proxy.golang.org for running tests in module mode in Go 1.13+, but proxy.golang.org can serve some module zip files by 302 redirecting to other URLs. Those URLs may not be accessible due to this builder network restriction. Disable the outbound network restriction as the first step to return builders to a working state. The next step will be implement a long term solution, then we can re-enable the network restriction again. Updates golang/go#33928 Updates golang/go#30612 Change-Id: I1a87b8d107df8806753117fc60a3e795e1e1b182 Reviewed-on: https://go-review.googlesource.com/c/build/+/192317 Reviewed-by: Alexander Rakoczy <alex@golang.org>
1 parent 3222335 commit 5e0d1ba

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

dashboard/builders.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ func init() {
13551355
env: []string{
13561356
"GOARCH=386",
13571357
"GOHOSTARCH=386",
1358-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1358+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
13591359
},
13601360
numTestHelpers: 1,
13611361
numTryTestHelpers: 3,
@@ -1375,7 +1375,7 @@ func init() {
13751375
tryBot: defaultTrySet(),
13761376
buildsRepo: defaultPlusExp,
13771377
env: []string{
1378-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1378+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
13791379
},
13801380
MaxAtOnce: 3,
13811381
numTestHelpers: 1,
@@ -1408,7 +1408,7 @@ func init() {
14081408
HostType: "host-linux-jessie",
14091409
tryBot: defaultTrySet(),
14101410
env: []string{
1411-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1411+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
14121412
},
14131413
tryOnly: true,
14141414
CompileOnly: true,
@@ -1452,7 +1452,7 @@ func init() {
14521452
},
14531453
env: []string{
14541454
"CGO_ENABLED=0",
1455-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1455+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
14561456
// This USER=root was required for Docker-based builds but probably isn't required
14571457
// in the VM anymore, since the buildlet probably already has this in its environment.
14581458
// (It was required because without cgo, it couldn't find the username)
@@ -1465,7 +1465,7 @@ func init() {
14651465
HostType: "host-linux-jessie",
14661466
buildsRepo: onlyGo,
14671467
env: []string{
1468-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1468+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
14691469
"GO_GCFLAGS=-N -l",
14701470
},
14711471
MaxAtOnce: 1,
@@ -1479,7 +1479,7 @@ func init() {
14791479
CompileOnly: true,
14801480
Notes: "SSA internal checks enabled",
14811481
env: []string{
1482-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1482+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
14831483
"GO_GCFLAGS=-d=ssa/check/on,dclstack",
14841484
},
14851485
GoDeps: []string{
@@ -1497,7 +1497,7 @@ func init() {
14971497
InstallRacePackages: []string{"cmd/compile"},
14981498
Notes: "race-enabled cmd/compile",
14991499
env: []string{
1500-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1500+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
15011501
},
15021502
GoDeps: []string{
15031503
"22f1b56dab29d397d2bdbdd603d85e60fb678089", // adds cmd/compile -c; Issue 20222
@@ -1513,7 +1513,7 @@ func init() {
15131513
numTestHelpers: 1,
15141514
numTryTestHelpers: 5,
15151515
env: []string{
1516-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1516+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
15171517
},
15181518
})
15191519
addBuilder(BuildConfig{
@@ -1556,7 +1556,7 @@ func init() {
15561556
"GOARCH=amd64",
15571557
"GOOS=linux",
15581558
"CGO_ENABLED=1",
1559-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1559+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
15601560
},
15611561
tryBot: func(repo, branch, goBranch string) bool {
15621562
// Only for mobile repo for now, not "go":
@@ -1573,7 +1573,7 @@ func init() {
15731573
MaxAtOnce: 5,
15741574
Notes: "Debian Jessie. The normal 'linux-amd64' builder is stretch. We use Jessie for our release builds due to https://golang.org/issue/31293",
15751575
env: []string{
1576-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1576+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
15771577
},
15781578
})
15791579
addBuilder(BuildConfig{
@@ -1688,7 +1688,7 @@ func init() {
16881688
env: []string{
16891689
"GOOS=js", "GOARCH=wasm", "GOHOSTOS=linux", "GOHOSTARCH=amd64",
16901690
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/workdir/go/misc/wasm",
1691-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1691+
"GO_DISABLE_OUTBOUND_NETWORK=0", // TODO(golang.org/issue/33928): Temporarily disabled to let GCS through; change back to 1.
16921692
},
16931693
})
16941694
addBuilder(BuildConfig{

0 commit comments

Comments
 (0)