commit | ae98cd6c5590603a3e08b28d890c82772efdb546 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Fri Jun 26 11:12:16 2020 -0400 |
committer | Kevin Lubick <kjlubick@google.com> | Mon Jun 29 16:29:22 2020 +0000 |
tree | 937f76394d8f4758b58dcf392b881bdd2d907f41 | |
parent | 2be37a93d661b72ac1ad76779095b9e867c542a0 [diff] |
[gold] Port diffserver to using JSON config A notable change here is changing which json5 files get passed into kube-conf-gen. Previously, it was the gold-common json file (with the names of the docker images to use) and the monolithic instance config. Now, it will be the same gold-common JSON file and the specific json file for the instance+service. This way we can still specify things like RAM and CPU estimates per instance, and it will be more organized. Change-Id: If45e5c408c825460fc2c26e0a068b2de852a9520 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/298743 Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
This repo contains infrastructure code for Skia.
The main source code repository is a Git repository hosted at https://skia.googlesource.com/buildbot.git. It is possible to check out this repository directly with git clone
or via go get
.
Using git clone
allows you to work in whatever directory you want. You will still need to set GOPATH in order to build some apps (recommended to put this in a cache dir). E.g.:
$ cd ${WORKDIR} $ git clone https://skia.googlesource.com/buildbot.git $ export GOPATH=${HOME}/.cache/gopath/$(basename ${WORKDIR}) $ mkdir $GOPATH $ cd buildbot
Using go get
will fetch the repository into your GOPATH directory along with all the Go dependencies. You will need to set GOPATH and GO111MODULE=on. E.g.:
$ export GOPATH=${WORKDIR} $ export GO111MODULE=on $ go get -u -t go.skia.org/infra/... $ cd ${GOPATH}/src/go.skia.org/infra/
Note: go.skia.org is a custom import path and will only work if used like the examples here.
Install Node.js (not as root) and add the bin dir to your path. Optionally run npm install npm -g
, as suggested by the npm getting started doc.
Install other dependencies:
$ sudo apt-get install python-django $ go get -u github.com/kisielk/errcheck \ golang.org/x/tools/cmd/goimports \ go.chromium.org/luci/client/cmd/isolate $ npm install -g polylint bower
Build ~everything:
$ make all
Some code is generated using go generate
with external binaries. First, install the version of protoc referenced in the asset creation script and ensure it is on your PATH before other versions of protoc.
Install the necessary go packages:
$ go get -u \ github.com/golang/protobuf/protoc-gen-go \ golang.org/x/tools/cmd/stringer \ google.golang.org/grpc \ github.com/vektra/mockery/...
To generate code run in this directory:
$ go generate ./...
Install Cloud SDK.
Use this command to run the presubmit tests:
$ ./run_unittests --small