Skip to content

test: test timed out after 10m0s even with GO_TEST_TIMEOUT_SCALE=10 #61468

@4a6f656c

Description

@4a6f656c

With Go tip I'm no longer able to get ./all.bash to pass on a SiFive HiFive Unleashed board (linux/riscv64), even with GO_TEST_TIMEOUT_SCALE=10 exported the ../test now fails consistently with:

...

##### Testing cgo
ok      cmd/cgo/internal/test   3.377s
ok      cmd/cgo/internal/testtls        0.045s
ok      cmd/cgo/internal/testtls        0.021s
ok      cmd/cgo/internal/testnocgo      0.024s
ok      cmd/cgo/internal/testnocgo      0.022s
ok      cmd/cgo/internal/test   4.830s
ok      cmd/cgo/internal/test   3.014s
ok      cmd/cgo/internal/test   3.190s
ok      cmd/cgo/internal/testtls        0.023s
ok      cmd/cgo/internal/testnocgo      0.021s
...
##### ../test
panic: test timed out after 10m0s
running tests:
        Test (10m0s)
        Test/printbig.go (1s)
        Test/recover.go (2s)
        Test/rotate0.go (32s)
        Test/rotate1.go (46s)
goroutine 7219 [running]:
panic({0x16fda0?, 0x3f74b00640?})
        /home/joel/src/go/src/runtime/panic.go:1017 +0x3a0 fp=0x3f7412ef10 sp=0x3f7412ee60 pc=0x47170
testing.(*M).startAlarm.func1()
        /home/joel/src/go/src/testing/testing.go:2259 +0x304 fp=0x3f7412efd8 sp=0x3f7412ef10 pc=0xed65c
runtime.goexit()
        /home/joel/src/go/src/runtime/asm_riscv64.s:512 +0x4 fp=0x3f7412efd8 sp=0x3f7412efd8 pc=0x7b004
created by time.goFunc
        /home/joel/src/go/src/time/sleep.go:176 +0x50
...
[another 2000 lines of goroutine traces]

Contrary to this, an ./all.bash run with Go 1.21.6 passes successfully.

I'm not currently sure if GO_TEST_TIMEOUT_SCALE is no longer being correctly honoured, or if the tests being run have now tipped over some threshold. Either way, not being able to run ./all.bash to completion is not an ideal situation...

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions