commit | a58f7db8162b32831c375673f71fc6c6166cfb79 | [log] [tgz] |
---|---|---|
author | Garrett Beaty <gbeaty@chromium.org> | Thu Jun 20 16:34:03 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 20 16:34:03 2024 |
tree | c4302d798b76f4424c991cf60b23b416aba39547 | |
parent | fde8b3bf54b20fc5fcd04e29aaab2d944804c86e [diff] |
Avoid joining None to Path. Currently the recipes Path type allows for a None to be joined to the path, which just gets ignored. This is in contrast to the python pathlib Path type, which raises an error. In order to update the recipes Path type to have the same behavior, existing code needs to avoid joining None to a Path. Bug: 329113288 Change-Id: I558a71b25c340599ee1489a89ac8a5f0a47da4e1 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/5641086 Reviewed-by: Ben Pastene <bpastene@chromium.org> Commit-Queue: Garrett Beaty <gbeaty@google.com> Cr-Commit-Position: refs/heads/main@{#66315}
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.