* [PATCH] tests/avocado: Disable the test_sbsaref_edk2_firmware in the gitlab-CI
@ 2023-07-10 14:43 Thomas Huth
2023-07-10 14:54 ` Peter Maydell
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2023-07-10 14:43 UTC (permalink / raw)
To: qemu-devel, qemu-arm, Philippe Mathieu-Daudé,
Marcin Juszkiewicz, Leif Lindholm, Peter Maydell,
Radoslaw Biernacki
Cc: Beraldo Leal, Wainer dos Santos Moschetta, Cleber Rosa,
Alex Bennée
The test fails occasionally, see e.g.:
https://gitlab.com/thuth/qemu/-/jobs/4196177756#L489
https://gitlab.com/thuth/qemu/-/jobs/4623296271#L290
Disable it at least in the gitlab-CI to avoid failing CI
pipelines due to this problem.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/avocado/machine_aarch64_sbsaref.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado/machine_aarch64_sbsaref.py
index cce6ef9f65..dbd364b537 100644
--- a/tests/avocado/machine_aarch64_sbsaref.py
+++ b/tests/avocado/machine_aarch64_sbsaref.py
@@ -8,8 +8,7 @@
import os
-from avocado import skip
-from avocado import skipUnless
+from avocado import skipIf
from avocado.utils import archive
from avocado_qemu import QemuSystemTest
@@ -76,6 +75,7 @@ def fetch_firmware(self):
"sbsa-ref",
)
+ @skipIf(os.getenv('GITLAB_CI'), 'Test does not work reliably')
def test_sbsaref_edk2_firmware(self):
"""
:avocado: tags=cpu:cortex-a57
--
2.39.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tests/avocado: Disable the test_sbsaref_edk2_firmware in the gitlab-CI
2023-07-10 14:43 [PATCH] tests/avocado: Disable the test_sbsaref_edk2_firmware in the gitlab-CI Thomas Huth
@ 2023-07-10 14:54 ` Peter Maydell
2023-07-10 16:44 ` Thomas Huth
0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2023-07-10 14:54 UTC (permalink / raw)
To: Thomas Huth
Cc: qemu-devel, qemu-arm, Philippe Mathieu-Daudé,
Marcin Juszkiewicz, Leif Lindholm, Radoslaw Biernacki,
Beraldo Leal, Wainer dos Santos Moschetta, Cleber Rosa,
Alex Bennée
On Mon, 10 Jul 2023 at 15:43, Thomas Huth <thuth@redhat.com> wrote:
>
> The test fails occasionally, see e.g.:
>
> https://gitlab.com/thuth/qemu/-/jobs/4196177756#L489
> https://gitlab.com/thuth/qemu/-/jobs/4623296271#L290
>
> Disable it at least in the gitlab-CI to avoid failing CI
> pipelines due to this problem.
I'm not really a fan of disabling flaky tests only in the
gitlab CI. It means that plain "make check-avocado"
is useless to the average developer because it can
have all manner of broken or flaky tests in it that
never get tested by our CI. In fact I've had to develop
the habit of running "GITLAB_CI=1 make check-avocado"
so I can run the CI tests that we think work and not
get distracted by intermittent failures.
If we want "disable this test except for if you're
trying to investigate why it's flaky" then we should
have the test be opt-in, not opt-out, the same way
we do with QEMU_TEST_FLAKY_TESTS in the qtests.
thanks
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tests/avocado: Disable the test_sbsaref_edk2_firmware in the gitlab-CI
2023-07-10 14:54 ` Peter Maydell
@ 2023-07-10 16:44 ` Thomas Huth
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2023-07-10 16:44 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-devel, qemu-arm, Philippe Mathieu-Daudé,
Marcin Juszkiewicz, Leif Lindholm, Radoslaw Biernacki,
Beraldo Leal, Wainer dos Santos Moschetta, Cleber Rosa,
Alex Bennée
On 10/07/2023 16.54, Peter Maydell wrote:
> On Mon, 10 Jul 2023 at 15:43, Thomas Huth <thuth@redhat.com> wrote:
>>
>> The test fails occasionally, see e.g.:
>>
>> https://gitlab.com/thuth/qemu/-/jobs/4196177756#L489
>> https://gitlab.com/thuth/qemu/-/jobs/4623296271#L290
>>
>> Disable it at least in the gitlab-CI to avoid failing CI
>> pipelines due to this problem.
>
> I'm not really a fan of disabling flaky tests only in the
> gitlab CI. It means that plain "make check-avocado"
> is useless to the average developer because it can
> have all manner of broken or flaky tests in it that
> never get tested by our CI. In fact I've had to develop
> the habit of running "GITLAB_CI=1 make check-avocado"
> so I can run the CI tests that we think work and not
> get distracted by intermittent failures.
>
> If we want "disable this test except for if you're
> trying to investigate why it's flaky" then we should
> have the test be opt-in, not opt-out, the same way
> we do with QEMU_TEST_FLAKY_TESTS in the qtests.
Agreed, this makes perfectly sense. Actually, I was looking for something
like this in the tests/avocado directory, but I did not find anything
similar, so I went for the GITLAB_CI variable ...
I'll send a v2 with QEMU_TEST_FLAKY_TESTS instead (and document it in the
docs directory).
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-10 16:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10 14:43 [PATCH] tests/avocado: Disable the test_sbsaref_edk2_firmware in the gitlab-CI Thomas Huth
2023-07-10 14:54 ` Peter Maydell
2023-07-10 16:44 ` Thomas Huth
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).