commit | 512ebc4ecf98f2b7b8de05c3cd9d68cc0054d4e7 | [log] [tgz] |
---|---|---|
author | Frank Borden <frankborden@google.com> | Wed Jan 25 16:21:40 2023 +0100 |
committer | Frank Borden <frankborden@google.com> | Fri Jan 27 11:52:43 2023 +0100 |
tree | c877d69930d33a6181b17b216e0dbff5b16dfd6a | |
parent | 38c1dbf01738d52b0ae4a89f367e972e2f74089a [diff] |
Refactor repo and add README - Each repo's config is moved to it's own .star file. - unify indentation (2 spaces) - remove luci-test "ci" stuff, focusing on "try" work Change-Id: I357d874e4d8dc6a113c4a54654615bae307ab313
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
- Due to an ongoing migration, the recipes.py
script still relies on python 2.7, but the recipes themselves are written for python 3.Regenerate config data after making changes (lucicfg):
$ ./main.star
Run recipe tests (python 2.7):
$ python recipes/recipes.py test run
Update recipe test goldens (python 2.7):
$ python recipes/recipes.py test train