-
Notifications
You must be signed in to change notification settings - Fork 17.8k
DashboardBuilders
Dmitri Shuralyov edited this page Feb 5, 2019
·
82 revisions
Build configs (at the top) and host configs (bottom) are listed here:
https://farmer.golang.org/builders
A builder runs on a certain host type. (e.g. linux-386-387
is a build type. It runs on host-linux-kubestd
, a Kubernetes-based linux/amd64 host)
They come from the file https://github.com/golang/build/blob/master/dashboard/builders.go
For design details about the coordinator, see https://golang.org/s/builderplan
- talk to golang-dev@ to get a builder host type & hash (they can get one from e.g. https://build-dot-golang-org.appspot.com/key?builder=host-foo-bar), and put that in
~/.gobuildkey
or~/.gobuildkey-host-foo-bar
or the file pointed to by env var$GO_BUILD_KEY_PATH
. go get -u golang.org/x/build/cmd/buildlet
- Run the buildlet in a loop or under systemd:
while true; do buildlet -coordinator=farmer.golang.org -reverse-type=host-foo-bar -reboot=false; done
- Verify you can see the host registered at https://farmer.golang.org/#pools in the "Reverse pool machine detail" section and "Reverse pool summary".
- Add a builder type to https://github.com/golang/build/blob/master/dashboard/builders.go (see the
addBuilder
lines). Run tests. Send the CL. - Have golang-dev deploy it.
- internet connection (at least be able to access Google and https://build.golang.org)
- preferably with two or more (V)CPUs, as at least one test (
sync/atomic
requiresruntime.NumCPU() > 1
to test more completely) - at least 512MiB of memory (1GB or more highly recommended. 512MB might need a small
GOGC
setting to avoid thrashing.)
- The combination of Ubuntu 11.10 or 12.04 OMAP4 kernel and pandaboard (ES) have proven unstable as builders. See issue 4305. Make sure you have updated to the latest available 12.04.2 release.