python3: skiptest tracemalloc_track_race
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 )
--- .../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
@@ -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
Quoted 12 lines · Kris via lists.openembedded.org Gavvala
In python3 ptests,
tracemalloc_track_racefails with a segfault. To avoid ptest failures for now, skip the test.Fixes [YOCTO #16182]
Upstream Issue: https://github.com/python/cpython/issues/143143This patch contains the following additional changes to backport from master to scarthgap:
-
SKIPPED_TESTSis 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 )Signed-off-by Kris Gavvala <[email protected]>Signed-off-by Mathieu Dubois-Briand <[email protected]>Signed-off-by Richard Purdie <[email protected]>(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