From patchwork Tue Dec 1 19:56:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 106860 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.20051.1796154998817600542 for ; Tue, 01 Dec 2026 11:56:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=HSEOssnc; spf=pass (domain: baylibre.com, ip: 209.85.222.181, mailfrom: tgamblin@baylibre.com) Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-93f3c616c84so928380185a.1 for ; Tue, 01 Dec 2026 11:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796154997; x=1796759797; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=QAaIRi1I0Gw8DDEhBtzdNyNrd7+Nsvmex2PFyO0iarA=; b=HSEOssncRkEgfYDvH5AI0S1ZWjPbBMLcwwW2J9+ylRAX/iVJbUve4rN6SG4Qb4871d GTawjuTO9odqJKodo5nSoB1ggx9c7PCFySFCm54tCzWAjgCyZ0JtliyXfZNfM12eNMeG hQWC8R7C+uEKA8i+uZdLVUnJHeYISnCHuxH0+FgAHqJY3pNT1+Ug0SWa+LRayqeO3bzA QslYu2c0uwO+8yfra5c3pVNPcgpwkb1QR3jrmCUU+HaUaHuJucG47WOLIl92S82Yby5L Rm0Ksa2I3yzfL+pA+0t02wp4VPCIrzXD+sZoEb0yNanJKgsl9h6bFlr0O4dEadN+k2Uz bGPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796154997; x=1796759797; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date: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ORzTHaOcSIiig xseJDmPoYR6sEuq36jFmG4uVNXs5q6Urj2N4SNwgHDObBKOMasp7M9dWr54fX7iNSnNvozwLdyT lHTguWwlT6X/8jY3WjjSdWyhxpWXPuWe/Vydhzjbh2OhKW9mDPQ0itYLbkGFiT2jDjryPSq//dN 6cf6NZANoe+TT54QghSBmlowxmOa5G8E= X-Received: by 2002:a05:620a:2949:b0:949:7de2:fe29 with SMTP id af79cd13be357-949bab0fbb9mr6445731585a.62.1796154997233; Tue, 01 Dec 2026 11:56:37 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949bb4219c4sm2912886985a.41.2026.12.01.11.56.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 11:56:36 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH] python3-more-itertools: skip test_primes() Date: Tue, 1 Dec 2026 14:56:35 -0500 Message-ID: <20261201195635.91132-1-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 19:56:48 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251774 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 --- .../python/python3-more-itertools/run-ptest | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'