Skip to content

Commit c75979e

Browse files
committed
dashboard: only run misc-vet-vetall for master
As of CL 169198 for golang/go#31040, the coordinator no longer supports placing the x/tools files out for Go 1.11 and Go 1.12's cmd/vet/all to find, so their misc-vet-vetall builds will start failing. We could in theory still either backport CL 169237 to release-branch.go1.11 and release-branch.go1.12, and/or we could keep running the misc-vet-vetall builder for the future Go 1.13 release branch, but it's not obviously even worth it; the vetall builder is most useful during development anyway. The tree is pretty stable once it's release branch time. The main use of misc-vet-vetall is catching assembly vet failures (since go test now does most the other vet checks), and assembly doesn't often change in release branches. Updates golang/go#31040 Change-Id: I7b827ecbcd206f3dcf63e04cc94fb78854befd7d Reviewed-on: https://go-review.googlesource.com/c/build/+/169339 Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 6293144 commit c75979e

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

dashboard/builders.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -1357,11 +1357,13 @@ func init() {
13571357
// Add the -vetall builder. The builder name suffix "-vetall" is recognized by cmd/dist/test.go
13581358
// to only run the "go vet std cmd" test and no others.
13591359
addBuilder(BuildConfig{
1360-
Name: "misc-vet-vetall",
1361-
HostType: "host-linux-jessie",
1362-
Notes: "Runs vet over the standard library.",
1363-
buildsRepo: onlyGo,
1364-
tryBot: defaultTrySet(),
1360+
Name: "misc-vet-vetall",
1361+
HostType: "host-linux-jessie",
1362+
Notes: "Runs vet over the standard library.",
1363+
buildsRepo: func(repo, branch, goBranch string) bool {
1364+
return repo == "go" && branch == "master"
1365+
},
1366+
tryBot: defaultTrySet(),
13651367
env: []string{
13661368
"GO_DISABLE_OUTBOUND_NETWORK=1",
13671369
},

dashboard/builders_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ func TestTrybots(t *testing.T) {
122122
"misc-compile-openbsd",
123123
"misc-compile-plan9",
124124
"misc-compile-ppc",
125-
"misc-vet-vetall",
126125
"nacl-386",
127126
"nacl-amd64p32",
128127
"openbsd-amd64-64",
@@ -266,6 +265,10 @@ func TestBuilderConfig(t *testing.T) {
266265
{b("linux-amd64", "net"), both},
267266
{b("linux-amd64", "sys"), both},
268267

268+
{b("misc-vet-vetall", "go"), both},
269+
{b("[email protected]", "go"), none},
270+
{b("[email protected]", "go"), none},
271+
269272
// Don't test all subrepos on all the builders.
270273
{b("linux-amd64-ssacheck", "net"), none},
271274
{b("[email protected]", "net"), none},

0 commit comments

Comments
 (0)