commit | aaaf165575fedd5a6a065cd5ee51e0009a9df238 | [log] [tgz] |
---|---|---|
author | Gregory NISBET <gregorynisbet@google.com> | Wed Jun 12 21:40:34 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 12 21:40:34 2024 |
tree | 9e8fd4db912e239edaab219334442b5391b4fa14 | |
parent | 48c1db8242f35360a50d8a2f6b9a607948167aa9 [diff] |
[fleetcost] Enable fleet-cost-dev to dump to BigQuery This CL fixes a few problems: 1) we allow the command line tool to trigger non-readonly jobs 2) fix the name of the table to adhere to BigQuery naming conventions 3) add slightly more logging to make local debugging easier We can now dump to the dev table, it's quite nice. BUG=321105253 TEST=make test Change-Id: I0cbdbb9f4d2e468fbadbd954f31d0bcf2a313793 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/5624292 Commit-Queue: Gregory Nisbet <gregorynisbet@google.com> Reviewed-by: Garry Wang <xianuowang@chromium.org> Cr-Commit-Position: refs/heads/main@{#66177}
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.