python3: skiptest tracemalloc_track_race
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
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.
--- 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
@@ -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
PATCH v2 2/2 python3: skiptest tracemalloc_track_race
In reply to Kris GavvalaIn 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
--- 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
@@ -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