commit | 97ee9cecaac4d99be09278169f987e61b8116672 | [log] [tgz] |
---|---|---|
author | Kevin Chowski <chowski@google.com> | Thu Apr 01 18:56:27 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 01 18:56:27 2021 |
tree | 2e8a2b7bd014a62ecda307c09230fb2bf0e0c0ad | |
parent | 9c6764f5570693597642a025b73b231a7306b905 [diff] |
Pinpoint: introduce fakelegacy-based smoke test. The test relies on using a local infra dev environment to compile the gRPC server, CLI, and fakelegacy service. The fakelegacy and gRPC service are started, with the latter pointing at the former, and each flow executes the CLI and inspects the output. The fakelegacy server only supports getting, listing, and starting jobs, so those flows are tested here. Output inspection on the CLI is a bit rough since it's human-readable, mostly unstructured output. In the future, if the CLI gains a -json flag or some other more structured output format, this code can be revisited for the better. Change-Id: I8bf8b13b24d244855f065b5e6613e5058f0b222a Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2794926 Commit-Queue: Kevin Chowski <chowski@google.com> Reviewed-by: Dean Berris <dberris@chromium.org> Cr-Commit-Position: refs/heads/master@{#39845}
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.