commit | 43bd5b7fe8caf6fd63991ae08fc36b80adbbdf47 | [log] [tgz] |
---|---|---|
author | Prathmesh Prabhu <pprabhu@chromium.org> | Fri Aug 31 20:54:56 2018 |
committer | Prathmesh Prabhu <pprabhu@chromium.org> | Fri Aug 31 23:58:57 2018 |
tree | e19e69b630060558056acacbf2dd130eb00e1aa4 | |
parent | d05ac8f0c0335068ac762ae4cbd221fc4b732a4d [diff] |
examples: Add a script to print unsupported labels & attributes Not all autotest labels and attributes are supported in Skylab. This tool allows us to print unsupported labels and attributes for a DUT, thereby helping me the decision to drop the old information about the DUT in the AFE database. BUG=chromium:871978 TEST=manual Change-Id: I43dc953329514806b4da0865776aaf099c905aeb Reviewed-on: https://chromium-review.googlesource.com/1199461 Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org> Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org> Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Inventory schema is stored as protobuf definitions in the proto/ directory. When you update these protobuf definitions, you must also update the generated python libraries for them.
You need the protoc compiler for this. On gLinux:
sudo apt-get install protobuf-compiler go get github.com/golang/protobuf/protoc-gen-go
Then, regenerate the libraries (must be done outside chroot):
cd protos protoc --python_out=../venv/skylab_inventory/protos/ *.proto protoc --go_out=../go/src/chromiumos/infra/skylab/inventory/protos/ *.proto