Remove upsync script

BUG=chromium:951053
TEST=None

Change-Id: I85be18c6887496e495df1e5ad8a32c8d2498467e
Reviewed-on: https://chromium-review.googlesource.com/1599415
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
4 files changed
tree: 46531415e37d9c7e0e9c1cbf02a64474d2d1833a
  1. bin/
  2. go/
  3. protos/
  4. venv/
  5. .gitignore
  6. COMMIT-QUEUE.ini
  7. PRESUBMIT.cfg
  8. README.md
README.md

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