Skip to contentSkip to conversation

python3: skiptest tracemalloc_track_race

PATCH New Kris Gavvala 1 participant 3 messages Jul 9

lore
Share & tools
lore
#0 lore raw

v2 cover python3: skiptest tracemalloc_track_race

This series backports the changes required to skip test_tracemalloc_track race on scarthgap.

commit d9a44e7390 (simplify ptest exclusion list) must be backported to change the format of the skipped test list since the skiptest patch assumes the newer format.

changes in v2:
- Split original patch into 2-patch series.
- omit the removal of class-target specifier when skipping tests for musl.

Kris Gavvala (1):
python3: skiptest tracemalloc_track_race

Mathieu Dubois-Briand (1):
python3: Simplify ptest exclusion list

 .../python/python3_3.12.13.bb                 | 20 +++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
Signature · 1 line
2.49.0
#1 lore raw

PATCH v2 1/2 python3: Simplify ptest exclusion list

From: Mathieu Dubois-Briand <[email protected]>

Makes the exclusion list a bit more readable, avoiding very long sed expression lines.

[Kris Gavvala]:
this commit was modified to fit scarthgap. the original commit expects to skip test_timerfd_TFD_TIMER_ABSTIME, test_date_locale2 and test_null_dlsym. These tests were not being skipped on scarthgap so were removed from the backport.

(cherry picked from commit d9a44e7390d7c8f2c2b73572825a6f8ceeb729ac)
---
 meta/recipes-devtools/python/python3_3.12.13.bb | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
meta/recipes-devtools/python/python3_3.12.13.bb +13 -2
index 06dbc8e892..b31dd3d743 100644
@@ -256,8 +256,19 @@ 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
+
+SKIPPED_TESTS:append:class-target: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
#2 lore raw

PATCH v2 2/2 python3: skiptest tracemalloc_track_race

In reply to Kris 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

(cherry picked from commit 7504490ba5e6ce0317dd12bdb961542062f05830)
---
 meta/recipes-devtools/python/python3_3.12.13.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/python/python3_3.12.13.bb +5 -0
index b31dd3d743..d74bdc158b 100644
@@ -256,6 +256,11 @@ 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'
 }
 
+# Fails with segfault
+# Bugzilla YP 16182 (test_tracemalloc_track_race)
+SKIPPED_TESTS = " \
+    --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \
+"
 
 SKIPPED_TESTS:append:class-target:libc-musl = " \
     -x test__locale \
Signature · 1 line
2.49.0