| commit | bc98324dc018f9b7d2cbb3279b029747ffae05a8 | [log] [tgz] |
|---|---|---|
| author | Leandro Lovisolo <lovisolo@google.com> | Tue Feb 14 20:17:00 2023 +0000 |
| committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Tue Feb 14 23:09:50 2023 +0000 |
| tree | cbd1473c5c777f3687236dc11bc9729e361d7a30 | |
| parent | 5940521677014d8de43caf2d306b61512516d1d5 [diff] |
swarming_vm.go: Run "gcloud auth configure-docker" during setup (setup-script-linux.sh). This should fix Docker-related errors on machines configured with the legacy setup scripts (i.e. configured without Ansible). Example errors this CL should fix: - https://ci.chromium.org/raw/build/logs.chromium.org/skia/60686f022c7f2a11/+/annotations - https://ci.chromium.org/raw/build/logs.chromium.org/skia/606743f2438e7a11/+/annotations I tested this CL as follows: 1. I created a machine with the original setup script. 2. I SSH'd into the machine and ran "docker pull gcr.io/skia-public/binary-size:v1". It failed due to missing permissions. 3. I created a machine with the updated setup script. 4. I ran the command from step 2 and confirmed that it worked. Bug: skia:14074 Change-Id: I6885c88f15ee32d4320b5ba06a84e7b4c487014e Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/643440 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com> Auto-Submit: 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
Almost all applications are built with Bazel, and bazelisk is the recommended tool to ensure you have the right version of bazel installed:
go install github.com/bazelbuild/bazelisk@latest go install github.com/bazelbuild/buildtools/buildifier@latest go install github.com/kisielk/errcheck@latest go install golang.org/x/tools/cmd/goimports@latest go install github.com/mikefarah/yq/v4@latest go install go.chromium.org/luci/client/cmd/...@latest
sudo apt-get install jq
bazelisk build --config=mayberemote //...
bazelisk test --config=mayberemote //...
To update generated code run the following in any directory:
go generate ./...
Install Cloud SDK.
Use this command to run the presubmit tests:
./run_unittests --small