Skip to content
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

doc: write gomote wiki docs #13834

Closed
bradfitz opened this issue Jan 6, 2016 · 7 comments
Closed

doc: write gomote wiki docs #13834

bradfitz opened this issue Jan 6, 2016 · 7 comments

Comments

@bradfitz
Copy link
Contributor

bradfitz commented Jan 6, 2016

Document how to use gomote for all common tasks for all major OS types.

/cc @randall77

@bradfitz bradfitz self-assigned this Jan 6, 2016
@bradfitz bradfitz added this to the Unreleased milestone Jan 6, 2016
@randall77
Copy link
Contributor

Some things that came up from a recent gomote session:

  • Make sure GOROOT is set on your local machine before doing "gomote push"
  • build: gomote run go/src/make.bat
  • test: gomote run go/bin/go test
  • cd: any way to change directories?
  • set an evironment variable before running a command? (particularly, windows) Also querying an environment variable.
  • on my local machine, "go version" returns "go version devel +a4650a2 ...". On a gomote instance, it returns "go version devel gomote.XXXXX ...". Why isn't the commit hash in there?

@josharian
Copy link
Contributor

Other notes:

  • Start by just running gomote and explore a bit.
  • It'd be useful to be able to set GOPATH and PATH, maybe in a sticky way. That'd (a) make it possible to go get things like the stress util and (b) make lots more of the stdlib tests pass -- they expect to be able to find the go command.
  • The million "Remote doesn't have" log lines when initially running push are overwhelming.
  • It'd be useful to have a way to set the user (in a config?) for folks whose whoami doesn't match their gomote username.

For the sake of others looking here for docs, here's how I did some stress testing:

gomote -user josharian create linux-amd64-sid
gomote -user josharian push user-josharian-linux-amd64-sid-0
gomote -user josharian run user-josharian-linux-amd64-sid-0 go/src/make.bash
for f in `seq 1000`; do gomote -user josharian run user-josharian-linux-amd64-sid-0 go/bin/go test -short net/http crypto/x509; done

(One could use the -count flag to go test to loop instead of a bash loop, but that wasn't as effective at reproducing for my particular bug.)

@bradfitz
Copy link
Contributor Author

Other notes, running cmd/go tests on Windows:

gomote run -path '$PATH,$WORKDIR/go/bin' -e 'GOROOT=c:\workdir\go' user-bradfitz-windows-amd64-gce-0 go/bin/go.exe  test cmd/go -short

@bradfitz
Copy link
Contributor Author

/cc @dsnet

@josharian
Copy link
Contributor

gomote push should not push files that are .gitignored. This will prevent giant uploads from uploading local object files, etc.

@gopherbot
Copy link

CL https://golang.org/cl/42252 mentions this issue.

gopherbot pushed a commit to golang/build that referenced this issue May 1, 2017
Fixes golang/go#20197
Updates golang/go#13834

Change-Id: Ib87b174f8aabfc6b8c802ee930813238f330d218
Reviewed-on: https://go-review.googlesource.com/42252
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
kevinburke pushed a commit to kevinburke/build that referenced this issue May 2, 2017
Fixes golang/go#20197
Updates golang/go#13834

Change-Id: Ib87b174f8aabfc6b8c802ee930813238f330d218
Reviewed-on: https://go-review.googlesource.com/42252
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@josharian
Copy link
Contributor

@golang golang locked and limited conversation to collaborators Feb 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants