Skip to content

Commit 24f89e0

Browse files
committed
dashboard: only test nounified on release-branch.go1.20
With Go 1.20, we've switched the default to GOEXPERIMENT=unified, but still support GOEXPERIMENT=nounified. For Go 1.21, we're going to remove the experiment knob. This CL updates the builders accordingly: continues to test GOEXPERIMENT=nounified only for the 1.20 release branch, and stops testing GOEXPERIMENT=unified entirely (since that's the default everywhere we care about testing it). Fixes golang/go#52150. Fixes golang/go#57977. Change-Id: Ice5be7c3db3453989ab12a48e2c93760590492ef Reviewed-on: https://go-review.googlesource.com/c/build/+/463156 Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent ec7d628 commit 24f89e0

File tree

2 files changed

+9
-36
lines changed

2 files changed

+9
-36
lines changed

dashboard/builders.go

+3-22
Original file line numberDiff line numberDiff line change
@@ -1646,34 +1646,15 @@ func init() {
16461646
"GOEXPERIMENT=staticlockranking",
16471647
},
16481648
})
1649-
addBuilder(BuildConfig{
1650-
Name: "linux-amd64-unified",
1651-
HostType: "host-linux-amd64-buster",
1652-
Notes: "builder with GOEXPERIMENT=unified, see go.dev/issue/46786",
1653-
tryBot: func(repo, branch, goBranch string) bool {
1654-
// TODO(go.dev/issue/52150): Restore testing against tools repo.
1655-
return (repo == "go" /*|| repo == "tools"*/) && (goBranch == "master" || goBranch == "dev.unified")
1656-
},
1657-
buildsRepo: func(repo, branch, goBranch string) bool {
1658-
return (repo == "go" || repo == "tools") && (goBranch == "master" || goBranch == "dev.unified")
1659-
},
1660-
env: []string{
1661-
"GO_DISABLE_OUTBOUND_NETWORK=1",
1662-
"GOEXPERIMENT=unified",
1663-
},
1664-
numTestHelpers: 1,
1665-
numTryTestHelpers: 4,
1666-
KnownIssues: []int{52150},
1667-
})
16681649
addBuilder(BuildConfig{
16691650
Name: "linux-amd64-nounified",
16701651
HostType: "host-linux-amd64-buster",
1671-
Notes: "builder with GOEXPERIMENT=nounified, see go.dev/issue/51397",
1652+
Notes: "builder with GOEXPERIMENT=nounified, see go.dev/issue/51397 and go.dev/issue/57977",
16721653
tryBot: func(repo, branch, goBranch string) bool {
1673-
return (repo == "go" || repo == "tools") && (goBranch == "master" || goBranch == "dev.unified")
1654+
return (repo == "go" || repo == "tools") && goBranch == "release-branch.go1.20"
16741655
},
16751656
buildsRepo: func(repo, branch, goBranch string) bool {
1676-
return (repo == "go" || repo == "tools") && (goBranch == "master" || goBranch == "dev.unified")
1657+
return (repo == "go" || repo == "tools") && goBranch == "release-branch.go1.20"
16771658
},
16781659
env: []string{
16791660
"GO_DISABLE_OUTBOUND_NETWORK=1",

dashboard/builders_test.go

+6-14
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ func TestTrybots(t *testing.T) {
9898
"linux-386",
9999
"linux-amd64",
100100
"linux-amd64-boringcrypto",
101-
"linux-amd64-nounified",
102101
"linux-amd64-race",
103-
"linux-amd64-unified",
104102
"linux-arm-aws",
105103
"linux-arm64",
106104
"openbsd-amd64-72",
@@ -134,6 +132,7 @@ func TestTrybots(t *testing.T) {
134132
"linux-386",
135133
"linux-amd64",
136134
"linux-amd64-boringcrypto",
135+
"linux-amd64-nounified",
137136
"linux-amd64-race",
138137
"linux-arm-aws",
139138
"linux-arm64",
@@ -579,19 +578,12 @@ func TestBuilderConfig(t *testing.T) {
579578
{b("[email protected]", "go"), onlyPost},
580579
{b("linux-amd64-staticlockranking", "net"), none},
581580

582-
{b("linux-amd64-unified", "go"), both},
583-
{b("linux-amd64-unified", "tools"), onlyPost},
584-
{b("linux-amd64-unified", "net"), none},
585-
{b("[email protected]", "go"), both},
586-
{b("[email protected]", "tools"), onlyPost},
587-
{b("[email protected]", "net"), none},
588-
589-
{b("linux-amd64-nounified", "go"), both},
590-
{b("linux-amd64-nounified", "tools"), both},
581+
{b("linux-amd64-nounified", "go"), none},
582+
{b("linux-amd64-nounified", "tools"), none},
591583
{b("linux-amd64-nounified", "net"), none},
592-
{b("linux-amd64-nounified@dev.unified", "go"), both},
593-
{b("linux-amd64-nounified@dev.unified", "tools"), both},
594-
{b("linux-amd64-nounified@dev.unified", "net"), none},
584+
{b("linux-amd64-nounified@go1.20", "go"), both},
585+
{b("linux-amd64-nounified@go1.20", "tools"), both},
586+
{b("linux-amd64-nounified@go1.20", "net"), none},
595587
}
596588
for _, tt := range tests {
597589
t.Run(tt.br.testName, func(t *testing.T) {

0 commit comments

Comments
 (0)