Skip to content

Commit

Permalink
cmd/coordinator, dashboard: switch to new VMWare-based OS X builders
Browse files Browse the repository at this point in the history
Ignore the old darwin-{amd64,386}-10_10 builders. Don't give them an
error, but pretend they don't exist.

Also: switch trybots from OS X 10.10 to OS X 10.11, and re-enable
sharding. Let's hope for the best. See golang/go#12979.

This also enables subrepo tests for all OS X versions.

darwin-386-* is currently offline, pending some golang/go#17009

Updates golang/go#9495 (OS X virtualization)

Change-Id: I4d53a79087404b5e8051d1aff0c668a92625f442
Reviewed-on: https://go-review.googlesource.com/28583
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
bradfitz committed Sep 7, 2016
1 parent d9c1e76 commit d83028e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
2 changes: 1 addition & 1 deletion cmd/coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var (

func initTryBuilders() {
tryList := []string{
"darwin-amd64-10_10",
"darwin-amd64-10_11",
"linux-386",
"linux-amd64",
"linux-amd64-race",
Expand Down
17 changes: 16 additions & 1 deletion cmd/coordinator/reverse.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,19 +417,34 @@ func handleReverse(w http.ResponseWriter, r *http.Request) {
http.Error(w, fmt.Sprintf("need at least one mode and matching key, got %d/%d", len(modes), len(gobuildkeys)), http.StatusPreconditionFailed)
return
}
hostname := r.Header.Get("X-Go-Builder-Hostname")

for i, m := range modes {
if gobuildkeys[i] != builderKey(m) {
http.Error(w, fmt.Sprintf("bad key for mode %q", m), http.StatusPreconditionFailed)
return
}
}

// Silently pretend that "gomacmini-*.local" doesn't want to do darwin-amd64-10_10 and
// darwin-386-10_10 anymore.
// TODO(bradfitz): remove this hack after we reconfigure those machines.
if strings.HasPrefix(hostname, "gomacmini-") && strings.HasSuffix(hostname, ".local") {
var filtered []string
for _, m := range modes {
if m == "darwin-amd64-10_10" || m == "darwin-386-10_10" {
continue
}
filtered = append(filtered, m)
}
modes = filtered
}

conn, bufrw, err := w.(http.Hijacker).Hijack()
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
hostname := r.Header.Get("X-Go-Builder-Hostname")

revDialer := revdial.NewDialer(bufrw, conn)

Expand Down
36 changes: 16 additions & 20 deletions dashboard/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ func (c *BuildConfig) BuildSubrepos() bool {
}
// TODO(adg,bradfitz): expand this as required
switch c.Name {
case "darwin-amd64-10_10",
case "darwin-amd64-10_8",
"darwin-amd64-10_10",
"darwin-amd64-10_11",
"darwin-386-10_11",
"freebsd-386-gce101", "freebsd-amd64-gce101",
"linux-386", "linux-amd64", "linux-amd64-nocgo",
"openbsd-386-gce58", "openbsd-amd64-gce58",
Expand Down Expand Up @@ -512,38 +515,31 @@ func init() {
env: []string{"GOARCH=386", "GOHOSTARCH=386"},
NumTestHelpers: 3,
})
addBuilder(BuildConfig{
Name: "darwin-amd64-10_10",
Notes: "Mac Mini running OS X 10.10 (Yosemite)",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-darwin-amd64.tar.gz",
IsReverse: true,
NumTestHelpers: 0, // disabled per golang.org/issue/12979
})
addBuilder(BuildConfig{
Name: "darwin-386-10_10",
Notes: "Mac Mini running OS X 10.10 (Yosemite)",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/go1.4-darwin-amd64.tar.gz",
IsReverse: true,
env: []string{"GOARCH=386", "GOHOSTARCH=386"},
NumTestHelpers: 0, // disabled per golang.org/issue/12979
})

addBuilder(BuildConfig{
Name: "darwin-amd64-10_8",
Notes: "MacStadium OS X 10.8 VM under VMWare ESXi",
IsReverse: true,
FlakyNet: true,
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/go1.4",
},
})
addBuilder(BuildConfig{
Name: "darwin-amd64-10_11",
FlakyNet: true,
Name: "darwin-amd64-10_10",
Notes: "MacStadium OS X 10.10 VM under VMWare ESXi",
IsReverse: true,
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/go1.4",
},
})
addBuilder(BuildConfig{
Name: "darwin-amd64-10_11",
Notes: "MacStadium OS X 10.11 VM under VMWare ESXi",
NumTestHelpers: 2,
IsReverse: true,
env: []string{
"GOROOT_BOOTSTRAP=/Users/gopher/go1.4",
},
})

addBuilder(BuildConfig{
Name: "android-arm-sdk19",
Expand Down

0 comments on commit d83028e

Please sign in to comment.