commit | bbe044132a0799327a201744706e33e1e376e6f3 | [log] [tgz] |
---|---|---|
author | Andrii Shyshkalov <tandrii@chromium.org> | Wed Mar 08 15:54:36 2017 |
committer | Andrii Shyshkalov <tandrii@chromium.org> | Wed Mar 08 15:54:36 2017 |
tree | 5c592c14df4ab9a1b37911b4d8e4ddb9a8a42cda | |
parent | 9a29d843df49e6e470dfde9e64db13018f799342 [diff] |
Add gerrit_cq_ability verifier. TBR=sergiyb@chromium.org BUG=692613 NOTRY=True Change-Id: I84b044cb00363ba9892bf5902fcedfffdb80d229
https://goto.google.com/chrome-simple-ci
Contact tandrii@{chromium.org,google.com}
first, though the rest of steps should be doable without his involvement.
Create new repository in Gerrit, but you already have it, don't you?
Register it in luci-config - ask infra. Example: https://chrome-internal-review.googlesource.com/#/c/262666/
(Public repos only) Mark your repo as such:
git checkout --orphan infra/config wget https://chromium.googlesource.com/infra/infra.git/+/infra/config/project.cfg git add project.cfg && git commit -m "Mark this repo public" git push origin infra/config git checkout master # Go back to familiar branch.
Get basic setup for your Gerrit codereview patches auto-tested:
git checkout master mkdir infra/config && cd infra/config wget https://chromium.googlesource.com/playground/gerrit-cq/simple-ci/+/master/infra/config/ci.cfg wget https://chromium.googlesource.com/playground/gerrit-cq/simple-ci/+/master/infra/config/cq.cfg
Now customize cq.cfg
and ci.cfg
, and land the change.
Note: it takes up to 40 minutes for this change to become active. So, do next step while you are waiting.
Ask your Gerrit admin to:
On the Gerrit host itself, make sure CQ bot account commit-bot@chromium.org
exists, and has a corresponding group. Then use that group in the following step. Note, adding bot account is non-trivial, see (internal only, sorry) http://go/gob-docs.
On the project itself:
chrome-commit-bot
group -1..+1
voting rights on refs/heads/master
Commit-Queue
0..1
on refs/heads/master
Point your Gerrit admin to this example: https://chromium.googlesource.com/playground/gerrit-cq/simple-ci/+/refs/meta/config
(If your repo is private, and you will use our machines to actually run tests) We need to make sure our bots can access your repository. For https://chrome-internal.googlesource.com/
it's already done, but for other hosts, contact chrome-infra@
.
Upload your next CL and vote on Commit-Queue label +1.