From 970c6b66b9e31acf07673f1341c82191ef84c5c6 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 16 Aug 2026 08:52:11 +0200 Subject: [PATCH] python3-orjson: skip OOM-prone/unrelated tests on memory-constrained target test_dict_empty round-trips a 4096x4096 nested structure through JSON, materializing ~16.7M real dict objects on loads() (~900MB+ RSS), which gets OOM-killed on the memory-constrained qemu ptest target. test_fake.py instantiates Faker with 9 locales at once, pulling in a similarly large amount of locale provider data, for what is a Unicode-robustness smoke test rather than core JSON logic. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-orjson_3.11.9.bb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb b/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb index 2e9392fab9..1b49a76b9f 100644 --- a/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb +++ b/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb @@ -29,6 +29,15 @@ do_install_ptest:append() { cp -rf ${S}/data/* ${D}${PTEST_PATH}/data/ install -d ${D}${PTEST_PATH}/test cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ + # test_dict_empty round-trips a 4096x4096 nested structure through JSON, + # materializing ~16.7M real dict objects on loads() (~900MB+ RSS) which + # gets OOM-killed on the memory-constrained qemu ptest target. + # test_fake.py instantiates Faker with 9 locales at once, pulling in a + # similarly large amount of locale provider data, for what is a + # Unicode-robustness smoke test rather than core JSON logic. + sed -i \ + -e "/--automake/ s/$/ --ignore=test\/test_fake.py -k 'not test_dict_empty'/" \ + ${D}${PTEST_PATH}/run-ptest } RDEPENDS:${PN}-ptest += "\