CL 10492 in 2015 applied a change to have all.bash skip testing Go packages in the standard library (those matched by go list std cmd) that have no tests. Sadly, the commit message doesn't specify what exactly motivated the change. A guess based on review comments is that it may have been to avoid doing unnecessary work and speed things up, as well as possibly to reduce verbosity of all.bash output.
By now, running go test on a Go package without tests can still produce useful information, such as the high-confidence vet checks that run (e.g., it would've caught an unused printf argument in TryBots), the fact that the package builds successfully, and so on. Furthermore, we have been generally wanting for all.bash not to miss any legitimate problems that a user running go test -short std cmd locally might find.
So we can revisit this. Some things worth considering here:
- measure a bit on how much time it adds to all.bash (both locally and on TryBots)
- think if the vendored packages should or shouldn't be included
- their upstream tests do not get vendored into GOROOT, and by definition are already tested in the repos where their upstream source lives
- having them in all.bash output adds quite a few lines
CC @golang/release, @aclements, @bcmills.
CL 10492 in 2015 applied a change to have all.bash skip testing Go packages in the standard library (those matched by
go list std cmd) that have no tests. Sadly, the commit message doesn't specify what exactly motivated the change. A guess based on review comments is that it may have been to avoid doing unnecessary work and speed things up, as well as possibly to reduce verbosity of all.bash output.By now, running
go teston a Go package without tests can still produce useful information, such as the high-confidence vet checks that run (e.g., it would've caught an unused printf argument in TryBots), the fact that the package builds successfully, and so on. Furthermore, we have been generally wanting for all.bash not to miss any legitimate problems that a user runninggo test -short std cmdlocally might find.So we can revisit this. Some things worth considering here:
CC @golang/release, @aclements, @bcmills.