Clone this repo:
  1. 47a7495 Remove now unused scripts by Allen Li · 3 weeks ago master release-R75-12105.B stabilize-12054.B stabilize-12058.B stabilize-12060.B stabilize-12061.B stabilize-12088.B stabilize-12121.B stabilize-flapjack-12109.B
  2. a0f2120 Revert "skylab-inventory-mon: consider chromeos1- servers to be prod" by Aviv Keshet · 4 weeks ago factory-sarien-12033.B
  3. 502f2a2 Remove list_duts_for_drone by Allen Li · 4 weeks ago
  4. bbefb2b Remove DUT environment filtering by Allen Li · 4 weeks ago
  5. 60c444d Import protos by Allen Li · 4 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 inside the 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