Clone this repo:
  1. 8c18a16 Improve commit message for upsync by Allen Li · 13 days ago master
  2. 5a1a07c skylab-inventory-mon: add DUT count metric by Alex Zamorzaev · 3 weeks ago firmware-kalista-11343.B release-R72-11316.B stabilize-11306.B
  3. b7f473e Remove verbose log message by Allen Li · 6 weeks ago factory-rammus-11289.B firmware-octopus-11297.B firmware-rammus-11275.B
  4. b246911 protos: Add a new server role ROLE_RPMSERVER by Prathmesh Prabhu · 6 weeks ago
  5. 06a3a84 Document interval restrictions by Allen Li · 3 months ago factory-grunt-11164.B release-R71-11151.B stabilize-11151.59.B stabilize-11217.B stabilize-atlas-11177.B

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