Clone this repo:
  1. 6d412fc Add API to remove dut uids from a server. by Ningning Xia · 12 days ago master
  2. 5642a36 Support updating host environment. by Ningning Xia · 12 days ago
  3. fb65da0 Add API to add device uids to a server. by Ningning Xia · 12 days ago
  4. b442f4f Add Go Pre-CQ coverage by Allen Li · 2 weeks ago firmware-nami-10775.B
  5. fa1b33c Verify hosts don't exist in destination before migration. by Ningning Xia · 3 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):

cd protos
protoc --python_out=../venv/skylab_inventory/protos/ *.proto
protoc --go_out=../go/src/chromiumos/infra/skylab/inventory/protos/ *.proto