From: Cleber Rosa <crosa@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: "Eduardo Habkost" <ehabkost@redhat.com>,
"Aleksandar Rikalo" <arikalo@wavecomp.com>,
qemu-devel@nongnu.org,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Aurelien Jarno" <aurelien@aurel32.net>,
"Aleksandar Markovic" <amarkovic@wavecomp.com>,
"Aleksandar Markovic" <aleksandar.m.mail@gmail.com>
Subject: Re: [Qemu-devel] [PATCH 0/4] mips: Add more Avocado tests
Date: Thu, 23 May 2019 09:28:00 -0400 (EDT) [thread overview]
Message-ID: <1319868675.24353089.1558618080629.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <7a046f76-c892-a796-e7d0-b0eda92075d9@redhat.com>
----- Original Message -----
> From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
> To: "Eduardo Habkost" <ehabkost@redhat.com>, "Cleber Rosa" <crosa@redhat.com>
> Cc: "Aleksandar Rikalo" <arikalo@wavecomp.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, "Wainer dos Santos
> Moschetta" <wainersm@redhat.com>, qemu-devel@nongnu.org, "Aleksandar Markovic" <aleksandar.m.mail@gmail.com>,
> "Aleksandar Markovic" <amarkovic@wavecomp.com>, "Aurelien Jarno" <aurelien@aurel32.net>
> Sent: Thursday, May 23, 2019 5:38:34 AM
> Subject: Re: [Qemu-devel] [PATCH 0/4] mips: Add more Avocado tests
>
> On 5/23/19 1:07 AM, Eduardo Habkost wrote:
> > On Wed, May 22, 2019 at 05:46:06PM -0400, Cleber Rosa wrote:
> >> ----- Original Message -----
> >>> From: "Eduardo Habkost" <ehabkost@redhat.com>
> >>> On Tue, May 21, 2019 at 01:19:06AM +0200, Philippe Mathieu-Daudé wrote:
> >>>> Hi,
> >>>>
> >>>> It was a rainy week-end here, so I invested it to automatize some
> >>>> of my MIPS tests.
> >>>>
> >>>> The BootLinuxSshTest is not Global warming friendly, it is not
> >>>> meant to run on a CI system but rather on a workstation previous
> >>>> to post a pull request.
> >>>> It can surely be improved, but it is a good starting point.
> >>>
> >>> Until we actually have a mechanism to exclude the test case on
> >>> travis-ci, I will remove patch 4/4 from the queue. Aleksandar,
> >>> please don't merge patch 4/4 yet or it will break travis-ci.
> >>>
> >>> Cleber, Wainer, is it already possible to make "avocado run" skip
> >>> tests tagged with "slow"?
> >>>
> >>
> >> The mechanism exists, but we haven't tagged any test so far as slow.
> >>
> >> Should we define/document a criteria for a test to be slow? Given
> >> that this is highly subjective, we have to think of:
> >>
> >> * Will we consider the average or maximum run time (the timeout
> >> definition)?
> >>
> >> * For a single test, what is "slow"? Some rough numbers from Travis
> >> CI[1] to help us with guidelines:
> >> - boot_linux_console.py:BootLinuxConsole.test_x86_64_pc: PASS (6.04 s)
> >> - boot_linux_console.py:BootLinuxConsole.test_arm_virt: PASS (2.91 s)
> >> -
> >> linux_initrd.py:LinuxInitrd.test_with_2gib_file_should_work_with_linux_v4_16:
> >> PASS (18.14 s)
> >> - boot_linux.py:BootLinuxAarch64.test_virt: PASS (396.88 s)
> >
> > I don't think we need to overthink this. Whatever objective
> > criteria we choose, I'm sure we'll have to adapt them later due
> > to real world problems.
> >
> > e.g.: is 396 seconds too slow? I don't know, it depends: does it
> > break Travis and other CI systems often because of timeouts? If
> > yes, then we should probably tag it as slow.
> >
> > If having subjective criteria is really a problem (I don't think
> > it is), then we can call the tag "skip_travis", and stop worrying
> > about defining what exactly is "slow".
>
> I'd go with a simpler "tags:travis-ci" whitelisting any job expecting to
> run smoothly there.
>
My concern is what becomes of "make check-acceptance". Should we introduce
another target, say, "make check-acceptance-ci" or just change its meaning
and reuse it?
> Then we can add "slow" tests without having to worry about blacklisting
> for Travis CI.
> Also, Other CI can set different timeouts.
>
> I'd like maintainers to add as many tests as they want to upstream, so
> these tests can eventually run by anyone, then each maintainer is free
> to select which particular set he wants to run as default.
>
OK, so this matches the idea of carefully curating a set of tests for
CI. WRT white or blacklisting, I favor the approach that requires the
least effort from the developer to have its test enabled, so I'd go
with blacklisting. I fear that simple tests will just sit on the repo
without being properly exercised if we need to whitelist them.
But, I'll certainly and gladly accept the majority's opinion here.
Regards,
- Cleber.
> >> * Do we want to set a maximum job timeout? This way we can skip
> >> tests after a given amount of time has passed. Currently we interrupt
> >> the test running when the job timeout is reached, but it's possible
> >> to add a option so that no new tests will be started, but currently
> >> running ones will be waited on.
> >
> > I'm not sure I understand the suggestion to skip tests. If we
> > skip tests after a timeout, how would we differentiate a test
> > being expectedly slow from a QEMU hang?
> >
>
next prev parent reply other threads:[~2019-05-23 13:38 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-20 23:19 [Qemu-devel] [PATCH 0/4] mips: Add more Avocado tests Philippe Mathieu-Daudé
2019-05-20 23:19 ` [Qemu-devel] [PATCH 1/4] BootLinuxConsoleTest: Let extract_from_deb handle various compressions Philippe Mathieu-Daudé
2019-05-20 23:19 ` [Qemu-devel] [PATCH 2/4] BootLinuxConsoleTest: Test nanoMIPS kernels on the I7200 CPU Philippe Mathieu-Daudé
2019-05-21 8:37 ` Aleksandar Markovic
2019-06-05 18:15 ` Cleber Rosa
2019-05-20 23:19 ` [Qemu-devel] [PATCH 3/4] BootLinuxConsoleTest: Run kerneltests BusyBox on Malta Philippe Mathieu-Daudé
2019-05-21 8:38 ` Aleksandar Markovic
2019-06-05 21:24 ` Cleber Rosa
2019-05-20 23:19 ` [Qemu-devel] [PATCH 4/4] BootLinuxSshTest: Test some userspace commands " Philippe Mathieu-Daudé
2019-05-21 8:18 ` Aleksandar Markovic
2019-05-21 9:26 ` Aleksandar Markovic
2019-05-21 14:44 ` Philippe Mathieu-Daudé
2019-06-03 13:41 ` Aleksandar Markovic
2019-06-03 14:06 ` Philippe Mathieu-Daudé
2019-05-21 20:10 ` Eduardo Habkost
2019-05-22 20:55 ` Eduardo Habkost
2019-05-22 21:12 ` [Qemu-devel] [PATCH 0/4] mips: Add more Avocado tests Eduardo Habkost
2019-05-22 21:46 ` Cleber Rosa
2019-05-22 21:57 ` Aleksandar Markovic
2019-05-22 22:43 ` Aleksandar Markovic
2019-05-23 13:45 ` Cleber Rosa
2019-05-23 17:11 ` Aleksandar Markovic
2019-05-23 17:27 ` Philippe Mathieu-Daudé
2019-05-23 17:42 ` Aleksandar Markovic
2019-05-24 19:39 ` Eduardo Habkost
2019-05-24 20:32 ` Aleksandar Markovic
2019-05-24 21:19 ` Eduardo Habkost
2019-05-22 23:07 ` Eduardo Habkost
2019-05-23 1:04 ` Cleber Rosa
2019-05-23 1:51 ` Eduardo Habkost
2019-05-23 9:38 ` Philippe Mathieu-Daudé
2019-05-23 13:28 ` Cleber Rosa [this message]
2019-05-23 21:30 ` Eduardo Habkost
2019-05-24 13:45 ` Aleksandar Markovic
2019-05-24 19:47 ` Eduardo Habkost
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=1319868675.24353089.1558618080629.JavaMail.zimbra@redhat.com \
--to=crosa@redhat.com \
--cc=aleksandar.m.mail@gmail.com \
--cc=amarkovic@wavecomp.com \
--cc=arikalo@wavecomp.com \
--cc=aurelien@aurel32.net \
--cc=ehabkost@redhat.com \
--cc=f4bug@amsat.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).