-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: -quick
tests aren't quick with reduced GOMAXPROCS
#53818
Comments
They aren't particularly quick at higher GOMAXPROCS either. On my machine (GOMAXPROCS=12):
|
|
(To be honest, I've never quite figured out what the intended difference between -quick and -short is supposed to be.) |
Change https://go.dev/cl/417814 mentions this issue: |
At GOMAXPROCS=1 (and with https://go.dev/cl/417814):
Total run time 81s. |
https://go.dev/cl/417814 reduces |
I thought that |
In an ordinary build the tests will be run with both |
Oh, you're right. cmd/dist doesn't make it obvious that -short is normally passed along with -quick (except on longtest). It doesn't seem to make much sense to pass -quick -short=false in any configuration. |
Change https://go.dev/cl/417918 mentions this issue: |
Fixes golang#53818 Change-Id: I190a8bcf50d92b9c10e9980e630ebb362d8b19ec Reviewed-on: https://go-review.googlesource.com/c/go/+/417918 Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
GO_TEST_SHORT=0 go tool dist test
What did you expect to see?
Passing tests.
What did you see instead?
A giant stack trace from a
runtime
test that timed out (overflowing my terminal's scrollback), followed by some passingmaymorestack
tests:From comparing the output with a
linux-amd64-longtest
run on the build dashboard, I see that the test that timed out is probably this one (taken from the build dashboard):Note that although the dashboard builder sets
GO_TEST_TIMEOUT_SCALE=5
, this is the only test in the dashboard log that took more than 3 minutes.Since the test explicitly sets the
-quick
flag, I expect it to instead be, well, “quick”. 😅I suspect that something in the test is creating a hard-coded amount of concurrent work, when it should instead be scaling the work by
GOMAXPROCS
.(attn @golang/runtime)
The text was updated successfully, but these errors were encountered: