| commit | 8d9cef29be251a057208e409f2f3120ee470927d | [log] [tgz] |
|---|---|---|
| author | Kevin Lubick <kjlubick@google.com> | Thu Oct 05 14:20:49 2023 -0400 |
| committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Thu Oct 05 18:45:47 2023 +0000 |
| tree | fdcb5c9a3d670f8bc410ea57a6269dfb07cde2aa | |
| parent | 53536344718309665e67af9b3fb236963b7412f8 [diff] |
[task_scheduler] Add more tracing to RBE CAS code and warning if it takes longer than usual This outage [1] took a while to figure out, due to a lack of logs (no errors or warnings were thrown). This aims to address that by making such anomalous behavior be visible in the logs. As of writing, a healthy mergeCASInputs takes place in <10s. The anomalous behavior saw that take many minutes. It also removes the (mostly useless) calls to metrics2.FuncTimer as those do not show up in the cloud logs and are harder to use than the tracing spans that are used in their place. [1] https://groups.google.com/a/google.com/g/luci-outages/c/tvtxib74WAo/m/omAz0QBOAgAJ Change-Id: I83eae14f05f76077807a5c444c66553a40e7a986 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/763357 Commit-Queue: Joe Gregorio <jcgregorio@google.com> Reviewed-by: Joe Gregorio <jcgregorio@google.com> Auto-Submit: Kevin Lubick <kjlubick@google.com> Commit-Queue: Kevin Lubick <kjlubick@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