<html><body>
<pre>[ https://ovirt-jira.atlassian.net/browse/OVIRT-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]</pre>
<h3>Barak Korren updated OVIRT-1852:</h3>
<pre>Epic Link: OVIRT-400</pre>
<blockquote><h3>Make change-queue handle continues steaks of failed patches together</h3>
<pre>     Key: OVIRT-1852
     URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1852
 Project: oVirt - virtualization made easy
         Issue Type: Improvement
         Components: Change Queue
Reporter: Barak Korren
Assignee: infra</pre>
<p>Lets assume we have a change queue testing projects &lsquo;a&rsquo; and &lsquo;b&rsquo; where patches had been submitted in the following order (from left to right): a1 a2 a3 a4 b1 a5 Lets further assume that a1 and b2 both introduced regressions to their respective projects, and a5 fixed the regression for project &lsquo;a&rsquo;. When running with all changes the CQ test will fail, and it will then run the bisection process testing the following sets of changes (where all tests will fail): a1 a2 a3 a1 &lt;- a1 will be removed from the queue following this a2 a3 a4 b1 a5 a2 a3 a2 &lt;- a2 will be removed from the queue following this a3 a4 b1 a5 a3 a4 a3 &lt;- a3 will be removed from the queue following this a4 b1 a5 a4 &lt;- a4 will be removed from the queue following this b1 a5 b1 &lt;- b1 will be removed from the queue following this a5 &lt;- This run will finally succeed letting the build of &lsquo;a&rsquo; go the &lsquo;tested&rsquo;. As we can see for the case described we will need 14 test runs to clear the queue and find a stable state. We can optimize this using the fact that change queue can track individual projects as change streams, and furthermore, the queue knows in every point in time which change streams exhibited failure so far. What we can do is when calculating a bisection, check if the 1st change in the queue belongs to a know failing project, at this point test it individually rather then performing a bisection of the full queue. With the starting conditions as described above, the sets of changes being tested would be: a1 a2 a3 a4 b1 a5 a1 a2 a3 &lt;- We are starting a normal bisection here because at this point there is</p>
<pre>not yet any knowledge about the failures in 'a'</pre>
<p>a1 &lt;- a1 will be removed and the failure in &lsquo;a&rsquo; will be recorded a2 a3 a4 b1 a5 a2 &lt;- Now the mechanism described above kicks in and a3 is tested alone</p>
<pre>and removed</pre>
<p>a3 a4 b1 a5 a3 &lt;- Same mechanism now causes a2 to be tested alone a4 b1 a5 a4 &lt;- a4 will be removed from the queue following this b1 a5 b1 &lt;- b1 will be removed from the queue following this a5 &lt;- This run will finally succeed letting the build of &lsquo;a&rsquo; go the &lsquo;tested&rsquo;. So a total of 12 test runs &ndash; we save 2 test runs,. This can be significant in terms of time saving and more runs an be saved the more failing patches we have.</p></blockquote>
<p>&mdash; This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100076)</p>

<img src="https://u4043402.ct.sendgrid.net/wf/open?upn=i5TMWGV99amJbNxJpSp2-2BJ33BSM3tuiUfRTk64K-2BOjGpF-2BuMzoJRRB1ifzZIErtIxTccLy521zz7OxZViB5mnpbbwYJFz6flgevXOzUJVH-2FqBqvcqqqKIp3p4OcyDFOsRwvaLk1r7X8JpLEbbYtQ-2F8se-2FAoG3NqMy6MEF960fM4WCfArIPipDAxV3I9QtDxwIZkeNWD9yApPsdJra3V4NT7hIOoTif46hN9A2Na-2BIseHngSSOzrSPo87Xs5dlTOp-2By8eg5sbFMALjOfwvkT0pL-2B7-2BmT9g6Z9ObG-2FVvtHzMFNfNxMX7erjSQQx-2Fpob6L1cc1-2Fs7uA4I3-2BAF-2BEA0zvjfC-2FwqZWtirPvZPk4RBlDoEZTd2t-2BY-2FJng6zwUMe0nEIebwWE-2F2T-2FgEXq6ruq2-2FGk-2Bdp-2FCNxewe4OmpzBtix1z8shx0rm72A-2F4aDIhWcAXoc" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>