Skip to contentSkip to conversation

python3: skiptest tracemalloc_track_race

PATCH Superseded Kris Gavvala 2 participants 2 messages Jul 3 – Jul 7

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3: skiptest tracemalloc_track_race

In python3 ptests, tracemalloc_track_race fails with a segfault. To avoid ptest failures for now, skip the test.

Fixes [YOCTO #16182]
Upstream Issue: https://github.com/python/cpython/issues/143143

This patch contains the following additional changes to backport from master to scarthgap:

- SKIPPED_TESTS is defined outside the sed expression for better clarity
( see https://git.openembedded.org/openembedded-core/commit/?id=d9a44e7390d7c8f2c2b73572825a6f8ceeb729ac )

- class-target override is removed since ptests are only used in target builds
( see https://git.openembedded.org/openembedded-core/commit/?id=8ba5db86ac364b85fa6c1ee36fa5a037c0ee818a )

(cherry picked from commit 7504490ba5e6ce0317dd12bdb961542062f05830)
---
 .../python/python3_3.12.13.bb                 | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python3_3.12.13.bb +17 -2
index 06dbc8e892..04f3c3d300 100644
@@ -256,8 +256,23 @@ do_install:append:class-nativesdk () {
     create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1'
 }
 
-do_install_ptest:append:class-target:libc-musl () {
-    sed -i -e 's|SKIPPED_TESTS=|SKIPPED_TESTS="-x test__locale -x test_c_locale_coercion -x test_locale -x test_os test_re -x test__xxsubinterpreters -x test_threading"|' ${D}${PTEST_PATH}/run-ptest
+# Fails with segfault
+# Bugzilla YP 16182 (test_tracemalloc_track_race)
+SKIPPED_TESTS = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
+
+SKIPPED_TESTS:append:libc-musl = " \
+    -x test__locale \
+    -x test_c_locale_coercion \
+    -x test_locale \
+    -x test_os test_re \
+    -x test__xxsubinterpreters \
+    -x test_threading \
+"
+
+do_install_ptest:append () {
+    sed -i -e "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|" ${D}${PTEST_PATH}/run-ptest
 }
 
 SYSROOT_PREPROCESS_FUNCS:append:class-target = " provide_target_config_script"
Signature · 1 line
2.49.0
#1 lore raw
Quoted 12 lines · Kris via lists.openembedded.org Gavvala

In python3 ptests, tracemalloc_track_race fails with a segfault. To avoid ptest failures for now, skip the test.

Fixes [YOCTO #16182]
Upstream Issue: https://github.com/python/cpython/issues/143143

This patch contains the following additional changes to backport from master to scarthgap:

- SKIPPED_TESTS is defined outside the sed expression for better clarity
( see https://git.openembedded.org/openembedded-core/commit/?id=d9a44e7390d7c8f2c2b73572825a6f8ceeb729ac )

Quoted 8 lines

- class-target override is removed since ptests are only used in target builds
( see https://git.openembedded.org/openembedded-core/commit/?id=8ba5db86ac364b85fa6c1ee36fa5a037c0ee818a )

(cherry picked from commit 7504490ba5e6ce0317dd12bdb961542062f05830)

---

Hello,

I think it would make more sense with d9a44e7390 backported as a separate commit and most likely 8ba5db86ac also.

Can you send a series with those backported individualy instead of squashed together?

Thanks!

Signature · 2 lines
Yoann Congal
Smile ECS