* [OE-core][scarthgap][PATCH] python3: skiptest tracemalloc_track_race
@ 2026-07-03 4:21 Kris Gavvala
2026-07-07 14:39 ` Yoann Congal
0 siblings, 1 reply; 2+ messages in thread
From: Kris Gavvala @ 2026-07-03 4:21 UTC (permalink / raw)
To: openembedded-core; +Cc: 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
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 )
Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7504490ba5e6ce0317dd12bdb961542062f05830)
---
.../python/python3_3.12.13.bb | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-devtools/python/python3_3.12.13.bb b/meta/recipes-devtools/python/python3_3.12.13.bb
index 06dbc8e892..04f3c3d300 100644
--- a/meta/recipes-devtools/python/python3_3.12.13.bb
+++ b/meta/recipes-devtools/python/python3_3.12.13.bb
@@ -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"
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-07 14:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 4:21 [OE-core][scarthgap][PATCH] python3: skiptest tracemalloc_track_race Kris Gavvala
2026-07-07 14:39 ` Yoann Congal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.