Clone this repo:
  1. 58dd37e protos: Add reference_design SchedulableLabel by Prathmesh Prabhu · 3 days ago master
  2. 7ba74f2 Ignore empty values for dimension labels by Allen Li · 3 days ago
  3. bbf1272 README: Regenerate proto bindings inside the chroot by Prathmesh Prabhu · 3 days ago
  4. 76dd7b5 examples: Add a script to print DUT IDs. by Prathmesh Prabhu · 4 days ago
  5. e1f5a33 Delete print_dut_host_info by Allen Li · 2 weeks ago

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):

cros_sdk
(cr) cd ~/trunk/infra/skylab_inventory/protos
(cr) protoc --python_out=../venv/skylab_inventory/protos/ *.proto
(cr) protoc --go_out=../go/src/chromiumos/infra/skylab/inventory/protos/ *.proto