commit | 910054c8f1819dcbe93de5a374ad5ebc98d68430 | [log] [tgz] |
---|---|---|
author | Haiyang Pan <hypan@google.com> | Thu Jan 07 17:22:39 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 07 17:22:39 2021 |
tree | 1bc79e6a1f86cfe117b0c0d044fbc3fafe293eef | |
parent | af414e6a26a8e94d3f2c9833455c2facb347a960 [diff] |
Update "tool" and "dep" of 3pp packages to the new format. This CL should be landed together with crrev.com/c/2528117. With the crrev.com/c/2528117, the "tool" and "dep" in PB need to be changed to the format <pkg_prefix>/<pkg_name>, rather than the original <pkg_name>. Other changes are: * In tools/re2c/3pp.pb, the URL now points to "download" rather than "archive", otherwise the install.sh won't work correctly. (static_libs/nsl/3pp.pb has a similar issue, but it doesn't have "download" link for the current version 1.0.3). * Copied "cpython_common/ssl_suffix.py" to "cpython" and "cpython3". Due to the change in "copy package definition" in support_3pp/source.py in crrev.com/c/2528117, cpython_common cannot be accessed by cpython and cpython3 when running install.sh. * Fixed "run_remotely.sh" script to work with latest LED, and runs on bots with dimension "role=docker" which have "docker" binary. Bug: 1152854, 1082598 Change-Id: Ifd96eecf5da820ebb52a24c508f9561d5025c32e Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2570530 Commit-Queue: Haiyang Pan <hypan@google.com> Reviewed-by: Brian Ryner <bryner@google.com> Cr-Commit-Position: refs/heads/master@{#37375}
Testing 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.from infra.path_hacks.common import <stg>
is actually getting <stg>
from build/scripts/common.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.