-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/build/cmd/gomote: make environment complete enough to be usable #32430
Comments
There are elements of Windows-specific stuff to this issue, but the more general issue (if I risk overloading this one) is that each gomote environment should be audited to be usable. Perhaps more code should be shared so that the gomote environments can't rot, or as easily. Also, IIRC, gomote to BSDs ssh in as "gopher" or some non-root user with pwd in /home/gopher but the buildlets run as root, in /work ($WORKDIR). That should also be made consistent, one way or another. Tests would be nice too, even if they were manual integration tests we run occasionally by hand. |
Change https://golang.org/cl/181542 mentions this issue: |
$GOEXE exists and is documented in 'go env', so $exe is redundant and a bit confusing. Notably, mod_modinfo.txt already assumes that GOEXE is set (even though it isn't), and thus fails on Windows. After this CL, `go test cmd/go/...` passes on a windows-amd64-2016 builder. However, given that the $PATH on the builder is very minimal (#32430) and network access is limited, tests that rely on binaries (such as 'git') or external networking may still be broken. Updates #25300 Change-Id: I9d80f2a0fbaa8bc35fa2205b6898aeccecda4e94 Reviewed-on: https://go-review.googlesource.com/c/go/+/181542 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
Change https://golang.org/cl/207459 mentions this issue: |
…buidlers And add a testssh tool to validate that SSH is working. Updates golang/go#32430 Change-Id: I5182419fa4db31b598f7a02412fb4ecc4060a796 Reviewed-on: https://go-review.googlesource.com/c/build/+/207459 Reviewed-by: Bryan C. Mills <[email protected]>
Related: I filed #35629 to make the Windows environments have their GUIs enabled, so RDP into them is more useful than a black cmd.exe on a black background. |
On a freebsd-amd64-12_2 gomote, the workdir (/tmp/workdir) is owned by and only writable by root, but gomote ssh logs in as gopher. I have to switch to root just to write files in the workdir. |
An experience report from debugging #50892 via gomote.
|
@bcmills , for (2), what's your local TERM and what TERM do you get once sshed? The output of |
Local
|
Apparently I need to repeat the full path to the command twice (once for the command and once for the |
I wrote https://go.dev/cl/418104 as an attempt at fixing this problem. However, I have no idea how to test it. |
Change https://go.dev/cl/418104 mentions this issue: |
Committed and tested. |
Change https://go.dev/cl/418654 mentions this issue: |
For golang/go#32430 Change-Id: Id4e1a4fa337e45c38fd702914edf5c4ed60be8fb Reviewed-on: https://go-review.googlesource.com/c/build/+/418654 Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
Every time I
gomote ssh
into anwindows-amd64-2016
instance, I end up needing to run a bunch of boilerplate just to getmake.bat
to work:That's five commands for what is logically only one operation: “give me an instance of
windows-amd64-2016
set up to test my currentGOROOT
”.On top of that, I end up needing to run that sequence repeatedly because the instance keeps rotting away out from under me (#28365).
That makes it really difficult to debug fixes, and produces a strong incentive to just run TryBots instead, wasting resources.
CC @golang/osp-team @aclements
The text was updated successfully, but these errors were encountered: