Skip to contentSkip to conversation

tests/avocado/replay_kernel: Mark the test_x86_64_pc as flaky

PATCH In review Thomas Huth 3 participants 5 messages Nov 14, 2023

lore
Share & tools
lore
#0 lore raw

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
index a18610542e..53cb7e5091 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Thomas Huth

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 +0 -0
index a18610542e..53cb7e5091 100644

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

#3 lore raw
In reply to Thomas Huth
Quoted 13 lines · Thomas Huth

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 +0 -0
index a18610542e..53cb7e5091 100644

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]/

#4 lore raw
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.

---
  tests/avocado/replay_kernel.py | 3 ++-

  1 file changed, 2 insertions(+), 1 deletion(-)
tests/avocado/replay_kernel.py +0 -0
index a18610542e..53cb7e5091 100644
@@ -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')
      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]/

I just gave it a try, too, and it does not fix the issue for me.

Is this test still working for anybody?

Thomas

#2 lore raw
In reply to Peter Maydell
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.

---
  tests/avocado/replay_kernel.py | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
tests/avocado/replay_kernel.py +0 -0
index a18610542e..53cb7e5091 100644

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
Quoted 3 lines

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.

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