diff mbox series

[meta-python,4/4] python3-fastjsonschema: Add missing rdeps for ptests

Message ID 20240915193709.1131399-4-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/4] python3-pillow: Add missing rdep on py3-compile for ptests | expand

Commit Message

Khem Raj Sept. 15, 2024, 7:37 p.m. UTC
Allocated 5G RAM to qemu when running the ptest to avoid OOMs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-python/recipes-core/images/meta-python-image-ptest.bb     | 3 ++-
 .../recipes-devtools/python/python3-fastjsonschema_2.20.0.bb   | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-core/images/meta-python-image-ptest.bb b/meta-python/recipes-core/images/meta-python-image-ptest.bb
index 002bd7a39e..794b9d1e4d 100644
--- a/meta-python/recipes-core/images/meta-python-image-ptest.bb
+++ b/meta-python/recipes-core/images/meta-python-image-ptest.bb
@@ -29,7 +29,8 @@  QB_MEM = "-m 1024"
 #QB_MEM:virtclass-mcextend-<pn> = "-m 4096"
 # python3-scrypt ptests run into OOMs on RISCV64 qemu
 QB_MEM:virtclass-mcextend-python3-scrypt = "-m 2048"
-QB_MEM:virtclass-mcextend-python3-fastjsonschema = "-m 2048"
+# Needs atleast 5G to avoid OOMs
+QB_MEM:virtclass-mcextend-python3-fastjsonschema = "-m 5120"
 QB_MEM:virtclass-mcextend-python3-pillow = "-m 2048"
 
 TEST_SUITES = "ping ssh parselogs ptest"
diff --git a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
index 0524a73b67..4dd9444a9a 100644
--- a/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
+++ b/meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb
@@ -17,9 +17,11 @@  do_install_ptest() {
 	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
 
+# python3-misc for timeit.py
 RDEPENDS:${PN}-ptest += "\
     python3-colorama \
     python3-jsonschema \
+    python3-misc \
     python3-pylint \
     python3-pytest \
     python3-pytest-benchmark \