Clone this repo:
  1. 18a5f17 Add validation methods and dump_proto_message methods. by Ningning Xia · 26 minutes ago master
  2. 952d459 skylab: add option to upsync service to disable the server_db sync by Shuqian Zhao · 23 hours ago
  3. 7045054 skylab: move server_db_sync to infra/skylab_inventory by Shuqian Zhao · 7 days ago
  4. 1801e9c Move common contants and methods to translation_utils by Ningning Xia · 7 days ago
  5. a6b021f Remove and change bin/check_proto_bindings by Ningning Xia · 7 days ago

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

Then, regenerated the libraries:

$ cd protos
$ protoc --python_out=../venv/skylab_inventory/protos/ *.proto