You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/go: TestScript mass timeouts on windows-arm64, linux-riscv64, openbsd-arm64 since CL 853365 (drop testdir sharding) #82554
Since 7a4e453 ("cmd/dist: drop sharding for testdir tests", CL 853365, #82457), the cmd/go tests time out on several slow builders. The whole cmd/go test run is killed after about 1080s, and hundreds of TestScripts fail with context deadline exceeded. Watchflakes then files a separate issue for whichever script it sees first, so this shows up as many unrelated-looking cmd/go: TestScript/<name> failures issues.
The commit before 7a4e453 is a22489f, and the two are adjacent on master:
FAILURE every build (~31m), FAIL cmd/go 1086s, 321 scripts failed at 7a4e453
gotip-linux-riscv64
SUCCESS (~60m)
FAILURE every build (~47m), FAIL cmd/go 1082s, 133 scripts failed at 7a4e453
gotip-openbsd-arm64
already failing every build, ~2–27 scripts timing out (a pre-existing slow-builder problem)
~140–330 scripts timing out per run
Likely mechanism: with sharding dropped, cmd/internal/testdir (all of GOROOT/test) runs as an ordinary package inside the main go test std cmd run. On low-core builders it now runs at the same time as the cmd/go script tests and starves them until they hit their deadline. Race builders are unaffected because testdir is now //go:build !race, which matches darwin-arm64-race passing at 7a4e453.
Suggested fix: revert CL 853365, or keep testdir as its own dist test entry (not run alongside the cmd/go tests) on builders.
=== RUN TestScript/mod_list_direct
=== PAUSE TestScript/mod_list_direct
=== CONT TestScript/mod_list_direct
script_test.go:143: 2026-10-27T03:48:40Z
script_test.go:145: $WORK=C:\Users\swarming\.swarming\w\ir\x\t\cmd-go-test-2438461226\tmpdir2493143639\mod_list_direct1947797633
2026/10/27 03:48:40 serving /git?go-get=1
2026/10/27 03:48:40 open C:\Users\swarming\.swarming\w\ir\x\w\goroot\src\cmd\go\testdata\vcstest\git.txt: The system cannot find the file specified.
2026/10/27 03:48:40 serving /?go-get=1
2026/10/27 03:48:40 serving /git?go-get=1
2026/10/27 03:48:40 open C:\Users\swarming\.swarming\w\ir\x\w\goroot\src\cmd\go\testdata\vcstest\git.txt: The system cannot find the file specified.
...
> env GOSUMDB=off
> [!git] skip
[condition not met]
# golang.org/issue/33099: if an import path ends in a major-version suffix,
# ensure that 'direct' mode can resolve the package to the module.
# For a while, (*modfetch.codeRepo).Stat was not checking for a go.mod file,
# which would produce a hard error at the subsequent call to GoMod. (2.076s)
> go get -v
script_test.go:167: FAIL: testdata\script\mod_list_direct.txt:11: go get -v: TestScript timeout 17m59s: context deadline exceeded (command: exit status 1)
--- FAIL: TestScript/mod_list_direct (2.19s)
=== RUN TestScript/gopath_local
=== PAUSE TestScript/gopath_local
=== CONT TestScript/gopath_local
go proxy: no archive rsc.io/fortune/nonexist v0.0.1: file does not exist
script_test.go:143: 2026-10-27T20:20:30Z
script_test.go:145: $WORK=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-329254727/tmpdir455391387/gopath_local3868600693
go proxy: no archive rsc.io v0.0.1: file does not exist
go proxy: no archive rsc.io v0.0.1: file does not exist
go proxy: no archive rsc.io/fortune/nonexist v0.0.1: file does not exist
go proxy: no archive rsc.io/fortune/nonexist v0.0.1: file does not exist
...
r26 0x9fe858
r27 0x40
r28 0x48a804b40
r29 0x418ad9be8
lr 0xa9cdb4
sp 0x418ad9bf0
pc 0x455675b0c
fault 0x0
script_test.go:167: FAIL: testdata/script/gopath_local.txt:10: go build -o easysub testdata/local/easysub/main.go: TestScript timeout 44m59s: context deadline exceeded (command: exit status 2)
--- FAIL: TestScript/gopath_local (11.41s)
I suspect this issue was resolved (or mostly resolved) by bumping up builder timeouts on https://go.dev/cl/854506, which was merged Oct 27 12:08 PM UTC.
The changed builders were openbsd-arm64, linux-riscv64, windows-arm64.
Activity
gopherbot commentedon Oct 26, 2026
Sorry, but there were parse errors in the watch flakes script.
The script I found was:
And the problems were:
See https://go.dev/wiki/Watchflakes for details.
— watchflakes
gopherbot commentedon Oct 26, 2026
Change https://go.dev/cl/853865 mentions this issue:
cmd/internal/script: report timed out tests with better error than 'exit status 2'cmd/internal/script: report timed out tests with better error than 'e…
gopherbot commentedon Oct 26, 2026
Found new dashboard test flakes for:
2026-10-26 09:24 gotip-linux-riscv64 go@21167589 cmd/go.TestScript/chdir (log)
2026-10-26 20:29 gotip-linux-riscv64 go@026b12ef cmd/go.TestScript/cgo_path (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-26 21:55 gotip-linux-riscv64 go@84831ad4 cmd/go.TestScript/ldflag (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-27 00:52 gotip-linux-riscv64 go@6c49ac31 cmd/go.TestScript/vet_cache (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-26 19:48 gotip-linux-riscv64 go@c249015a cmd/go.TestScript/list_std (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-26 19:48 gotip-linux-riscv64 go@8c11c60b cmd/go.TestScript/test_compile_multi_pkg (log)
2026-10-27 00:52 gotip-windows-arm64 go@6c49ac31 cmd/go.TestScript/mod_list_direct (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-26 21:24 gotip-windows-arm64 go@99291162 cmd/go.TestScript/cgo_undef (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-26 23:54 gotip-openbsd-arm64 go@6c0b2c39 cmd/go.TestScript/mod_get_major (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-27 12:56 gotip-linux-riscv64 go@29cfee91 cmd/go.TestScript/test_finished_subtest_goroutines (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-27 11:21 gotip-openbsd-arm64 go@41cb39b7 cmd/go.TestScript/mod_list_compiled_concurrent (log)
— watchflakes
gopherbot commentedon Oct 27, 2026
Found new dashboard test flakes for:
2026-10-27 12:56 gotip-openbsd-arm64 go@29cfee91 cmd/go.TestScript/gopath_local (log)
— watchflakes
cmd/internal/script: report timed out tests with better error than 'e…
thepudds commentedon Nov 3, 2026
The last failure above was on Oct 27.
I suspect this issue was resolved (or mostly resolved) by bumping up builder timeouts on https://go.dev/cl/854506, which was merged Oct 27 12:08 PM UTC.
The changed builders were openbsd-arm64, linux-riscv64, windows-arm64.