commit | 7045054cec2c7deac7679ef0d5a04588fc21eb37 | [log] [tgz] |
---|---|---|
author | Shuqian Zhao <shuqianz@chromium.org> | Wed Apr 11 18:30:37 2018 |
committer | chrome-bot <chrome-bot@chromium.org> | Sat Apr 14 04:37:31 2018 |
tree | f7b0b33461cd8c405c74eee3bc23598ca8b0acb6 | |
parent | 1801e9cd3ed779f26a86b0300a6dfda67bc40e07 [diff] |
skylab: move server_db_sync to infra/skylab_inventory infra/skylab_inventory stores all the scripts and libs used for skylab. This CL moves the server_db_sync script to this repo and teaches it to read from the local git file to load the skylab server data. BUG=chromium:826500 TEST=unittest Change-Id: I91c6cec6037bb1579f417f27c6a73757dc8a8eec Reviewed-on: https://chromium-review.googlesource.com/1006220 Commit-Ready: Shuqian Zhao <shuqianz@chromium.org> Tested-by: Shuqian Zhao <shuqianz@chromium.org> Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
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