tests/avocado/replay_kernel: Mark the test_x86_64_pc as flaky
PATCH 1/1 tests/avocado/replay_kernel: Mark the test_x86_64_pc as flaky
It's failing very often, so don't run this by default anymore until it gets fixed.
--- tests/avocado/replay_kernel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/avocado/replay_kernel.py +2 -1
@@ -81,7 +81,8 @@ def run_rr(self, kernel_path, kernel_command_line, console_pattern, logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1)) class ReplayKernelNormal(ReplayKernelBase): - @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') + + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck') def test_x86_64_pc(self): """ :avocado: tags=arch:x86_64
Signature · 1 line
2.41.0
Quoted 14 lines · Thomas Huth
It's failing very often, so don't run this by default anymore until it gets fixed.
Signed-off-by Thomas Huth <[email protected]>--- tests/avocado/replay_kernel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/avocado/replay_kernel.py +0
-0
tests/avocado/replay_kernel.py def run_rr(self, kernel_path, kernel_command_line, console_pattern, · line 88
Quoted 9 lines
tests/avocado/replay_kernel.py +2
-1@@ -81,7 +81,8 @@ def run_rr(self, kernel_path, kernel_command_line, console_pattern, logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1)) class ReplayKernelNormal(ReplayKernelBase): - @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') + + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck') def test_x86_64_pc(self): """ :avocado: tags=arch:x86_64
We should replace all of the "skip if GITLAB_CI" checks with "skip on QEMU_TEST_FLAKY_TESTS" (or other check as appropriate), I think.
thanks
-- PMM
Quoted 27 lines · Peter Maydell
Quoted 14 lines · Thomas Huth
It's failing very often, so don't run this by default anymore until it gets fixed.
Signed-off-by Thomas Huth <[email protected]>--- tests/avocado/replay_kernel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/avocado/replay_kernel.py +0
-0tests/avocado/replay_kernel.py def run_rr(self, kernel_path, kernel_command_line, console_pattern, · line 88
Quoted 9 lines
tests/avocado/replay_kernel.py +2
-1@@ -81,7 +81,8 @@ def run_rr(self, kernel_path, kernel_command_line, console_pattern, logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1)) class ReplayKernelNormal(ReplayKernelBase): - @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') + + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck') def test_x86_64_pc(self): """ :avocado: tags=arch:x86_64Reviewed-by Peter Maydell <[email protected]>
Quoted 3 lines
We should replace all of the "skip if
GITLAB_CI" checks with "skip onQEMU_TEST_FLAKY_TESTS" (or other check as appropriate), I think.
Yes ... the question is whether they just time out because gitlab is too slow (in that case we should increase the timeout), or whether they are really flaky ... needs some time for investigation, I guess.
Thomas
Quoted 13 lines · Thomas Huth
It's failing very often, so don't run this by default anymore until it gets fixed.
Signed-off-by Thomas Huth <[email protected]>--- tests/avocado/replay_kernel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/avocado/replay_kernel.py +0
-0
tests/avocado/replay_kernel.py def run_rr(self, kernel_path, kernel_command_line, console_pattern, · line 88
Quoted 9 lines
tests/avocado/replay_kernel.py +2
-1@@ -81,7 +81,8 @@ def run_rr(self, kernel_path, kernel_command_line, console_pattern, logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1)) class ReplayKernelNormal(ReplayKernelBase): - @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') + + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck') def test_x86_64_pc(self): """ :avocado: tags=arch:x86_64
Hmm I suspect https://gitlab.com/qemu-project/qemu/-/issues/1961 which has a fix ready:
https://lore.kernel.org/qemu-devel/[email protected]/
Quoted 20 lines · Philippe Mathieu-Daudé
Quoted 19 lines · Thomas Huth
It's failing very often, so don't run this by default anymore until it gets fixed.
Signed-off-by Thomas Huth <[email protected]>---
tests/avocado/replay_kernel.py| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)tests/avocado/replay_kernel.py +0
-0@@ -81,7 +81,8 @@ def run_rr(self, kernel_path, kernel_command_line, console_pattern, logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1))class ReplayKernelNormal(ReplayKernelBase):
- @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab')
+
+ @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets
Quoted 8 lines
Quoted 4 lines
stuck')
deftest_x86_64_pc(self):
"""
:avocado: tags=arch:x86_64Hmm I suspect https://gitlab.com/qemu-project/qemu/-/issues/1961 which has a fix ready:
https://lore.kernel.org/qemu-devel/[email protected]/
I just gave it a try, too, and it does not fix the issue for me.
Is this test still working for anybody?
Thomas