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>
4 files changed
tree: e19e69b630060558056acacbf2dd130eb00e1aa4
  1. bin/
  2. go/
  3. protos/
  4. venv/
  5. .gitignore
  6. COMMIT-QUEUE.ini
  7. PRESUBMIT.cfg
  8. README.md
README.md

Skylab inventory

Updating inventory schema

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