[ovirt-devel] Merge gating in Gerrit

Yedidyah Bar David didi at redhat.com
Sun Nov 20 15:39:30 UTC 2016


On Sun, Nov 20, 2016 at 5:06 PM, Barak Korren <bkorren at redhat.com> wrote:
> Hi all,
>
> Perhaps the main purpose of CI, is to prevent braking code from
> getting merged into the stable/master branches. Unfortunately our CI
> is not there yet, and one of the reasons for that is that we do large
> amount of our CI tests only _after_ the code is merged.
>
> The reason for that is that when balancing through, but time
> consuming, tests (e.g. enging build with all permutations) v.s. faster
> but more basic ones (e.g. "findbugs" and single permutation build), we
> typically choose the faster tests to be run per-patch-set and leave
> the through testing to only be run post-merge.
>
> We'd like to change that and have the through tests also run before
> merge. Ideally we would like to just hook stuff to the "submit"
> button, but Gerrit doesn't allow one to do that easily. So instead
> we'll need to adopt some kind of flag to indicate we want to submit
> and have Jenkins
> "click" the submit button on our behalf if tests pass.
>
> I see two options here:
> 1. Use Code-Review+2 as the indicator to run "heavy" CI and merge.
> 2. Add an "approve" flag that maintainers can set to +1 (This is
>    what OpenStack is doing).
>
> What would you prefer?

(2.), and call it "Run heavy CI tests", and only do this and not
merge, so that one can ask to run these tests prior to merging.
-- 
Didi



More information about the Devel mailing list