| commit | 14ed0768a906e46e8df5880a702564bbda1814e2 | [log] [tgz] |
|---|---|---|
| author | seanmccullough <seanmccullough@google.com> | Tue Aug 08 11:00:46 2023 -0700 |
| committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Mon Aug 14 17:05:32 2023 +0000 |
| tree | 12e74bc44c41fd3ab9740ce22c14ad44ec5b8d53 | |
| parent | 06d0f5cb999ff8f1a8811be1f07080a50b00dedf [diff] |
[cabe] clean up proto, grpc generated code Because the proto definitions are not specific to the go implementation (e.g. python client libraries may use them) they belong outside of the //cabe/go path. This keeps the //cabe/go/proto directory but only as a destination for the generated go code. - move .proto files from //cabe/go/proto to //cabe/proto - add proto_library BUILD targets for each proto files - update //cabe/go/proto/generate.go with the new paths I have some follow-up changes to add the generated python classes and grpc stubs in a new //cabe/python dir, which we should re-use in catapult.git/dashboard/sandwich_verification instead of the unreliable method it currently uses (manually generate stubs, copy and paste from skia/buildbot, etc). Change-Id: I57c138a6ad6439cd90c8d50b3b384158886c91b6 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/738100 Commit-Queue: Sean McCullough <seanmccullough@google.com> Reviewed-by: Leina Sun <sunxiaodi@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