cmd/go: go test does not utilize -p setting without prior go build #71365
Labels
BugReport
Issues describing a possible bug in the Go implementation.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Go version
go version go1.23.5 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I executed the following command to run tests without running go build first:
timeout -s KILL 32m xvfb-run -a --server-args="-screen 0 1600x900x24 -noreset" go test -v -json -parallel=1 -p=14 -timeout=2m -count=1 ./... >$REPORT_FILE 2>&1 || true
However, when I include go build before the test command, like this:
go build && timeout -s KILL 32m xvfb-run -a --server-args="-screen 0 1600x900x24 -noreset" go test -v -json -parallel=1 -p=14 -timeout=2m -count=1 ./... >$REPORT_FILE 2>&1 || true
the tests utilize all 14 parallel packages as expected.###
What did you see happen?
When running go test without go build, a maximum of only 2 parallel packages are executed, despite setting -p=14.
What did you expect to see?
I expected go test to utilize 14 parallel packages as specified with -p=14, even without running go build beforehand.
The text was updated successfully, but these errors were encountered: