Clone this repo:
  1. 9ec4792 skylab_inventory tools: restore translation_utils.py from symlink to file by Xixuan Wu · 3 months ago main release-R89-13729.B stabilize-13729.16.B stabilize-13729.45.B stabilize-13729.49.B stabilize-13729.56.B stabilize-13729.57.B stabilize-13729.72.B stabilize-quickfix-13729.60.B stabilize-quickfix-13729.73.B stabilize-quickfix-13729.84.B
  2. 32c86ba skylab_inventory tools: clean up host-related logic (part 4) by Xixuan Wu · 3 months ago
  3. 9c8232b skylab_inventory tools: clean up chromite & venv/autotest (part 3) by Xixuan Wu · 3 months ago
  4. 539fc21 skylab_inventory tools: clean up dependencies for chromite (part 2) by Xixuan Wu · 3 months ago
  5. ea6c44b skylab_inventory tools: clean up scripts (part 1) by Xixuan Wu · 3 months 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