commit | 8f57f596a0b6cf5bc7735f81d0183658777815ee | [log] [tgz] |
---|---|---|
author | Frank Borden <frankborden@google.com> | Wed Apr 12 15:55:41 2023 +0200 |
committer | Frank Borden <frankborden@google.com> | Wed Apr 12 16:19:35 2023 +0200 |
tree | 651e197ef2e85b1760642e586f10b9cf81f8a106 | |
parent | 6f6b4636e1a65547ab5974e5ca309f1990bd149b [diff] |
Use location_filter to skip non-polygerrit changes Before, backend-only changes were skipped in the recipe itself by requesting the file list via Gerrit API and returning success status if no files were under polygerrit-ui/ However, with our planned usage of https://chromium.googlesource.com/infra/luci/luci-go/+/refs/heads/main/lucicfg/doc/#cq.post-action-gerrit-label-votes, LUCI would vote +1 in these "skip" cases due to success status. Switching "skip"-decision behavior to cq_tryjob_verifier will let it skip BE-only changes without voting. Change-Id: I5364a03d75b3923f76f3c15e39875e9b72b4e96e
This repo holds all the configuration for LUCI, the CI system Gerrit uses. You can find recent verification runs and logs at https://ci.chromium.org/ui/p/gerrit/builders.
Recipe
: a python script to verify a change, and a test for that verificationBuilder
: a recipe configured to run on a specific machine typeCQ Group
: a watcher that triggers on new votes/patchsets on the specified repo+refsCQ Tryjob Verifier
: combines a CQ group with a builder to run a recipe when a new vote or patchset comes in/main.star
: overall starlark configuration for the entire host. It is also executable to generate the config data/repos/*.star
: repo-specific starlark configuration for builders, CQ groups, CQ tryjob verifiers, etc/recipes/recipes/*.py
: recipes for testing a change based on the repo/recipes/recipes.py
: executes recipe tests and compares/generates expected JSON goldens. 100% coverage is expected./recipes/recipe_modules/
: dependencies shared by modules/recipes/*.expected/*.json
: expected commands executed by the recipe/infra/config/recipes.cfg
: versions and URLs of external recipe dependencieslucicfg
- CLI tool to generate the configuration from the starlark scripts. To install, clone depot_tools.python
- Python 3, used to execute recipes.Regenerate config data after making changes (lucicfg):
$ ./main.star
Run recipe tests (python):
$ recipes/recipes.py test run
Update recipe test goldens (python):
$ recipes/recipes.py test train