-
Notifications
You must be signed in to change notification settings - Fork 18k
x/sys/unix: mkmerge_test.go is not tested on the Go builders #49484
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
Comments
Factoring Do we need to verify that the Go builders catch the failing tests in In this case the process could be:
|
I already fixed the failing test, so we don't need to observe it on the builder. Just factoring out a package ought to suffice. If you want to see it in action, I would suggest publishing a patchset to Gerrit with an intentional regression in the test, running TryBots on that Gerrit change to confirm that the regression is caught, and then publishing a second patchset that removes the regression. |
Change https://golang.org/cl/363334 mentions this issue: |
I did an attempt at package
The Docker-based build system for Linux uses a volume mounted at Thoughts on how to address this? |
Oh, neato! We should probably change the build system to mount |
Change https://golang.org/cl/363594 mentions this issue: |
Thanks for the input! I sent CL 363594 to change the build system to mount |
Mount the data volume for the Docker-based builder at x/sys instead of x/sys/unix. The x/sys/go.mod file was not included in the data volume when mounting x/sys/unix. This breaks module-aware go commands that run within the Docker container. Fix this problem by mounting the volume at x/sys and updating the working directory of the builder accordingly. Updates golang/go#49484 Change-Id: I2346b5320413b48de4984c9d9e31203941336357 Reviewed-on: https://go-review.googlesource.com/c/sys/+/363594 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Trust: Bryan C. Mills <bcmills@google.com>
unix/mkmerge.go
was updated in CL 296889 to add//go:build
lines (#41184).That caused the test in
unix/mkmerge_test.go
to start failing, but nobody noticed becausemkmerge_test.go
itself has theignore
constraint — it must be run explicitly to run it at all, and the Go builders do not know to do that.Probably the simplest solution is to factor
mkmerge.go
out into a proper package (perhapsx/sys/unix/internal/mkmerge
?), in which case its test will be run automatically by the builders.Another option would be to add a
Test
function inx/sys/unix
itself that runsgo test mkmerge.go mkmerge_test.go
as a subprocess.CC @tklauser @jupj @ianlancetaylor
The text was updated successfully, but these errors were encountered: