From b09068041a20ed3cd44685a1d7f4dccbabfc2e94 Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Tue, 2 Sep 2025 18:35:21 +0000 Subject: [PATCH] cmd/dist: run racebench tests only in longtest mode The racebench tests represent a significant portion of the race builders' runtimes, but these tests aren't providing a lot of value. Disable them and run them only on -longtest-race builders. For #32032. Change-Id: Ic4383c3f3b51d123ae9f5c377bc0e2ec02f2ddd7 Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-race,gotip-linux-amd64-longtest-race Reviewed-on: https://go-review.googlesource.com/c/go/+/700455 Reviewed-by: Dmitri Shuralyov Reviewed-by: Dmitri Shuralyov TryBot-Bypass: Michael Knyszek --- src/cmd/dist/test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index dfa4ffb522..91e3716f07 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -677,7 +677,7 @@ func (t *tester) registerTests() { } t.registerStdTest(pkg) } - if t.race { + if t.race && !t.short { for _, pkg := range pkgs { if t.packageHasBenchmarks(pkg) { t.registerRaceBenchTest(pkg) -- 2.52.0