Skip to content

Commit f8afd1d

Browse files
johnsonjbradfitz
authored andcommitted
cmd/buildlet, dashboard: support for v2 windows images, 386 builder
- images now include 32bit gcc in c:\godeps\gcc32 - 64bit gcc has moved to c:\godeps\gcc64 - update host definitions for new image versions - add windows-386-2008 host Updates golang/go#17513 Change-Id: Ib3f5d4b2b1702c05089cf633529ebf38db270a43 Reviewed-on: https://go-review.googlesource.com/42014 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 3aa399b commit f8afd1d

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

cmd/buildlet/buildlet.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ func hasPrefixFold(s, prefix string) bool {
990990
func windowsPath(old string, is64Bit bool) string {
991991
vv := filepath.SplitList(old)
992992
newPath := make([]string, 0, len(vv))
993+
994+
// for windows-buildlet-v2 images
993995
for _, v := range vv {
994996
// The base VM image has both the 32-bit and 64-bit gcc installed.
995997
// They're both in the environment, so scrub the one
@@ -1002,7 +1004,14 @@ func windowsPath(old string, is64Bit bool) string {
10021004
}
10031005
newPath = append(newPath, v)
10041006
}
1005-
newPath = append(newPath, `C:\godep\gcc\bin`)
1007+
1008+
// for windows-amd64-* images
1009+
if is64Bit {
1010+
newPath = append(newPath, `C:\godep\gcc64\bin`)
1011+
} else {
1012+
newPath = append(newPath, `C:\godep\gcc32\bin`)
1013+
}
1014+
10061015
return strings.Join(newPath, string(filepath.ListSeparator))
10071016
}
10081017

dashboard/builders.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,19 +168,19 @@ var Hosts = map[string]*HostConfig{
168168
RegularDisk: true,
169169
},
170170
"host-windows-amd64-2008": &HostConfig{
171-
VMImage: "windows-amd64-server-2008r2-v1",
171+
VMImage: "windows-amd64-server-2008r2-v2",
172172
machineType: "n1-highcpu-4",
173173
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
174174
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
175175
},
176176
"host-windows-amd64-2012": &HostConfig{
177-
VMImage: "windows-amd64-server-2012r2-v1",
177+
VMImage: "windows-amd64-server-2012r2-v2",
178178
machineType: "n1-highcpu-4",
179179
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
180180
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
181181
},
182182
"host-windows-amd64-2016": &HostConfig{
183-
VMImage: "windows-amd64-server-2016-v1",
183+
VMImage: "windows-amd64-server-2016-v2",
184184
machineType: "n1-highcpu-4",
185185
buildletURLTmpl: "http://storage.googleapis.com/$BUCKET/buildlet.windows-amd64",
186186
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-windows-amd64.tar.gz",
@@ -618,7 +618,7 @@ func (c *BuildConfig) BuildSubrepos() bool {
618618
"linux-386", "linux-amd64", "linux-amd64-nocgo",
619619
"openbsd-386-60", "openbsd-amd64-60",
620620
"plan9-386",
621-
"windows-386-gce", "windows-amd64-2008":
621+
"windows-386-gce", "windows-amd64-2008", "windows-386-2008":
622622
return true
623623
case "darwin-amd64-10_12":
624624
// Don't build subrepos on Sierra until
@@ -959,6 +959,14 @@ func init() {
959959
RunBench: true,
960960
numTryTestHelpers: 5,
961961
})
962+
addBuilder(BuildConfig{
963+
Name: "windows-386-2008",
964+
HostType: "host-windows-amd64-2008",
965+
env: []string{"GOARCH=386", "GOHOSTARCH=386"},
966+
TryBot: false, // Disabled until new Windows builders reliably come up quickly
967+
RunBench: true,
968+
numTryTestHelpers: 5,
969+
})
962970
addBuilder(BuildConfig{
963971
Name: "windows-amd64-2012",
964972
HostType: "host-windows-amd64-2012",

0 commit comments

Comments
 (0)