зеркало из https://github.com/golang/build.git
12521bba39
This change implements the endpoint to create gomote instances for the gomote GRPC service. In the process of implementing creates, various other changes were needed: - Refactoring the remote session pool. - Extending the fake schedule used for testing. Updates golang/go#48742 Change-Id: I0c74e38539428d028917200ccd6bd0c58fa14801 Reviewed-on: https://go-review.googlesource.com/c/build/+/370662 Trust: Carlos Amedee <carlos@golang.org> Run-TryBot: Carlos Amedee <carlos@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
---|---|---|
.. | ||
internal | ||
protos | ||
.gitignore | ||
Dockerfile | ||
Makefile | ||
README.md | ||
builders.go | ||
builders_test.go | ||
buildstatus.go | ||
buildstatus_test.go | ||
coordinator.go | ||
coordinator_test.go | ||
dash.go | ||
debug.go | ||
deployment-prod.yaml | ||
deployment-staging.yaml | ||
metrics.go | ||
modproxy.go | ||
modproxy_test.go | ||
module-proxy-service.yaml | ||
remote.go | ||
remote_test.go | ||
results.go | ||
results_test.go | ||
service-staging.yaml | ||
status.go | ||
status_test.go | ||
style.css | ||
trybot_dev.go | ||
version.sh |
README.md
Coordinator
Running locally
Building, running tests, running locally is supported on Linux and macOS only.
Run
go run golang.org/x/build/cmd/coordinator -mode=dev
to start a server on https://localhost:8119. Proceed past the TLS warning and you should get the homepage. Some features won't work when running locally, but you should be able to navigate between the homepage, the dashboard, the builders page, and do limited local development and testing.
To test builds locally, start a host-linux-amd64-localdev
reverse buildlet,
which will run linux-amd64
tests:
go run golang.org/x/build/cmd/buildlet -halt=false -reverse-type=host-linux-amd64-localdev
Render the "Trybot Status" page locally
To view/modify the "Trybot Status" page locally, you can run the coordinator
with the -dev
tag.
go run -tags=dev golang.org/x/build/cmd/coordinator -mode=dev -env=dev
Then visit https://localhost:8119/try-dev in your browser. You should see a trybot status page with some example data.