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 <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2026-08-16 08:52:11 +02:00
committed by Khem Raj
parent 459f241b39
commit 970c6b66b9
@@ -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 += "\