You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/third_party/cq_client
machenbach@chromium.org c1bb56e730 Roll CQ client changes 7d916d5..f59ed9f
BUG=chromium:561530

Review URL: https://codereview.chromium.org/1490473004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@297753 0039d316-1c4b-4281-b951-d872f2087c98
10 years ago
..
test Roll CQ client changes 7d916d5..f59ed9f 10 years ago
OWNERS Added CQ team as OWNERS for CQ-related stuff in depot_tools 10 years ago
README.md Roll CQ client changes f5de663..7d916d5 10 years ago
__init__.py Added tools to retrieve CQ builders from a CQ config 10 years ago
cq.pb.go Roll CQ client changes 7d916d5..f59ed9f 10 years ago
cq.proto Roll CQ client changes 7d916d5..f59ed9f 10 years ago
cq_pb2.py Roll CQ client changes 7d916d5..f59ed9f 10 years ago
validate_config.py Updated cq_client 10 years ago

README.md

This directory contains CQ client library to be distributed to other repos. If you need to modify some files in this directory, please make sure that you are changing the canonical version of the source code and not one of the copies, which should only be updated as a whole using Glyco (when available, see chromium issue 489420).

The canonical version is located at https://chrome-internal.googlesource.com/ infra/infra_internal/+/master/commit_queue/cq_client.

You'll need to use protoc version 2.6.1 and recent golang/protobuf package. Sadly, the latter has neither tags nor versions.

You can get protobuf by downloading archive from https://github.com/google/protobuf/tree/v2.6.1 and manually building it. As for golang compiler, if you have go configured, just

go get -u github.com/golang/protobuf/{proto,protoc-gen-go}

TODO(tandrii,sergiyb): decide how to pin the go protobuf generator.

To generate cq_pb2.py and cq.pb.go:

cd commit_queue/cq_client
protoc cq.proto --python_out $(pwd) --go_out $(pwd)

Additionally, please make sure to use proto3-compatible syntax, e.g. no default values, no required fields. Ideally, we should use proto3 generator already, however alpha version thereof is still unstable.