dashboard: speed up js/wasm trybots
We don't need to run all the tests in a trybot. Run just enough to get
good coverage, without going over 5 minutes.
Any regressions elsewhere will be caught by the build.golang.org
(slower) runs.
Change-Id: I32f1fc17681bfb509844d2bd35b05c950806d283
Reviewed-on: https://go-review.googlesource.com/121938
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/dashboard/builders.go b/dashboard/builders.go
index 8608bc3..0c793b6 100644
--- a/dashboard/builders.go
+++ b/dashboard/builders.go
@@ -1155,9 +1155,26 @@
env: []string{"GOOS=nacl", "GOARCH=amd64p32", "GOHOSTOS=linux", "GOHOSTARCH=amd64"},
})
addBuilder(BuildConfig{
- Name: "js-wasm",
- HostType: "host-js-wasm",
- TryBot: true,
+ Name: "js-wasm",
+ HostType: "host-js-wasm",
+ TryBot: true,
+ ShouldRunDistTest: func(distTest string, isTry bool) bool {
+ if isTry {
+ if strings.HasPrefix(distTest, "test:") {
+ return false
+ }
+ if strings.Contains(distTest, "/internal/") ||
+ strings.Contains(distTest, "vendor/golang.org/x/arch") {
+ return false
+ }
+ switch distTest {
+ case "cmd/go", "nolibgcc:crypto/x509":
+ return false
+ }
+ return true
+ }
+ return true
+ },
numTryTestHelpers: 4,
GoDeps: []string{
"3dced519cbabc213df369d9112206986e62687fa", // first passing commit