Skip to content

Commit c95fa0f

Browse files
committed
gopls/internal/test: skip marker tests on darwin builders if -short
Marker tests involve a lot of Go command invocations, which themselves involve a lot of I/O. This seems to make them remarkably slower on legacy darwin builders. Skip if -short for now, to mitigate flakiness. Per chat with the release team, LUCI darwin builders are significantly faster and more stable. Since we only have to support the legacy builders for a bit longer, a skip seems warranted. Fixes golang/go#64473 Change-Id: I9c6d6379017943faee4c02eef32768a6f2af6551 Reviewed-on: https://go-review.googlesource.com/c/tools/+/554716 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Robert Findley <[email protected]> Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 25a0e9d commit c95fa0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gopls/internal/test/marker/marker_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ func TestMain(m *testing.M) {
8585
// - The old tests lacked documentation, and often had failures that were hard
8686
// to understand. By starting from scratch, we can revisit these aspects.
8787
func Test(t *testing.T) {
88+
if testing.Short() && strings.HasPrefix(os.Getenv("GO_BUILDER_NAME"), "darwin-") {
89+
t.Skip("golang/go#64473: skipping with -short: this test is too slow on darwin builders")
90+
}
8891
// The marker tests must be able to run go/packages.Load.
8992
testenv.NeedsGoPackages(t)
9093

0 commit comments

Comments
 (0)