]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: run racebench tests only in longtest mode
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 2 Sep 2025 18:35:21 +0000 (18:35 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 2 Sep 2025 22:17:38 +0000 (15:17 -0700)
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 <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Bypass: Michael Knyszek <mknyszek@google.com>

src/cmd/dist/test.go

index dfa4ffb522fa657d88f206e6848a5622514971f6..91e3716f07b1c51c295cf1c91e3ba1aa04f3243f 100644 (file)
@@ -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)