commit | 6bd6447508b4d7b38514c9caf7688fe278a651c8 | [log] [tgz] |
---|---|---|
author | Chris Mumford <cmumford@google.com> | Tue Sep 19 09:13:48 2023 -0700 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Tue Sep 19 17:31:07 2023 +0000 |
tree | 233bbd8d947ee20dcbf1b7d8f5d6f286872f8f75 | |
parent | 24bd451cfe2faab215cb616e18a1e5d057448b29 [diff] |
Switch back to the Python version of gsutil Commit 84cc4bdc442ddedd4fe4cada9e1780e9c57bccd8 switched from the Python version of gsutil, fetched from a CIPD package at infra/gsutil, to a Go version in the infra/tools/luci/gsutil CIPD package. This was done for the Python v2 to v3 migration. The Luci Go version of gsutil is *way* less feature complete than the official Python version. This isn't a problem for the Skia uses of gsutil, but the CIPD version of gsutil is also embedded into the base-cipd Docker image, which is used by autorollers that use more gsutil subcommands. Fortunately the official gsutil switched to Python 3, so switching back to the Python version of gsutil. Bug: b/295525434 Change-Id: I531904ba9684b154e6cfc3cceaa09f1f951fc6a9 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/757320 Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Chris Mumford <cmumford@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