commit | 70ea436295e794462c229d44587b9029dbbf9a38 | [log] [tgz] |
---|---|---|
author | Ashwin Verleker <ashwinpv@google.com> | Fri Nov 17 22:15:50 2023 +0000 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Sat Nov 18 00:11:18 2023 +0000 |
tree | d93b04a7e4fe6ce9735509c4472f7ffcb6a49692 | |
parent | d2cc7eef27d6d32d7190d046b05cba35dc5bbd2e [diff] |
Add an alert config provider to reduce the number of db hits - Cache the alert config records in memory and hit db only if the cache is expired or no items. - Chrome regression processing has a high volume of incoming data and every data point triggers this call to retrieve the alert configurations. Since alert configs do not change very often, they should be safe to cache in memory. Bug: b/310984925 Change-Id: I0d889f0cdbd1c649bcac31877d587ee8b0442757 Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/778561 Reviewed-by: Sean McCullough <seanmccullough@google.com> Commit-Queue: Ashwin Verleker <ashwinpv@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