playground/gerrit-tricium repo inheriting more than it needs from infra/infra |
|||
Issue descriptionFor some reason submit via CQ appears on my experimental tricium repo, https://chromium.googlesource.com/playground/gerrit-tricium. I got a warning about the infra project having CQ enabled when I was submitting https://chromium-review.googlesource.com/c/549325/
,
Jun 27 2017
You set your repo to inherit settings from infra/infra (which you shouldn't do, btw -- only inherit from "parent" projects like infra, not "leaf" projects like infra/infra). That means that you get all the same settings as your parent project: same labels, same plugin configs, everything. So you have the CQ label, and you have chumpdetector telling you to not to skip the CQ. There are a few appropriate fixes here: 1) Make it inherit from infra, and then add config to your leaf project to disable the CQ label and chumpdetector (I can show you how to do this if you like) 2) Make it inherit from infra, and give it a real CQ 3) Make it inherit from something else appropriately experimental, like the 'playground' parent repo, and then just add the ACLs you need As a git admin, I'll leave the resolution up to you :)
,
Jun 28 2017
Thanks! New area for me and I didn't set this up. I'll poke around in there and probably go for option 3 :)
,
Jun 28 2017
After more consideration, I'll go with option 1. How do I disable the CQ label?
,
Jun 28 2017
Disable the CQ label with a change like this: https://chromium.googlesource.com/infra/gerrit-plugins/+/6ebbf202f7e81cc2d016e235fbd20f0978d6508c Disable the chumpdetector from complaining about you not using the CQ with a file like this: https://chromium.googlesource.com/infra/gerrit-plugins/+/c36fec2133d174125325e00c3c95ed911a4326f2/chumpdetector.config
,
Jun 28 2017
I guess links to the files at HEAD are more useful: https://chromium.googlesource.com/infra/gerrit-plugins/+/refs/meta/config/chumpdetector.config https://chromium.googlesource.com/infra/gerrit-plugins/+/refs/meta/config/project.config#7
,
Jun 30 2017
Edited project.config via https://chromium-review.googlesource.com/c/557801/ didn't manage to checkout refs/meta/config on a local branch. How do I get this setup?
,
Jun 30 2017
$ mkdir /tmp/meta/myrepo $ cd /tmp/meta/myrepo $ git init $ git remote add origin https://chromium.googlesource.com/myrepo $ git config remote.origin.fetch +refs/meta/config:refs/remotes/origin/refs/meta/config $ git fetch origin $ git checkout origin/refs/meta/config $ # edit and commit $ git push origin HEAD:refs/for/refs/meta/config
,
Aug 15 2017
Thanks Aaron!
,
Aug 15 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by tandrii@chromium.org
, Jun 27 2017