]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: skip API check on plan9 builders
authorBryan C. Mills <bcmills@google.com>
Thu, 26 Mar 2020 16:00:07 +0000 (12:00 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 27 Mar 2020 14:49:08 +0000 (14:49 +0000)
The plan9-arm builder has a very slow filesystem and frequently times
out on this test. The api check verifies the API for all supported
GOOS/GOARCH/CGO_ENABLED combination anyway, so if we skip it on one
builder (or even most builders) there should be no loss of coverage.

Updates #37951

Change-Id: I86a93df2ec60a6af6d942e3954eef09ce67bb39e
Reviewed-on: https://go-review.googlesource.com/c/go/+/225662
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/dist/test.go

index 5baab6931645a14576547bd17ceb484bf80aebbc..0ab5e6e3b62b15167802fe36820ae88668f009a1 100644 (file)
@@ -741,7 +741,12 @@ func (t *tester) registerTests() {
                        })
                }
        }
-       if goos != "android" && !t.iOS() && goos != "js" {
+       // Only run the API check on fast development platforms. Android, iOS, and JS
+       // are always cross-compiled, and the filesystems on our only plan9 builders
+       // are too slow to complete in a reasonable timeframe. Every platform checks
+       // the API on every GOOS/GOARCH/CGO_ENABLED combination anyway, so we really
+       // only need to run this check once anywhere to get adequate coverage.
+       if goos != "android" && !t.iOS() && goos != "js" && goos != "plan9" {
                t.tests = append(t.tests, distTest{
                        name:    "api",
                        heading: "API check",