From 34b647516d2c0b3d129bd6c39647ec266b82b487 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 25 Oct 2026 14:19:56 -0700 Subject: [PATCH] python3-pyzmq: Skip timing sensitive test_retry_poll in ptest 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 --- 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 --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" }