diff mbox series

[meta-python,6/6] python3-pyzmq: Skip timing sensitive test_retry_poll in ptest

Message ID 20261025214330.653779-6-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,1/6] fftw: Fix planner hang on musl with CLOCK_SGI_CYCLE | expand

Commit Message

Khem Raj Oct. 25, 2026, 9:43 p.m. UTC
The test expects a message sent from another thread 0.2s later to arrive
within a 0.5s poll window, which a loaded test host misses. Upstream
marks it flaky(reruns=3), but pytest-rerunfailures is not available.
Adjust the musl sed to the new end of the -k expression.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-python/recipes-devtools/python/python3-pyzmq/run-ptest | 6 +++++-
 meta-python/recipes-devtools/python/python3-pyzmq_27.2.0.bb | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pyzmq/run-ptest b/meta-python/recipes-devtools/python/python3-pyzmq/run-ptest
index e7e14951c2..bfe76654e4 100644
--- a/meta-python/recipes-devtools/python/python3-pyzmq/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-pyzmq/run-ptest
@@ -7,5 +7,9 @@ 
 # of exiting 0. Reproduces reliably on target but never locally (isolated,
 # whole-file, or whole-suite runs all pass), consistent with an
 # environment-specific fork-safety issue rather than a logic bug.
+#
+# test_retry_poll expects a message sent 0.2s later by another thread to
+# arrive within a 0.5s poll window; on a loaded host it misses that window.
+# Upstream marks it flaky(reruns=3), which needs pytest-rerunfailures.
 pytest --automake \
--k 'not test_callable_check and not test_on_recv_basic and not test_on_recv_wake and not test_on_recv_async and not test_on_recv_async_error and not test_curve and not test_process_teardown'
+-k 'not test_callable_check and not test_on_recv_basic and not test_on_recv_wake and not test_on_recv_async and not test_on_recv_async_error and not test_curve and not test_process_teardown and not test_retry_poll'
diff --git a/meta-python/recipes-devtools/python/python3-pyzmq_27.2.0.bb b/meta-python/recipes-devtools/python/python3-pyzmq_27.2.0.bb
index bbce601f3f..4cbf46cf0a 100644
--- a/meta-python/recipes-devtools/python/python3-pyzmq_27.2.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pyzmq_27.2.0.bb
@@ -63,7 +63,7 @@  do_install_ptest() {
 }

 do_install_ptest:append:libc-musl() {
-        sed -i -e "s/ and not test_process_teardown'/ and not test_process_teardown and not test_close_all_fds'/" \
+        sed -i -e "s/ and not test_retry_poll'/ and not test_retry_poll and not test_close_all_fds'/" \
             ${D}${PTEST_PATH}/run-ptest
         grep -q "not test_close_all_fds'" ${D}${PTEST_PATH}/run-ptest || bbfatal "failed to skip test_close_all_fds in run-ptest"
 }