From: Cornelia Huck <cohuck@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: "Thomas Huth" <thuth@redhat.com>,
virt-ci-maint-team@redhat.com, qemu-devel@nongnu.org,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Willian Rampazzo" <wrampazz@redhat.com>,
"Cleber Rosa" <crosa@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [RFC PATCH-for-5.2] gitlab-ci: Do not automatically run Avocado integration tests anymore
Date: Mon, 30 Nov 2020 09:10:44 +0100 [thread overview]
Message-ID: <20201130091044.2b35fca4.cohuck@redhat.com> (raw)
In-Reply-To: <ec7e0016-7d10-49bf-0af2-69de8356bbed@redhat.com>
On Fri, 27 Nov 2020 19:46:29 +0100
Philippe Mathieu-Daudé <philmd@redhat.com> 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?
If I first have to set some random config option before tests are run,
that's an extra hurdle. I want a simple workflow where I just push to
gitlab and don't have to care about extra configuration.
>
> > So you could also simply remove the stuff from the yml file completely instead.
>
> Yes, I'd prefer that too, but Alex objected.
>
> >> 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 added one, just last week... plan to do more, but there's always less
time than things I want/need to do. Maybe this just needs more
advertising?
>
> >> 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
I guess you want all of that:
- tag tests that you know to not work, so they're not run
- tag tests that you know to be stable, so they can be gating
- all non-tagged tests are expected to work usually, but there might be
an occasional failure
?
>
> >
> >> 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.
What's the problem? Cryptic error messages when artifacts cannot be
fetched?
>
> >
> >> 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.
>
> Thus the removal suggestion, so we can "fix" the missing Avocado parts
> before it is used heavily.
I think disabling _all_ of them is way too harsh.
next prev parent reply other threads:[~2020-11-30 8:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 17:41 [RFC PATCH-for-5.2] gitlab-ci: Do not automatically run Avocado integration tests anymore Philippe Mathieu-Daudé
2020-11-27 17:47 ` Thomas Huth
2020-11-27 17:57 ` Philippe Mathieu-Daudé
2020-11-27 18:29 ` Thomas Huth
2020-11-27 18:46 ` Philippe Mathieu-Daudé
2020-11-30 8:10 ` Cornelia Huck [this message]
2020-11-30 9:36 ` Philippe Mathieu-Daudé
2020-11-30 10:07 ` Cornelia Huck
2020-11-30 9:03 ` Thomas Huth
2020-11-30 9:52 ` Philippe Mathieu-Daudé
2020-11-30 10:25 ` Daniel P. Berrangé
2020-11-30 10:31 ` Daniel P. Berrangé
2020-11-30 16:45 ` Ademar Reis
2020-12-04 14:42 ` Wainer dos Santos Moschetta
2020-11-27 23:21 ` Niek Linnenbank
2020-11-27 19:36 ` Wainer dos Santos Moschetta
2020-11-30 21:42 ` Willian Rampazzo
2020-12-01 3:48 ` Cleber Rosa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201130091044.2b35fca4.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=crosa@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=virt-ci-maint-team@redhat.com \
--cc=wainersm@redhat.com \
--cc=wrampazz@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.