go icon indicating copy to clipboard operation
go copied to clipboard

testing: TestDeepSubtestRace failures

Open gopherbot opened this issue 1 year ago • 2 comments

#!watchflakes
default <- pkg == "testing" && test == "TestDeepSubtestRace"

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestDeepSubtestRace (0.02s)
    testing_test.go:485: C:\Users\gopher\AppData\Local\Temp\1\go-build686162820\b001\testing.test.exe -test.run=^TestDeepSubtestRace$ -test.bench=TestDeepSubtestRace -test.v -test.parallel=2 -test.benchtime=2x: exit status 1
        === RUN   TestDeepSubtestRace
        === RUN   TestDeepSubtestRace/sub
        === RUN   TestDeepSubtestRace/sub/subsub
        === RUN   TestDeepSubtestRace/sub/subsub/subsubsub
        ==================
        WARNING: DATA RACE
        Write at 0x00c00000aa48 by goroutine 11:
          testing_test.doRace.func1()
...
          testing.(*T).Run.gowrap1()
              C:/workdir/go/src/testing/testing.go:1742 +0x44
        ==================
            testing.go:1398: race detected during execution of test
        --- FAIL: TestDeepSubtestRace (0.00s)
            --- FAIL: TestDeepSubtestRace/sub (0.00s)
                --- FAIL: TestDeepSubtestRace/sub/subsub (0.00s)
                    --- FAIL: TestDeepSubtestRace/sub/subsub/subsubsub (0.00s)
        FAIL
    testing_test.go:494: got 1 race reports, want 2

watchflakes

gopherbot avatar Mar 08 '24 03:03 gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "testing" && test == "TestDeepSubtestRace"
2024-03-08 01:59 windows-amd64-race go@80a91d34 testing.TestDeepSubtestRace (log)
--- FAIL: TestDeepSubtestRace (0.02s)
    testing_test.go:485: C:\Users\gopher\AppData\Local\Temp\1\go-build686162820\b001\testing.test.exe -test.run=^TestDeepSubtestRace$ -test.bench=TestDeepSubtestRace -test.v -test.parallel=2 -test.benchtime=2x: exit status 1
        === RUN   TestDeepSubtestRace
        === RUN   TestDeepSubtestRace/sub
        === RUN   TestDeepSubtestRace/sub/subsub
        === RUN   TestDeepSubtestRace/sub/subsub/subsubsub
        ==================
        WARNING: DATA RACE
        Write at 0x00c00000aa48 by goroutine 11:
          testing_test.doRace.func1()
...
          testing.(*T).Run.gowrap1()
              C:/workdir/go/src/testing/testing.go:1742 +0x44
        ==================
            testing.go:1398: race detected during execution of test
        --- FAIL: TestDeepSubtestRace (0.00s)
            --- FAIL: TestDeepSubtestRace/sub (0.00s)
                --- FAIL: TestDeepSubtestRace/sub/subsub (0.00s)
                    --- FAIL: TestDeepSubtestRace/sub/subsub/subsubsub (0.00s)
        FAIL
    testing_test.go:494: got 1 race reports, want 2

watchflakes

gopherbot avatar Mar 08 '24 03:03 gopherbot

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "testing" && test == "TestDeepSubtestRace"
2025-12-05 19:22 go1.26-freebsd-amd64-race release-branch.go1.26@44cb8244 testing.TestDeepSubtestRace (log)
=== RUN   TestDeepSubtestRace
    testing_test.go:631: /home/swarming/.swarming/w/ir/x/t/go-build3997488805/b871/testing.test -test.run=^TestDeepSubtestRace$ -test.bench=TestDeepSubtestRace -test.v -test.parallel=2 -test.benchtime=2x: exit status 1
        === RUN   TestDeepSubtestRace
        === RUN   TestDeepSubtestRace/sub
        === RUN   TestDeepSubtestRace/sub/subsub
        === RUN   TestDeepSubtestRace/sub/subsub/subsubsub
        ==================
        WARNING: DATA RACE
        Write at 0x00c0002080d8 by goroutine 13:
          testing_test.doRace.func1()
...
              /home/swarming/.swarming/w/ir/x/w/goroot/src/testing/testing.go:2101 +0x38
        ==================
            testing.go:1712: race detected during execution of test
        --- FAIL: TestDeepSubtestRace (0.00s)
            --- FAIL: TestDeepSubtestRace/sub (0.00s)
                --- FAIL: TestDeepSubtestRace/sub/subsub (0.00s)
                    --- FAIL: TestDeepSubtestRace/sub/subsub/subsubsub (0.00s)
        FAIL
    testing_test.go:640: got 1 race reports, want 2
--- FAIL: TestDeepSubtestRace (0.03s)

watchflakes

gopherbot avatar Dec 05 '25 23:12 gopherbot