]> Cypherpunks repositories - gostls13.git/commitdiff
internal/trace: skip tests for alloc/free experiment by default
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 8 Dec 2025 17:48:53 +0000 (17:48 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 8 Dec 2025 18:56:47 +0000 (10:56 -0800)
These tests are just too flaky and I don't have the time to fix them
right now. I also am thinking to just change how trace experiments work,
so it may not be worth taking the time to fix them.

For #70838.

Change-Id: Ia896215a0cbeccac99b73fefc836088f43530849
Reviewed-on: https://go-review.googlesource.com/c/go/+/728122
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/internal/trace/reader_test.go
src/internal/trace/trace_test.go

index c03d0676a07c7a03c12452b24706d9793cdfc14b..264cc51569605f3ba315165d917e223187c21552 100644 (file)
@@ -20,6 +20,7 @@ import (
 var (
        logEvents  = flag.Bool("log-events", false, "whether to log high-level events; significantly slows down tests")
        dumpTraces = flag.Bool("dump-traces", false, "dump traces even on success")
+       allocFree  = flag.Bool("alloc-free", false, "run alloc/free trace experiment tests")
 )
 
 func TestReaderGolden(t *testing.T) {
index 479411548f22b25c945811dc760b5ec61b63ed06..bfbd5315115305e58a9aa45a63968a5ce97ea5cf 100644 (file)
@@ -697,6 +697,9 @@ func testTraceProg(t *testing.T, progName string, extra func(t *testing.T, trace
                runTest(t, true, "")
        })
        t.Run("AllocFree", func(t *testing.T) {
+               if !*allocFree {
+                       t.Skip("skipping trace alloc/free tests by default; too flaky (see go.dev/issue/70838)")
+               }
                if testing.Short() {
                        t.Skip("skipping trace alloc/free tests in short mode")
                }