dashboard: add linux-amd64-goamd64v3 builder

The purpose of this builder will be to test Go with a non-default
value of the new GOAMD64 environment variable.

For golang/go#48505.
Updates golang/go#45453.

Change-Id: Ic7bf0bd45f3539530ac6540cc3609f87cfdab6f7
Reviewed-on: https://go-review.googlesource.com/c/build/+/386116
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Rakoczy <alex@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Dmitri Shuralyov 2022-02-16 01:05:35 -05:00
Родитель 85a6614282
Коммит b8cd700608
1 изменённых файлов: 26 добавлений и 1 удалений

Просмотреть файл

@ -762,7 +762,7 @@ type HostConfig struct {
// GCE options, if VMImage != "" || ContainerImage != ""
machineType string // optional GCE instance type
RegularDisk bool // if true, use spinning disk instead of SSD
MinCPUPlatform string // optional; https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
MinCPUPlatform string // optional. e2 instances are not supported. see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
// EC2 options
isEC2 bool // if true, the instance is configured to run on EC2
@ -1750,6 +1750,31 @@ func init() {
numTestHelpers: 1,
numTryTestHelpers: 4,
})
addBuilder(BuildConfig{
Name: "linux-amd64-goamd64v3",
HostType: "host-linux-bullseye",
Notes: "builder with GOAMD64=v3, see proposal 45453 and issue 48505",
buildsRepo: func(repo, branch, goBranch string) bool {
// GOAMD64 is added in Go 1.18.
return atLeastGo1(goBranch, 18) && buildRepoByDefault(repo)
},
env: []string{
"GO_DISABLE_OUTBOUND_NETWORK=1",
"GOAMD64=v3",
},
// TODO(go.dev/issue/48505): The default cost-optimized E2 machine family
// selects one of Intel or AMD platforms at VM creation time. See if that
// can be sufficient, and possibly deemed better for purposes of testing
// GOAMD64=v3 on a wider set of of platforms.
//
// See https://cloud.google.com/compute/docs/machine-types#machine_types
// and https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
//
// Otherwise, we can consider something like this in the host:
//machineType: "n2-standard-4", // e2 instances do not support MinCPUPlatform or NestedVirt.
//MinCPUPlatform: "Intel Haswell", // Haswell is minimum to meet x86-64-v3 level.
KnownIssue: 48505,
})
addBuilder(BuildConfig{
Name: "linux-amd64-racecompile",
HostType: "host-linux-bullseye",