| Message ID | 20261201195635.91132-1-tgamblin@baylibre.com |
|---|---|
| State | New |
| Headers | show |
| Series | python3-more-itertools: skip test_primes() | expand |
diff --git a/meta/recipes-devtools/python/python3-more-itertools/run-ptest b/meta/recipes-devtools/python/python3-more-itertools/run-ptest index b03a09d746..24989827c2 100644 --- a/meta/recipes-devtools/python/python3-more-itertools/run-ptest +++ b/meta/recipes-devtools/python/python3-more-itertools/run-ptest @@ -1,5 +1,7 @@ #!/bin/sh # test_concurrent_consumers is a 100-thread stress test that times out under -# qemu TCG emulation (~1700s on riscv), skip it -pytest --automake -k 'not test_concurrent_consumers' +# qemu TCG emulation (~1700s on riscv), skip it. +# test_primes has a very long duration as well (~172s vs next closest +# test_roundtrip at ~12s on a 12-core Ryzen 7900), so disable it +pytest --automake -k 'not test_concurrent_consumers and not test_primes'
test_primes() is an order of magnitude slower than the next slowest test we run (test_roundtrip()), making it vulnerable to timeouts when testing under heavy load. This test is using the more-itertools sieve() function to test primes between 1 and 100,000, working out to a little over 9500 asserts. Skip it in run-ptest. Example times for qemuriscv64 run (using a custom conftest.py to collect durations): |# 178.367s tests/test_recipes.py:PrimeFunctionTests.test_primes |# 12.819s tests/test_more.py:DiscreteFourierTransformTests.test_roundtrip |# 12.184s tests/test_recipes.py:PolynomialFromRootsTests.test_large |# 10.472s tests/test_more.py:ExtractTests.test_all_orderings |# 10.408s tests/test_recipes.py:RunningMedianTests.test_vs_statistics_median Results before: |============================================================================ |Testsuite summary |# TOTAL: 20617 |# PASS: 20617 |# SKIP: 0 |# XFAIL: 0 |# FAIL: 0 |# XPASS: 0 |# ERROR: 0 |DURATION: 261 |END: /usr/lib/python3-more-itertools/ptest |2026-12-01T17:51 and after: |============================================================================ |Testsuite summary |# TOTAL: 11024 |# PASS: 11024 |# SKIP: 0 |# XFAIL: 0 |# FAIL: 0 |# XPASS: 0 |# ERROR: 0 |DURATION: 85 |END: /usr/lib/python3-more-itertools/ptest |2026-12-01T18:55 [YOCTO #16422] Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> --- .../python/python3-more-itertools/run-ptest | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)