<div dir="ltr">Hi,<div>I am not sure what is the current status of elastic, but we should use again elastic-recheck, keep the bug definitions up-to-date and dedicate time to keep it alive.</div><div>From the zuul status page at least it seems it has fresh data:</div><div><a href="http://status.openstack.org/elastic-recheck/data/integrated_gate.html">http://status.openstack.org/elastic-recheck/data/integrated_gate.html</a><br></div><div><br></div><div>It could help reviewers to see feedback from elastic-recheck if the issue in the given patch is an already known bug.</div><div><a href="https://docs.openstack.org/infra/elastic-recheck/readme.html">https://docs.openstack.org/infra/elastic-recheck/readme.html</a></div><div><br></div><div>regards</div><div>Lajos Katona (lajoskatona)</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Oleg Bondarev <<a href="mailto:oleg.bondarev@huawei.com">oleg.bondarev@huawei.com</a>> ezt írta (időpont: 2021. nov. 29., H, 8:35):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
A few thoughts from my side in scope of brainstorm:<br>
<br>
1)      Recheck actual bugs (“recheck bug 123456”)<br>
-       not a new idea to better keep track of all failures<br>
-       force a developer to investigate the reason of each CI failure and increase corresponding bug rating, or file a new bug (or go and fix this bug finally!)<br>
-       I think we should have some gate failure bugs dashboard with hottest bugs on top (maybe there is one that I’m not aware of) so everyone could go and check if his CI failure is known or new<br>
-       simple “recheck” could be forbidden, at least during “crisis management” window<br>
<br>
2)      Allow recheck TIMEOUT/POST_FAILURE jobs<br>
-       while I agree that re-run particular jobs is evil, TIMEOUT/POST_FAILURE are not related to the patch in majority of cases<br>
-       performance issues are usually caught by Rally jobs<br>
-       of course core team should monitor if timeouts become a rule for some jobs<br>
<br>
3)      Ability to block rechecks in some cases, like known gate blocker<br>
-       not everyone is always aware that gates are blocked with some issue<br>
-       PTL (or any core team member) can turn off rechecks during that time (with a message from Zuul)<br>
-       happens not often but still can save some CI resources<br>
<br>
Thanks,<br>
Oleg<br>
---<br>
Advanced Software Technology Lab<br>
Huawei<br>
<br>
-----Original Message-----<br>
From: Slawek Kaplonski [mailto:<a href="mailto:skaplons@redhat.com" target="_blank">skaplons@redhat.com</a>] <br>
Sent: Thursday, November 18, 2021 10:46 AM<br>
To: Clark Boylan <<a href="mailto:cboylan@sapwetik.org" target="_blank">cboylan@sapwetik.org</a>><br>
Cc: <a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a><br>
Subject: Re: [neutron][CI] How to reduce number of rechecks - brainstorming<br>
<br>
Hi,<br>
<br>
Thx Clark for detailed explanation about that :)<br>
<br>
On środa, 17 listopada 2021 16:51:57 CET you wrote:<br>
> On Wed, Nov 17, 2021, at 2:18 AM, Balazs Gibizer wrote:<br>
> <br>
> Snip. I want to respond to a specific suggestion:<br>
> > 3) there was informal discussion before about a possibility to <br>
> > re-run only some jobs with a recheck instead for re-running the <br>
> > whole set. I don't know if this is feasible with Zuul and I think <br>
> > this only treat the symptom not the root case. But still this could <br>
> > be a direction if all else fails.<br>
> <br>
> OpenStack has configured its check and gate queues with something <br>
> we've<br>
called<br>
> "clean check". This refers to the requirement that before an OpenStack <br>
> project can be gated it must pass check tests first. This policy was <br>
> instituted because a number of these infrequent but problematic issues <br>
> were traced back to recheck spamming. Basically changes would show up <br>
> and were broken. They would fail some percentage of the time. They got <br>
> rechecked<br>
until<br>
> they finally merged and now their failure rate is added to the whole. <br>
> This rule was introduced to make it more difficult to get this <br>
> flakyness into the gate.<br>
> <br>
> Locking in test results is in direct opposition to the existing policy <br>
> and goals. Locking results would make it far more trivial to land such <br>
> flakyness as you wouldn't need entire sets of jobs to pass before you could land.<br>
> Instead you could rerun individual jobs until each one passed and then <br>
> land the result. Potentially introducing significant flakyness with a <br>
> single merge.<br>
> <br>
> Locking results is also not really something that fits well with the <br>
> speculative gate queues that Zuul runs. Remember that Zuul constructs <br>
> a future git state and tests that in parallel. Currently the state for <br>
> OpenStack looks like:<br>
> <br>
>   A - Nova<br>
>   ^<br>
>   B - Glance<br>
>   ^<br>
>   C - Neutron<br>
>   ^<br>
>   D - Neutron<br>
>   ^<br>
>   F - Neutron<br>
> <br>
> The B glance change is tested as if the A Nova change has already <br>
> merged and so on down the queue. If we want to keep these speculative <br>
> states we can't really have humans manually verify a failure can be ignored and retry it.<br>
> Because we'd be enqueuing job builds at different stages of <br>
> speculative state. Each job build would be testing a different version of the software.<br>
> <br>
> What we could do is implement a retry limit for failing jobs. Zuul <br>
> could<br>
rerun<br>
> failing jobs X times before giving up and reporting failure (this <br>
> would require updates to Zuul). The problem with this approach is <br>
> without some oversight it becomes very easy to land changes that make <br>
> things worse. As a side note Zuul does do retries, but only for <br>
> detected network errors or when a pre-run playbook fails. The <br>
> assumption is that network failures are due to the dangers of the <br>
> Internet, and that pre-run playbooks are small, self contained, <br>
> unlikely to fail, and when they do fail the failure should be independent of what is being tested.<br>
> <br>
> Where does that leave us?<br>
> <br>
> I think it is worth considering the original goals of "clean check". <br>
> We know that rechecking/rerunning only makes these problems worse in the long term.<br>
> They represent technical debt. One of the reasons we run these tests <br>
> is to show us when our software is broken. In the case of flaky <br>
> results we are exposing this technical debt where it impacts the <br>
> functionality of our software. The longer we avoid fixing these issues <br>
> the worse it gets, and<br>
this<br>
> is true even with "clean check".<br>
<br>
I agree with You on that and I would really like to find better/other solution for the Neutron problem than rechecking only broken jobs as I'm pretty sure that this would make things much worst quickly.<br>
<br>
> <br>
> Do we as developers find value in knowing the software needs attention<br>
before<br>
> it gets released to users? Do the users find value in running reliable <br>
> software? In the past we have asserted that "yes, there is value in <br>
> this", and have invested in tracking, investigating, and fixing these <br>
> problems even if they happen infrequently. But that does require <br>
> investment, and active maintenance.<br>
> <br>
> Clark<br>
<br>
<br>
--<br>
Slawek Kaplonski<br>
Principal Software Engineer<br>
Red Hat<br>
</blockquote></div>