build/cmd/coordinator
Carlos Amedee 12521bba39 internal/gomote, internal/gomote/protos: add create instance implementation
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>
2021-12-22 15:58:22 +00:00
..
internal all: remove go1.13 and go1.16 build constraints 2021-12-14 03:13:33 +00:00
protos cmd/coordinator,cmd/retrybuilds: add wipe API to coordinator 2020-02-20 15:37:57 +00:00
.gitignore cmd/coordinator/buildongce: move to cmd/gcpinit 2019-05-30 15:56:19 +00:00
Dockerfile cmd/coordinator: update Dockerfile to Go 1.17 2021-09-10 20:46:02 +00:00
Makefile cmd/coordinator: move to Workload Identity 2021-09-14 19:27:30 +00:00
README.md cmd/coordinator: find work in dev mode 2021-10-15 19:50:59 +00:00
builders.go cmd/coordinator: add link to known issue on builders page 2021-12-09 18:39:36 +00:00
builders_test.go cmd/coordinator: update to Go 1.16 2021-07-27 17:34:34 +00:00
buildstatus.go all: use buildlet client interface to enable testing 2021-12-16 16:21:21 +00:00
buildstatus_test.go cmd/coordinator: add tests for parseOutputAndBanner 2021-12-16 21:47:03 +00:00
coordinator.go internal/gomote, internal/gomote/protos: add create instance implementation 2021-12-22 15:58:22 +00:00
coordinator_test.go cmd/coordinator: support specifying a builder for x-repo slowbots 2021-09-02 21:07:55 +00:00
dash.go cmd/coordinator/internal/legacydash: convert app/appengine to library 2021-07-30 18:25:01 +00:00
debug.go dashboard, cmd/coordinator: support multiple builder owners 2021-11-16 18:15:49 +00:00
deployment-prod.yaml cmd/coordinator: increase resources available to the coordinator 2021-12-02 23:25:42 +00:00
deployment-staging.yaml cmd/coordinator: increase resources available to the coordinator 2021-12-02 23:25:42 +00:00
metrics.go cmd/coordinator: add metrics for gomote usage 2021-09-29 01:47:27 +00:00
modproxy.go cmd/coordinator: update to Go 1.16 2021-07-27 17:34:34 +00:00
modproxy_test.go cmd/coordinator: update to Go 1.16 2021-07-27 17:34:34 +00:00
module-proxy-service.yaml cmd/coordinator: move to Workload Identity 2021-09-14 19:27:30 +00:00
remote.go all: use buildlet client interface to enable testing 2021-12-16 16:21:21 +00:00
remote_test.go all: use buildlet client interface to enable testing 2021-12-16 16:21:21 +00:00
results.go cmd/coordinator: update to Go 1.16 2021-07-27 17:34:34 +00:00
results_test.go cmd/coordinator: update to Go 1.16 2021-07-27 17:34:34 +00:00
service-staging.yaml all: rename -dev to -staging in filenames and Makefile targets 2017-07-31 20:52:40 +00:00
status.go cmd/coordinator, internal/coordinator/schedule: create schedule pkg 2021-12-13 18:02:31 +00:00
status_test.go cmd/coordinator, internal/coordinator/schedule: create schedule pkg 2021-12-13 18:02:31 +00:00
style.css cmd/coordinator: link "ok" results to build logs 2021-08-10 20:07:35 +00:00
trybot_dev.go all: go fmt ./... 2021-02-20 03:31:12 +00:00
version.sh cmd/coordinator: stop using gitlock, use go modules 2019-05-09 15:14:00 +00:00

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.