Skip to content

Commit

Permalink
buildlet,dashboard: tweaks to Darwin, OpenBSD, and Linux builders
Browse files Browse the repository at this point in the history
- Add more Monterey builders and remove the known issue: it's stable.
  Also use it for race and nocgo. Update slowbot aliases to point to it.
- Don't test 1.16 on OpenBSD 7.0, it segfaults.
- Pin the Linux (ContainerOS) builders to an older version to avoid the
  pprof kernel bug.

For golang/go#49065, golang/go#49149, and golang/go#48977.

Change-Id: Ibec2fa735183ec65e5066c7c752ac356b7360550
Reviewed-on: https://go-review.googlesource.com/c/build/+/365777
Trust: Heschi Kreinick <[email protected]>
Run-TryBot: Heschi Kreinick <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Alexander Rakoczy <[email protected]>
  • Loading branch information
heschi committed Nov 19, 2021
1 parent 87c1ba4 commit 3ffd700
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 24 deletions.
2 changes: 1 addition & 1 deletion buildlet/gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func cosImage(ctx context.Context, svc *compute.Service) (string, error) {
return cosCachedImage, nil
}

imList, err := svc.Images.List("cos-cloud").Filter(`(family eq "cos-stable")`).Context(ctx).Do()
imList, err := svc.Images.List("cos-cloud").Filter(`(family eq "cos-89-lts")`).Context(ctx).Do()
if err != nil {
return "", err
}
Expand Down
52 changes: 33 additions & 19 deletions dashboard/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ var slowBotAliases = map[string]string{
"android-arm64": "android-arm64-corellium",
"arm": "linux-arm-aws",
"arm64": "linux-arm64-aws",
"darwin": "darwin-amd64-10_14",
"darwin-amd64": "darwin-amd64-10_14",
"darwin": "darwin-amd64-12_0",
"darwin-amd64": "darwin-amd64-12_0",
"darwin-arm64": "darwin-arm64-12_0-toothrot",
"ios-arm64": "ios-arm64-corellium",
"dragonfly": "dragonfly-amd64",
Expand Down Expand Up @@ -478,7 +478,7 @@ var Hosts = map[string]*HostConfig{
},
"host-darwin-10_12": &HostConfig{
IsReverse: true,
ExpectNum: 3,
ExpectNum: 2,
Notes: "MacStadium OS X 10.12 VM under VMWare ESXi",
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/go1.4",
Expand All @@ -488,7 +488,7 @@ var Hosts = map[string]*HostConfig{
},
"host-darwin-10_14": &HostConfig{
IsReverse: true,
ExpectNum: 3,
ExpectNum: 2,
Notes: "MacStadium macOS Mojave (10.14) VM under VMWare ESXi",
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/goboot", // Go 1.12.1
Expand All @@ -498,7 +498,7 @@ var Hosts = map[string]*HostConfig{
},
"host-darwin-10_15": &HostConfig{
IsReverse: true,
ExpectNum: 4,
ExpectNum: 3,
Notes: "MacStadium macOS Catalina (10.15) VM under VMWare ESXi",
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/goboot", // Go 1.12.1
Expand All @@ -508,7 +508,7 @@ var Hosts = map[string]*HostConfig{
},
"host-darwin-amd64-11_0": &HostConfig{
IsReverse: true,
ExpectNum: 5,
ExpectNum: 4,
Notes: "MacStadium macOS Big Sur (11.0) VM under VMWare ESXi",
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/goboot", // Go 1.13.4
Expand All @@ -518,7 +518,7 @@ var Hosts = map[string]*HostConfig{
},
"host-darwin-amd64-12_0": &HostConfig{
IsReverse: true,
ExpectNum: 1,
ExpectNum: 5,
Notes: "MacStadium macOS Monterey (12.0) VM under VMWare ESXi",
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/goboot", // Go 1.17.3
Expand Down Expand Up @@ -1998,17 +1998,27 @@ func init() {
numTryTestHelpers: 4,
})
addBuilder(BuildConfig{
Name: "openbsd-amd64-70",
HostType: "host-openbsd-amd64-70",
tryBot: defaultTrySet(),
distTestAdjust: noTestDirAndNoReboot,
Name: "openbsd-amd64-70",
HostType: "host-openbsd-amd64-70",
tryBot: defaultTrySet(),
distTestAdjust: noTestDirAndNoReboot,
buildsRepo: func(repo, branch, goBranch string) bool {
// https://github.com/golang/go/issues/48977#issuecomment-971763553:
// 1.16 seems to be incompatible with 7.0.
return atLeastGo1(goBranch, 17) && buildRepoByDefault(repo)
},
numTryTestHelpers: 4,
})
addBuilder(BuildConfig{
Name: "openbsd-amd64-70-n1",
HostType: "host-openbsd-amd64-70-n1",
tryBot: defaultTrySet(),
distTestAdjust: noTestDirAndNoReboot,
Name: "openbsd-amd64-70-n1",
HostType: "host-openbsd-amd64-70-n1",
tryBot: defaultTrySet(),
distTestAdjust: noTestDirAndNoReboot,
buildsRepo: func(repo, branch, goBranch string) bool {
// https://github.com/golang/go/issues/48977#issuecomment-971763553:
// 1.16 seems to be incompatible with 7.0.
return atLeastGo1(goBranch, 17) && buildRepoByDefault(repo)
},
numTryTestHelpers: 4,
})
addBuilder(BuildConfig{
Expand All @@ -2021,7 +2031,9 @@ func init() {
// platform.
return false
}
return buildRepoByDefault(repo)
// https://github.com/golang/go/issues/48977#issuecomment-971763553:
// 1.16 seems to be incompatible with 7.0.
return atLeastGo1(goBranch, 17) && buildRepoByDefault(repo)
},
distTestAdjust: noTestDirAndNoReboot,
numTryTestHelpers: 4,
Expand All @@ -2036,7 +2048,9 @@ func init() {
// platform.
return false
}
return buildRepoByDefault(repo)
// https://github.com/golang/go/issues/48977#issuecomment-971763553:
// 1.16 seems to be incompatible with 7.0.
return atLeastGo1(goBranch, 17) && buildRepoByDefault(repo)
},
distTestAdjust: noTestDirAndNoReboot,
numTryTestHelpers: 4,
Expand Down Expand Up @@ -2330,7 +2344,7 @@ func init() {
})
addBuilder(BuildConfig{
Name: "darwin-amd64-nocgo",
HostType: "host-darwin-10_15",
HostType: "host-darwin-amd64-12_0",
distTestAdjust: noTestDirAndNoReboot,
env: []string{"CGO_ENABLED=0"},
})
Expand All @@ -2350,7 +2364,7 @@ func init() {
})
addBuilder(BuildConfig{
Name: "darwin-amd64-race",
HostType: "host-darwin-10_15",
HostType: "host-darwin-amd64-12_0",
distTestAdjust: macTestPolicy,
buildsRepo: onlyGo,
})
Expand Down
4 changes: 0 additions & 4 deletions dashboard/builders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ func TestTrybots(t *testing.T) {
"linux-arm-aws",
"linux-arm64-aws",
"openbsd-amd64-68",
"openbsd-amd64-70",
"openbsd-amd64-70-n1",
"windows-386-2008",
"windows-amd64-2016",

Expand Down Expand Up @@ -206,8 +204,6 @@ func TestTrybots(t *testing.T) {
"linux-arm-aws",
"linux-arm64-aws",
"openbsd-amd64-68",
"openbsd-amd64-70",
"openbsd-amd64-70-n1",
"windows-386-2008",
"windows-amd64-2016",

Expand Down

0 comments on commit 3ffd700

Please sign in to comment.