<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 20, 2016 at 9:18 PM, Sandro Bonazzola <span dir="ltr"><<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p>
<p dir="ltr">Il 20/Nov/2016 15:08, "Barak Korren" <<a href="mailto:bkorren@redhat.com" target="_blank">bkorren@redhat.com</a>> ha scritto:<br>
><br>
> Hi there,<br>
><br>
> I would like to address a concernt that had been raised to us by<br>
> multiple developers, and reach an agreement on how (and if) to remedy<br>
> it.<br>
><br>
> Lets assume the following situation:<br>
> We have a Git repo in Gerrit with top commit C0 in master.<br>
> On time t0 developers Alice and Bob push patches P1 and P2 respectively<br>
> to master so that we end up with the following situation in git:<br>
> C0 <= P1 (this is Alice`s patch)<br>
> C0 <= P2 (this is Bob`s patch)<br>
><br>
> On time t1 CI runs for both patches checking the code as it looks for<br>
> each patch. Lets assume CI is successful for both.<br>
><br>
> On time t2 Alice submits her patch and Gerrit merges it, resulting in<br>
> the following situation in master:<br>
> C0 <= P1<br>
><br>
> On time t2 Bob submits his patch. Gerrit, seeing master has changed,<br>
> re-bases the patch and merges it, the resulting situation (If the<br>
> rebase is successful) is:<br>
> C0 <= P1 <= P2<br>
><br>
> This means that the resulting code was never tested in CI. This, in<br>
> turn, causes various failures to show up post-merge despite having<br>
> pre-merge CI run successfully.<br>
><br>
> This situation is a result of the way our repos are currently<br>
> configured. Most repos ATM are configured with the "Rebase If<br>
> Necessary" submit type. This means that Gerrit tries to automatically<br>
> rebase patches as mentioned in t2 above.<br>
><br>
> We could, instead, configure the repos to use the "Fast Forward Only"<br>
> submit type. In that case, when Bob submits on t2, Gerrit refuses to<br>
> merge and asks Bob to rebase (While offering a convenient button to do<br>
> it). When he does, a new patch set gets pushed, and subsequently<br>
> checked by CI.<br>
><br>
> I recommend we switch all projects to use the "Fast Forward Only" submit type.<br>
><br>
> Thoughts? Concerns?<br></p></blockquote><div><br><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">AFAIR this was enabled for ovirt-engine project in the past and it was pretty impossible to merge any patch with CI+1 when some important dates were near (like feature freeze), because all maintainer tried to merge patches and waited for CI to finish. Personally I'd say that current status is OK, because it's a responsibility of a maintainer to check CI results of a patch that he/she merged (and if error is raised then investigate the issue and post a fix asap if needed).<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">So "Fast Forward Only" could successfully works for smaller projects, but I don't think it will work for big projects like engine or vdsm.<br><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"></p>
<p dir="ltr">+1 for me<span class="HOEnZb"><font color="#888888"><br></font></span></p><span class="HOEnZb"><font color="#888888">
<p dir="ltr">><br>
> --<br>
> Barak Korren<br>
> <a href="mailto:bkorren@redhat.com" target="_blank">bkorren@redhat.com</a><br>
> RHEV-CI Team<br>
> ______________________________<wbr>_________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/devel" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br></p>
</font></span><br>______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br></blockquote></div><br></div></div>