commit | ccb4b1ea23a77e020c5d02ad47ddb0e4a207ab8d | [log] [tgz] |
---|---|---|
author | Eshwar Narayan <eshwarn@google.com> | Thu Mar 18 15:35:12 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 18 15:35:12 2021 |
tree | eb350129d7dcb8d928b9275bd6b180f6c3c0d959 | |
parent | 8e6c2abe3742b17708cb5e0b2e812a375304c898 [diff] |
UFS: use machine instead of device config for labels In InvV2 this data was read from Labconfig table https://source.corp.google.com/chops_infra_internal/infra/go/src/infra/appengine/cros/lab_inventory/api/v1/exporting_adapter.go;l=395 https://source.corp.google.com/chromeos_public/infra/proto/src/lab/device.proto;l=26 In UFS, it is currently read from Devconfig table. This CL changes this and reads data from Machine table(making it same as InvV2). Bug: 1188488 Test: make test Change-Id: I7d9b8ab93377830bd741002fd52943419c7d8b78 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2770043 Commit-Queue: Eshwar Narayan <eshwarn@chromium.org> Reviewed-by: Otabek Kasimov <otabek@google.com> Reviewed-by: Xixuan Wu <xixuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#39482}
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.