commit | 5c6ea9eccc85d1d34ca2b315ab99067a218e25b7 | [log] [tgz] |
---|---|---|
author | Derek Beckett <dbeckett@chromium.org> | Mon Feb 12 17:07:42 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 12 17:07:42 2024 |
tree | 902d71b25cca63a655efc7ec7b3935c3f78cb761 | |
parent | f41bc6c3dabb7b7c9b83161e332950a6ee88c53b [diff] |
CTPv2: Backwards compatibility, proto updates - Backwards compatibility implementation. TLDR --> Use test-finder if the filter doesnt exist. Use prod containers for the other as those are not build specific. - update the container proto to use the non-deprecated field - general updates around filter construction - some unittests BUG=None TEST=unit+led Change-Id: I96dd12e15937f567ec9cb42d1c0662c6f22a3875 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/5278273 Auto-Submit: Derek Beckett <dbeckett@chromium.org> Commit-Queue: Derek Beckett <dbeckett@chromium.org> Reviewed-by: Jaques Clapauch <jaquesc@google.com> Cr-Commit-Position: refs/heads/main@{#63060}
Welcome to the Chrome Infra repository!
Wondering where to start? Check out General Chrome Infrastructure documentation. In particular, to check out this repo and the rest of the infrastructure code, follow the instructions here. The rest of this page is specific to this repo.
sys.path
modifications.git push origin <updated hash>:deployed
git push
commandIf you've added a new module, run your tests with test.py:
*_test.py
files to this directory.Double-check that your tests are getting picked up when you want them to be: ./test.py test <path-to-package>
.
Tests still not getting picked up by test.py? Double-check to make sure you have __init__.py
files in each directory of your module so Python recognizes it as a package.
The preferred style is PEP8 with two-space indent; that is, the Chromium Python style, except functions use lowercase_with_underscores
. Use yapf (git cl format
) to autoformat new code.