Skip to content

Commit b432fb3

Browse files
dmitshurgopherbot
authored andcommitted
dashboard: make darwin longtest builder like others as of Go 1.21
The darwin longtest builder was added during the Go 1.21 dev cycle and needed some development work before it would pass all tests. Disable it on older release branches that don't have said work, and make it run on Go 1.21 and newer release branches as a TryBot like all other longtest builders. This makes it consistent with other -longtest builders and will help avoid entering broken state when backporting to future release branches. Also remove redundant version check from windows longtest tryBot policy functions since the version check is already there in buildsRepo policy. For golang/go#35678. For golang/go#37827. Change-Id: I09c479f1be2b3635c385b504b0c86b50e65e696b Reviewed-on: https://go-review.googlesource.com/c/build/+/492055 TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]>
1 parent a2995ec commit b432fb3

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

dashboard/builders.go

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,17 +2458,15 @@ func init() {
24582458
Notes: "Windows Server 2016 with go test -short=false",
24592459
tryBot: func(repo, branch, goBranch string) bool {
24602460
onReleaseBranch := strings.HasPrefix(branch, "release-branch.")
2461-
// This builder has legacy C compilers installed, suitable
2462-
// for versions of Go prior to 1.20, hence the atMostGo1
2463-
// call below. Newer (1.20 and later) will use the
2464-
// non-oldcc variant instead. See issue 35006 for more
2465-
// details.
2466-
return atMostGo1(goBranch, 19) &&
2467-
repo == "go" && onReleaseBranch // See issue 37827.
2461+
return repo == "go" && onReleaseBranch // See issue 37827.
24682462
},
24692463
buildsRepo: func(repo, branch, goBranch string) bool {
2470-
// See comment above about the atMostGo1 call below.
24712464
b := defaultPlusExpBuild(repo, branch, goBranch) &&
2465+
// This builder has legacy C compilers installed, suitable
2466+
// for versions of Go prior to 1.20, hence the atMostGo1
2467+
// call below. Newer (1.20 and later) will use the
2468+
// non-oldcc variant instead. See issue 35006 for more
2469+
// details.
24722470
atMostGo1(goBranch, 19)
24732471
if repo != "go" && !(branch == "master" && goBranch == "master") {
24742472
// For golang.org/x repos, don't test non-latest versions.
@@ -2487,18 +2485,16 @@ func init() {
24872485
Notes: "Windows Server 2016 with go test -short=false",
24882486
tryBot: func(repo, branch, goBranch string) bool {
24892487
onReleaseBranch := strings.HasPrefix(branch, "release-branch.")
2490-
// This builder has modern/recent C compilers installed,
2491-
// meaning that we only want to use it with 1.20+ versions
2492-
// of Go, hence the atLeastGo1 call below; versions of Go
2493-
// prior to 1.20 will use the *-oldcc variant instead. See
2494-
// issue 35006 for more details.
2495-
return atLeastGo1(goBranch, 20) &&
2496-
repo == "go" && onReleaseBranch // See issue 37827.
2488+
return repo == "go" && onReleaseBranch // See issue 37827.
24972489
},
24982490
buildsRepo: func(repo, branch, goBranch string) bool {
2499-
// See comment above about the atMostGo1 call below.
2500-
b := atLeastGo1(goBranch, 20) &&
2501-
defaultPlusExpBuild(repo, branch, goBranch)
2491+
b := defaultPlusExpBuild(repo, branch, goBranch) &&
2492+
// This builder has modern/recent C compilers installed,
2493+
// meaning that we only want to use it with 1.20+ versions
2494+
// of Go, hence the atLeastGo1 call below; versions of Go
2495+
// prior to 1.20 will use the *-oldcc variant instead. See
2496+
// issue 35006 for more details.
2497+
atLeastGo1(goBranch, 20)
25022498
if repo != "go" && !(branch == "master" && goBranch == "master") {
25032499
// For golang.org/x repos, don't test non-latest versions.
25042500
b = false
@@ -2614,8 +2610,20 @@ func init() {
26142610
Name: "darwin-amd64-longtest",
26152611
HostType: "host-darwin-amd64-13-aws",
26162612
Notes: "macOS 13 with go test -short=false",
2613+
tryBot: func(repo, branch, goBranch string) bool {
2614+
onReleaseBranch := strings.HasPrefix(branch, "release-branch.")
2615+
return repo == "go" && onReleaseBranch // See issue 37827.
2616+
},
26172617
buildsRepo: func(repo, branch, goBranch string) bool {
26182618
b := buildRepoByDefault(repo)
2619+
if repo == "go" && !atLeastGo1(goBranch, 21) {
2620+
// The builder was added during Go 1.21 dev cycle.
2621+
// It uncovered some tests that weren't passing and needed to be fixed.
2622+
// Disable the builder on older release branches unless/until it's decided
2623+
// that we should backport the needed fixes (and that the older releases
2624+
// don't have even more that needs fixing before the builder passes fully).
2625+
b = false
2626+
}
26192627
if repo != "go" && !(branch == "master" && goBranch == "master") {
26202628
// For golang.org/x repos, don't test non-latest versions.
26212629
b = false

dashboard/builders_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ func TestTrybots(t *testing.T) {
193193
"linux-amd64-longtest",
194194
"linux-arm64-longtest",
195195
"windows-amd64-longtest",
196+
"darwin-amd64-longtest", // Builder added during Go 1.21 dev cycle.
196197
},
197198
},
198199
{
@@ -707,6 +708,10 @@ func TestBuilderConfig(t *testing.T) {
707708
{b("linux-amd64-longtest", "net"), onlyPost},
708709
{b("[email protected]", "go"), both},
709710
{b("[email protected]", "net"), none},
711+
{b("darwin-amd64-longtest", "go"), onlyPost},
712+
{b("darwin-amd64-longtest", "net"), onlyPost},
713+
{b("[email protected]", "go"), both},
714+
{b("[email protected]", "net"), none},
710715
{b("windows-amd64-longtest", "go"), onlyPost},
711716
{b("[email protected]", "go"), both},
712717
{b("windows-amd64-longtest", "net"), onlyPost},
@@ -772,6 +777,10 @@ func TestBuilderConfig(t *testing.T) {
772777
{b("[email protected]", "net"), none},
773778
{b("[email protected]", "net"), onlyPost},
774779

780+
// The darwin longtest builder added during the Go 1.21 dev cycle:
781+
{b("[email protected]", "go"), both},
782+
{b("[email protected]", "go"), none},
783+
775784
// plan9 only lived at master. We didn't support any past releases.
776785
// But it's off for now as it's always failing.
777786
{b("plan9-386", "go"), none}, // temporarily disabled

0 commit comments

Comments
 (0)