cmd/covdata: subtract operation incorrectly sensitive to process IDs #60526
Labels
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
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
)?linux/amd64
What did you do?
For a toy program "hello.go" (hi mom or equivalent), run this script:
What did you expect to see?
Clean run.
What did you see instead?
For one of the "go tool covdata" runs, failure with
This is due to a flaw in the internal/coverage/pods package, which is sorting coverage counter data files during pod collection based purely on name. This is a problem because counter file names are formed with process IDs, which are chosen by the OS in a non-predictable way.
The text was updated successfully, but these errors were encountered: