[perf] Fix Android Group By regression detection.

This previous change broke regression detection in any instance
that uses Group By alerts:

  https://skia-review.googlesource.com/c/buildbot/+/369845

The root of the problem is that the Alert configs produced
by PubSub ingestion driven regression detection were being
expanded across all their GroupBy values, which is exactly
the thing that ingestion driven regression was built to avoid.
So in theory the clusters would have found the regressions
eventually, we would just have needed 100x the number of cores.

This CL:

 - Restores the optimized behavior of ingestion driven
regression detection.
 - Adds in more logging.
 - Sends more info back to the user via Process messages.
 - Add Prometheus alerts to catch such issues in the future.

Change-Id: I8ed956159984ab7a9f15f28f88eb1f89c6c1a5b6
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/372057
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
12 files changed
tree: ecc3fa1dcc980eaf94f1e17ea755e8f08529153e
  1. am/
  2. android_ingest/
  3. android_stats/
  4. api/
  5. autoroll/
  6. bash/
  7. bazel/
  8. blamer/
  9. bugs-central/
  10. chromeextensions/
  11. codereview-watcher/
  12. comments/
  13. contestk/
  14. cq_watcher/
  15. ct/
  16. datahopper/
  17. debugger-app/
  18. demos/
  19. docker/
  20. docker_pushes_watcher/
  21. docs/
  22. docserverk/
  23. dot/
  24. ds/
  25. external/
  26. fiddlek/
  27. firestore/
  28. get_service_account/
  29. git_cookie_authdaemon/
  30. gitsync/
  31. go/
  32. gold-client/
  33. golden/
  34. hashtag/
  35. html-template-minifier/
  36. infra/
  37. infra-sk/
  38. jsdoc/
  39. jsfiddle/
  40. k8s-checker/
  41. kube/
  42. leasing/
  43. licenses/
  44. machine/
  45. make/
  46. modules/
  47. named-fiddles/
  48. new_element/
  49. particles/
  50. perdiff/
  51. perf/
  52. periodic-trigger/
  53. power/
  54. proberk/
  55. promk/
  56. pulld/
  57. puppeteer-tests/
  58. push/
  59. scrap/
  60. scripts/
  61. shaders/
  62. sk8s/
  63. skbug/
  64. skfe/
  65. skolo/
  66. skottie/
  67. status/
  68. task_driver/
  69. task_scheduler/
  70. tools/
  71. tree_status/
  72. trybot_updater/
  73. velero/
  74. .bazelignore
  75. .bazelrc
  76. .eslintrc.js
  77. .gitattributes
  78. .gitignore
  79. .mocharc.json
  80. BUILD.bazel
  81. build_infra_prod.sh
  82. cipd.ensure
  83. codereview.settings
  84. DATASTORE.md
  85. DEPS
  86. go.mod
  87. go.sum
  88. go_repositories.bzl
  89. launch.md
  90. LICENSE
  91. Makefile
  92. package-lock.json
  93. package.json
  94. PRESUBMIT.py
  95. PRIVACY_POLICY.md
  96. README.md
  97. run_unittests
  98. run_unittests.go
  99. STYLEGUIDE.md
  100. tools.go
  101. tsconfig.json
  102. whitespace.txt
  103. WORKSPACE
README.md

Skia-Buildbot Repository

This repo contains infrastructure code for Skia.

Getting the Source Code

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

Using go get will fetch the repository into your GOPATH directory along with all the Go dependencies. You will need to set GOPATH and GO111MODULE=on. E.g.:

$ export GOPATH=${WORKDIR}
$ export GO111MODULE=on
$ go get -u -t go.skia.org/infra/...
$ cd ${GOPATH}/src/go.skia.org/infra/

Note: go.skia.org is a custom import path and will only work if used like the examples here.

Install Node.js (not as root) and add the bin dir to your path. Optionally run npm install npm -g, as suggested by the npm getting started doc.

Install other dependencies:

$ sudo apt-get install python-django
$ go get -u github.com/kisielk/errcheck \
  golang.org/x/tools/cmd/goimports \
  go.chromium.org/luci/client/cmd/isolate

Build ~everything:

$ make all

Generated Code

Some code is generated using go generate with external binaries. First, install the version of protoc referenced in the asset creation script and ensure it is on your PATH before other versions of protoc.

Install the necessary go packages:

$ go get -u \
  github.com/golang/protobuf/protoc-gen-go \
  golang.org/x/tools/cmd/stringer \
  google.golang.org/grpc \

Get mockery and add it to your PATH.

To generate code run in this directory:

$ go generate ./...

Running unit tests

Install Cloud SDK.

Use this command to run the presubmit tests:

$ ./run_unittests --small