Skip to content

Commit 5d75ed7

Browse files
committed
dashboard: add new Windows ARM builder
This partially reverts CL 229559, while adjusting it to use a new builder. The builder will be used now for windows/arm and later for windows/arm64. Updates golang/go#42604. Updates golang/go#38607. Updates golang/go#36439. Change-Id: I1ab661a6585e64de8196955c077715b32dc732b8 Reviewed-on: https://go-review.googlesource.com/c/build/+/272106 Run-TryBot: Jason A. Donenfeld <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Trust: Alex Brainman <[email protected]> Trust: Jason A. Donenfeld <[email protected]>
1 parent 07fdb09 commit 5d75ed7

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

cmd/buildlet/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ compile:
3535
GOOS=windows GOARCH=amd64 go install golang.org/x/build/cmd/buildlet
3636

3737
# buildlet.all is compiles & uploads all targets.
38-
buildlet.all: FORCE buildlet.aix-ppc64 buildlet.darwin-amd64 buildlet.freebsd-amd64 buildlet.linux-amd64 buildlet.netbsd-386 buildlet.netbsd-amd64 buildlet.netbsd-arm buildlet.openbsd-amd64.go1.10 buildlet.openbsd-386.go1.10 buildlet.openbsd-amd64 buildlet.openbsd-386 buildlet.plan9-386 buildlet.windows-amd64 buildlet.linux-arm buildlet.linux-arm-arm5 buildlet.linux-arm64 buildlet.linux-riscv64 buildlet.linux-mips buildlet.linux-mipsle buildlet.linux-mips64 buildlet.linux-mips64le buildlet.linux-ppc64 buildlet.linux-ppc64le buildlet.linux-s390x buildlet.solaris-amd64 buildlet.illumos-amd64
38+
buildlet.all: FORCE buildlet.aix-ppc64 buildlet.darwin-amd64 buildlet.freebsd-amd64 buildlet.linux-amd64 buildlet.netbsd-386 buildlet.netbsd-amd64 buildlet.netbsd-arm buildlet.openbsd-amd64.go1.10 buildlet.openbsd-386.go1.10 buildlet.openbsd-amd64 buildlet.openbsd-386 buildlet.plan9-386 buildlet.windows-amd64 buildlet.windows-arm buildlet.linux-arm buildlet.linux-arm-arm5 buildlet.linux-arm64 buildlet.linux-riscv64 buildlet.linux-mips buildlet.linux-mipsle buildlet.linux-mips64 buildlet.linux-mips64le buildlet.linux-ppc64 buildlet.linux-ppc64le buildlet.linux-s390x buildlet.solaris-amd64 buildlet.illumos-amd64
3939
echo "done"
4040

4141
buildlet.aix-ppc64: FORCE
@@ -120,6 +120,10 @@ buildlet.windows-386: FORCE buildlet_windows.go
120120
go install golang.org/x/build/cmd/upload
121121
upload --verbose --osarch=$@ --file=go:golang.org/x/build/cmd/buildlet --public --cacheable=false go-builder-data/$@
122122

123+
buildlet.windows-arm: FORCE buildlet_windows.go
124+
go install golang.org/x/build/cmd/upload
125+
upload --verbose --osarch=$@ --file=go:golang.org/x/build/cmd/buildlet --public --cacheable=false go-builder-data/$@
126+
123127
buildlet.linux-arm: FORCE
124128
go install golang.org/x/build/cmd/upload
125129
upload --verbose --osarch=$@ --file=go:golang.org/x/build/cmd/buildlet --public --cacheable=false go-builder-data/$@

dashboard/builders.go

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ var slowBotAliases = map[string]string{
9494
"windows": "windows-amd64-2016",
9595
"windows-386": "windows-386-2008",
9696
"windows-amd64": "windows-amd64-2016",
97+
"windows-arm": "windows-arm-zx2c4",
9798
}
9899

99100
// Builders are the different build configurations.
@@ -457,6 +458,12 @@ var Hosts = map[string]*HostConfig{
457458
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
458459
SSHUsername: "gopher",
459460
},
461+
"host-windows-arm64-zx2c4": &HostConfig{
462+
IsReverse: true,
463+
ExpectNum: 1,
464+
OwnerGithub: "zx2c4",
465+
env: []string{"GOROOT_BOOTSTRAP=C:\\Program Files (Arm)\\Go"},
466+
},
460467
"host-darwin-10_11": &HostConfig{
461468
IsReverse: true,
462469
ExpectNum: 3,
@@ -1614,8 +1621,8 @@ func init() {
16141621
addMiscCompile("-netbsd", "^netbsd-") // 4: amd64, 386, arm, arm64
16151622
addMiscCompile("-openbsd", "^openbsd-") // 4: amd64, 386, arm, arm64
16161623

1617-
// And 3 that don't fit above:
1618-
addMiscCompile("-other", "^(linux-s390x|linux-riscv64|dragonfly-amd64)$")
1624+
// And 4 that don't fit above:
1625+
addMiscCompile("-other", "^(windows-arm|linux-s390x|linux-riscv64|dragonfly-amd64)$")
16191626

16201627
// TODO: Issue 25963, get the misc-compile trybots for Android/iOS.
16211628
// Then consider subrepos too, so "mobile" can at least be included
@@ -2174,6 +2181,14 @@ func init() {
21742181
// up:
21752182
"GO_TEST_TIMEOUT_SCALE=2"},
21762183
})
2184+
addBuilder(BuildConfig{
2185+
Name: "windows-arm-zx2c4",
2186+
HostType: "host-windows-arm64-zx2c4",
2187+
KnownIssue: 38607, // TODO: remove this after this builder has proved it works
2188+
env: []string{
2189+
"GOARM=7",
2190+
"GO_TEST_TIMEOUT_SCALE=2"},
2191+
})
21772192
addBuilder(BuildConfig{
21782193
Name: "darwin-amd64-10_11",
21792194
HostType: "host-darwin-10_11",

dashboard/builders_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,6 @@ func TestSlowBotAliases(t *testing.T) {
755755
ports := strings.Fields(string(out))
756756

757757
done := map[string]bool{}
758-
done["windows-arm"] = true // TODO(golang.org/issue/38607) disabled until builder is replaced
759758

760759
var add bytes.Buffer
761760
check := func(term string, isArch bool) {
@@ -826,7 +825,6 @@ func TestTryBotsCompileAllPorts(t *testing.T) {
826825

827826
done := map[string]bool{}
828827
done["darwin-arm"] = true // TODO: Remove when Go 1.16 is out and Go 1.14 becomes unsupported.
829-
done["windows-arm"] = true // TODO(golang.org/issue/38607) disabled until builder is replaced
830828
done["darwin-arm64"] = true // TODO(golang.org/issue/39782): Add builder for darwin/arm64.
831829
check := func(goos, goarch string) {
832830
if goos == "android" || goos == "ios" {

0 commit comments

Comments
 (0)