commit | ad6c4347d921eac7733818b2f258b9baaf1ba8fe | [log] [tgz] |
---|---|---|
author | Allen Li <ayatane@chromium.org> | Fri Jun 02 22:31:30 2023 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 02 22:31:30 2023 |
tree | a67046f692d61e99f67487f7cb2f100c1d4bf7c3 | |
parent | 83c9526ede69220f9df4a4e2e93be94a55b48ebb [diff] |
drone-agent: Add config file drone-agent is accumulating too many settings (and we need to add megadrone now). Migrate to a config file (with backward compat support so we can rollout). BUG=b:279830861 Change-Id: I86415d03221035ff102680169ff3ac90d2a3c38c Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/4575340 Auto-Submit: Allen Li <ayatane@chromium.org> Reviewed-by: Bryan Ni <bniche@google.com> Commit-Queue: Allen Li <ayatane@chromium.org> Cr-Commit-Position: refs/heads/main@{#57177}
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.