qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH-for-5.2] gitlab-ci: Do not automatically run Avocado inte


From: Thomas Huth
Subject: Re: [RFC PATCH-for-5.2] gitlab-ci: Do not automatically run Avocado integration tests anymore
Date: Mon, 30 Nov 2020 10:03:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

On 27/11/2020 19.46, Philippe Mathieu-Daudé wrote:
> On 11/27/20 7:29 PM, Thomas Huth wrote:
>> On 27/11/2020 18.57, Philippe Mathieu-Daudé wrote:
>>> On 11/27/20 6:47 PM, Thomas Huth wrote:
>>>> On 27/11/2020 18.41, Philippe Mathieu-Daudé wrote:
>>>>> We lately realized that the Avocado framework was not designed
>>>>> to be regularly run on CI environments. Therefore, as of 5.2
>>>>> we deprecate the gitlab-ci jobs using Avocado. To not disrupt
>>>>> current users, it is possible to keep the current behavior by
>>>>> setting the QEMU_CI_INTEGRATION_JOBS_PRE_5_2_RELEASE variable
>>>>> (see [*]).
>>>>> From now on, using these jobs (or adding new tests to them)
>>>>> is strongly discouraged.
>>>>>
>>>>> Tests based on Avocado will be ported to new job schemes during
>>>>> the next releases, with better documentation and templates.
>>>>
>>>> Why should we disable the jobs by default as long as there is no 
>>>> replacement
>>>> available yet?
>>>
>>> Why keep it enabled if it is failing randomly
>>
>> We can still disable single jobs if they are not stable, but that's no
>> reason to disable all of them by default, is it?
>>
>>> if images hardcoded
>>> in tests are being removed from public servers, etc...?
>>
>> That's independent from Avocado, you'll always have that problem if you want
>> to test with external images, unless you mirror them into a repository on
>> the same server (ie. gitlab), which, however, might not always be possible...
>>
>>> They are not disabled, they are still runnable manually or setting
>>> QEMU_CI_INTEGRATION_JOBS_PRE_5_2_RELEASE...
>>
>> And who do you think is going to set that variable? Hardly anybody, I guess.
> 
> Does that mean nobody cares about these tests?

It's like with all the other tests: Most of the people do not really care
about them (if they are not the author of a test) unless the test fails
during "make check" / the gating CI of Peter. So IMHO the right way to go is
to finally get these in the gating CI, otherwise, if you now even disable
them in the gitlab-CI by default, they will bitrot completely.

>>> We realized by default Avocado runs all tests on the CI jobs,
>>> triggering failures and complains. Developer stopped to contribute/
>>> review integration tests because of that.
>>
>> Did anybody really stop contributing "acceptance" test since they were
>> afraid of the gitlab-CI running them? That's new to me, do you have a 
>> pointer?
> 
> No, but alternatively, how many tests were contributed / reviewed
> last year?

I don't think this is related to the fact that we've seen some failures in
the gitlab-CI.

People might rather be either not aware of the "acceptance" tests yet, or
might be uncomfortable with Python, or might just not be interested in
writing tests at all.

Same problem also exists e.g. with the new qos-test framework since it was
introduced in 2018. Only very few people contributed new tests here, though
it is quite a powerful frameworks to test various combinations of devices.

I think if you want to promote a testing framework, you have to do some
lobby work ... advertise it in blog posts, make sure that there is proper
documentation and easy examples which can be used as a base for new tests, etc.

>>> We want developers be
>>> able to contribute tests to the repository fearlessly.
>>
>> You can always mark your test with @skipIf(os.getenv('GITLAB_CI')) if you
>> don't want to see it running in the gitlab-CI, so that's not a reason to be
>> afraid.
> 
> This was the idea here (opposite, tag jobs with 'gating-ci' to run
> them on GitLab):
> https://www.mail-archive.com/qemu-devel@nongnu.org/msg756464.html

Well, maybe you should follow-up on that series instead?

>>> If we don't change anything, we'll keep having CI failures due
>>> to Avocado design issues (artifacts removed from remote servers,
>>> etc...).
>>
>> I fail to see the relation between Avocado and vanishing artifacts from 3rd
>> party servers... what do you plan to do instead if something gets (re-)moved
>> from a server that is not under our control?
> 
> Avocado tests and CI are orthogonal, but it will be painful to
> fix Avocado tests with the current Avocado CI jobs.

Well, but we do not have any other framework in place yet which could
replace the current one, so simply disabling the tests now will only allow
more regressions to creep in, and then you'll have a hard time to get to the
state again where we were before.

>>> I haven't seen any attempt on this list to improve the current
>>> fragile situation, but better suggestions are certainly welcome.
>>
>> At least I am hoping that the "check-acceptance" tests will break a little
>> bit less often once Peter uses the gitlab-CI for his gating tests, too. That
>> will at least prevent that one of the tests gets completely broken by a new
>> merged pull request. Of course there's still the risk that tests only fail
>> occasionally due to new bugs, but that can also happen for all other test
>> suites (unit, qtest, iotests, ...), too.
> 
> Or Peter (as other users) will get grumpy at these tests because they
> are unreliable, hard to understand what fail and debug.

Actually, that's true for me for all tests that are written in Python ...
<sarcasm>Maybe we should simply ditch all python code in the QEMU
repo?</sarcasm>

> Thus the removal suggestion, so we can "fix" the missing Avocado parts
> before it is used heavily.

Now you somewhat contradict yourself. You just claimed that there are hardly
any contributions to this part of the test suite, and now you're afraid that
it might get used too heavily before it can be replaced with something else?
No, sorry, that does not make much sense to me. Thus please make sure to
provide a better framework first before disabling the stuff that we
currently have.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]