* [PATCH] python3: skip flaky test_default_timeout test
@ 2026-01-19 14:21 Antonin Godard
2026-01-19 14:39 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Antonin Godard @ 2026-01-19 14:21 UTC (permalink / raw)
To: openembedded-core; +Cc: Thomas Petazzoni, Antonin Godard
We have been observing intermittent issues with this test on the Autobuilder:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15885
This is probably due to the Autobuilder being heavily loaded at the time
of the test.
The logs on the ticket above do not allow us to know which of the two
"test_default_timeout" tests is failing, so disable both with
self.skipTest().
Excerpt from `ptest-runner python3`:
test_default_timeout (test.test_multiprocessing_fork.test_manager.WithManagerTestBarrier.test_default_timeout)
SKIP: Test the barrier's default timeout 'skip flaky timeout test'
[YOCTO #15885]
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
...001-Skip-flaky-test_default_timeout-tests.patch | 49 ++++++++++++++++++++++
meta/recipes-devtools/python/python3_3.13.11.bb | 1 +
2 files changed, 50 insertions(+)
diff --git a/meta/recipes-devtools/python/python3/0001-Skip-flaky-test_default_timeout-tests.patch b/meta/recipes-devtools/python/python3/0001-Skip-flaky-test_default_timeout-tests.patch
new file mode 100644
index 0000000000..4e1bd833b4
--- /dev/null
+++ b/meta/recipes-devtools/python/python3/0001-Skip-flaky-test_default_timeout-tests.patch
@@ -0,0 +1,49 @@
+From baf2dda48e51fcb17a716e52cc5c4e162a6bb7d3 Mon Sep 17 00:00:00 2001
+From: Antonin Godard <antonin.godard@bootlin.com>
+Date: Mon, 19 Jan 2026 11:38:36 +0100
+Subject: [PATCH] Skip flaky test_default_timeout tests
+
+We have been observing issues with this test on the Autobuilder:
+https://bugzilla.yoctoproject.org/show_bug.cgi?id=15885
+
+The logs on the ticket above do not allow us to know which of the two
+"test_default_timeout" tests is failing, so disable both with
+self.skipTest().
+
+Excerpt from `ptest-runner python3`:
+
+ test_default_timeout (test.test_multiprocessing_fork.test_manager.WithManagerTestBarrier.test_default_timeout)
+ SKIP: Test the barrier's default timeout 'skip flaky timeout test'
+
+Upstream-Status: Inappropriate [OE specific, but might be related to https://github.com/python/cpython/issues/129266#issuecomment-2613058866]
+
+Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
+---
+ Lib/test/_test_multiprocessing.py | 1 +
+ Lib/test/lock_tests.py | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
+index e8064e7..9ab1f9e 100644
+--- a/Lib/test/_test_multiprocessing.py
++++ b/Lib/test/_test_multiprocessing.py
+@@ -2259,6 +2259,7 @@ class _TestBarrier(BaseTestCase):
+ """
+ Test the barrier's default timeout
+ """
++ self.skipTest('skip flaky timeout test')
+ barrier = self.Barrier(self.N, timeout=0.5)
+ results = self.DummyList()
+ self.run_threads(self._test_default_timeout_f, (barrier, results))
+diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py
+index 8c8f890..43e9b90 100644
+--- a/Lib/test/lock_tests.py
++++ b/Lib/test/lock_tests.py
+@@ -1165,6 +1165,7 @@ class BarrierTests(BaseTestCase):
+ """
+ Test the barrier's default timeout
+ """
++ self.skipTest('skip flaky timeout test')
+ timeout = 0.100
+ barrier = self.barriertype(2, timeout=timeout)
+ def f():
diff --git a/meta/recipes-devtools/python/python3_3.13.11.bb b/meta/recipes-devtools/python/python3_3.13.11.bb
index 2fcfd4aba1..2bc2389b7e 100644
--- a/meta/recipes-devtools/python/python3_3.13.11.bb
+++ b/meta/recipes-devtools/python/python3_3.13.11.bb
@@ -30,6 +30,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
file://0001-test_active_children-skip-problematic-test.patch \
file://0001-test_readline-skip-limited-history-test.patch \
file://0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch \
+ file://0001-Skip-flaky-test_default_timeout-tests.patch \
"
SRC_URI:append:class-native = " \
file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \
---
base-commit: 5b2365406fa35f8be345cfb05768ccb41faf4882
change-id: 20260119-skip-python3-test-default-timeout-83878256b1c6
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [OE-core] [PATCH] python3: skip flaky test_default_timeout test
2026-01-19 14:21 [PATCH] python3: skip flaky test_default_timeout test Antonin Godard
@ 2026-01-19 14:39 ` Richard Purdie
2026-01-19 14:42 ` Antonin Godard
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2026-01-19 14:39 UTC (permalink / raw)
To: antonin.godard, openembedded-core; +Cc: Thomas Petazzoni
On Mon, 2026-01-19 at 15:21 +0100, Antonin Godard via lists.openembedded.org wrote:
> We have been observing intermittent issues with this test on the Autobuilder:
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=15885
>
> This is probably due to the Autobuilder being heavily loaded at the time
> of the test.
>
> The logs on the ticket above do not allow us to know which of the two
> "test_default_timeout" tests is failing, so disable both with
> self.skipTest().
>
> Excerpt from `ptest-runner python3`:
>
> test_default_timeout (test.test_multiprocessing_fork.test_manager.WithManagerTestBarrier.test_default_timeout)
> SKIP: Test the barrier's default timeout 'skip flaky timeout test'
>
> [YOCTO #15885]
>
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
> ...001-Skip-flaky-test_default_timeout-tests.patch | 49 ++++++++++++++++++++++
> meta/recipes-devtools/python/python3_3.13.11.bb | 1 +
> 2 files changed, 50 insertions(+)
>
> diff --git a/meta/recipes-devtools/python/python3/0001-Skip-flaky-test_default_timeout-tests.patch b/meta/recipes-devtools/python/python3/0001-Skip-flaky-test_default_timeout-tests.patch
> new file mode 100644
> index 0000000000..4e1bd833b4
> --- /dev/null
> +++ b/meta/recipes-devtools/python/python3/0001-Skip-flaky-test_default_timeout-tests.patch
> @@ -0,0 +1,49 @@
> +From baf2dda48e51fcb17a716e52cc5c4e162a6bb7d3 Mon Sep 17 00:00:00 2001
> +From: Antonin Godard <antonin.godard@bootlin.com>
> +Date: Mon, 19 Jan 2026 11:38:36 +0100
> +Subject: [PATCH] Skip flaky test_default_timeout tests
> +
> +We have been observing issues with this test on the Autobuilder:
> +https://bugzilla.yoctoproject.org/show_bug.cgi?id=15885
> +
> +The logs on the ticket above do not allow us to know which of the two
> +"test_default_timeout" tests is failing, so disable both with
> +self.skipTest().
> +
> +Excerpt from `ptest-runner python3`:
> +
> + test_default_timeout (test.test_multiprocessing_fork.test_manager.WithManagerTestBarrier.test_default_timeout)
> + SKIP: Test the barrier's default timeout 'skip flaky timeout test'
> +
> +Upstream-Status: Inappropriate [OE specific, but might be related to https://github.com/python/cpython/issues/129266#issuecomment-2613058866]
> +
> +Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> +---
> + Lib/test/_test_multiprocessing.py | 1 +
> + Lib/test/lock_tests.py | 1 +
> + 2 files changed, 2 insertions(+)
> +
> +diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
> +index e8064e7..9ab1f9e 100644
> +--- a/Lib/test/_test_multiprocessing.py
> ++++ b/Lib/test/_test_multiprocessing.py
> +@@ -2259,6 +2259,7 @@ class _TestBarrier(BaseTestCase):
> + """
> + Test the barrier's default timeout
> + """
> ++ self.skipTest('skip flaky timeout test')
> + barrier = self.Barrier(self.N, timeout=0.5)
> + results = self.DummyList()
> + self.run_threads(self._test_default_timeout_f, (barrier, results))
> +diff --git a/Lib/test/lock_tests.py b/Lib/test/lock_tests.py
> +index 8c8f890..43e9b90 100644
> +--- a/Lib/test/lock_tests.py
> ++++ b/Lib/test/lock_tests.py
> +@@ -1165,6 +1165,7 @@ class BarrierTests(BaseTestCase):
> + """
> + Test the barrier's default timeout
> + """
> ++ self.skipTest('skip flaky timeout test')
> + timeout = 0.100
> + barrier = self.barriertype(2, timeout=timeout)
> + def f():
> diff --git a/meta/recipes-devtools/python/python3_3.13.11.bb b/meta/recipes-devtools/python/python3_3.13.11.bb
> index 2fcfd4aba1..2bc2389b7e 100644
> --- a/meta/recipes-devtools/python/python3_3.13.11.bb
> +++ b/meta/recipes-devtools/python/python3_3.13.11.bb
> @@ -30,6 +30,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \
> file://0001-test_active_children-skip-problematic-test.patch \
> file://0001-test_readline-skip-limited-history-test.patch \
> file://0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch \
> + file://0001-Skip-flaky-test_default_timeout-tests.patch \
> "
> SRC_URI:append:class-native = " \
> file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \
I have the python3.14 upgrade queued in master-next for review so we
may need to test this with the new python version?
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [OE-core] [PATCH] python3: skip flaky test_default_timeout test
2026-01-19 14:39 ` [OE-core] " Richard Purdie
@ 2026-01-19 14:42 ` Antonin Godard
0 siblings, 0 replies; 3+ messages in thread
From: Antonin Godard @ 2026-01-19 14:42 UTC (permalink / raw)
To: Richard Purdie, openembedded-core; +Cc: Thomas Petazzoni
On Mon Jan 19, 2026 at 3:39 PM CET, Richard Purdie wrote:
[...]
> I have the python3.14 upgrade queued in master-next for review so we
> may need to test this with the new python version?
Indeed! I realized this after sending. Will rebase and send a v2, thanks.
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-19 14:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 14:21 [PATCH] python3: skip flaky test_default_timeout test Antonin Godard
2026-01-19 14:39 ` [OE-core] " Richard Purdie
2026-01-19 14:42 ` Antonin Godard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox