mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-08-31 03:45:41 +00:00
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:
@@ -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 += "\
|
||||
|
||||
Reference in New Issue
Block a user