| Message ID | 20260619195405.4021971-1-kris.gavvala@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | python3: Skip test_tracemalloc_track_race for glibc and musl | expand |
On Fri Jun 19, 2026 at 9:54 PM CEST, Kris via lists.openembedded.org Gavvala wrote: > Skip test_tracemalloc_track_race when running with glibc or musl to avoid ptest > failures for now. > > [YOCTO #16182] > > Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com> > --- Hello, Given the python3 version, that looks like a scarthgap targeted patch. If so, you need to add "[scarthgap]" in the subject when sending. README.OE-Core.md has instructions on how to do that using git-send-email. That said, this fix need to be sent to master first then to wrynose and scarthgap to be accepted. Can you send a fix to master first (maybe using SKIPPED_TESTS) and then send a backport to wrynose/scarthgap? Thanks! > ...malloc_track_race-for-glibc-and-musl.patch | 44 +++++++++++++++++++ > .../python/python3_3.13.12.bb | 1 + > 2 files changed, 45 insertions(+) > create mode 100644 meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch > > diff --git a/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch > new file mode 100644 > index 0000000000..093de45995 > --- /dev/null > +++ b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch > @@ -0,0 +1,44 @@ > +From b0fcd618c8387387d38dd0b4494bb8d94b49b849 Mon Sep 17 00:00:00 2001 > +From: Kris Gavvala <kris.gavvala@windriver.com> > +Date: Fri, 19 Jun 2026 10:44:22 -0700 > +Subject: [PATCH] Skip test_tracemalloc_track_race for glibc and musl > + > +test_tracemalloc_track_race crashes with a SIGSEGV > +when running python3 ptests on qemuarm64. > + > +Skip the test when running with glibc or musl to avoid ptest > +failures for now. > + > +Upstream-Status: Inappropriate [OE-specific] > + > +[YOCTO: #16182] > + > +Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com> > +--- > + Lib/test/test_tracemalloc.py | 3 +++ > + 1 file changed, 3 insertions(+) > + > +diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py > +index 0220a83..b2159f9 100644 > +--- a/Lib/test/test_tracemalloc.py > ++++ b/Lib/test/test_tracemalloc.py > +@@ -1,6 +1,7 @@ > + import contextlib > + import os > + import sys > ++import platform > + import textwrap > + import tracemalloc > + import unittest > +@@ -1111,6 +1112,8 @@ class TestCAPI(unittest.TestCase): > + self.untrack() > + > + @unittest.skipIf(_testcapi is None, 'need _testcapi') > ++ @unittest.skipIf(platform.libc_ver()[0] == 'glibc', "Skip test for glibc") > ++ @unittest.skipIf(platform.libc_ver()[0] == 'musl', "Skip test for musl") > + @threading_helper.requires_working_threading() > + # gh-128679: Test crash on a debug build (especially on FreeBSD). > + @unittest.skipIf(support.Py_DEBUG, 'need release build') > +-- > +2.49.0 > + > diff --git a/meta/recipes-devtools/python/python3_3.13.12.bb b/meta/recipes-devtools/python/python3_3.13.12.bb > index 854d834135..0176abb849 100644 > --- a/meta/recipes-devtools/python/python3_3.13.12.bb > +++ b/meta/recipes-devtools/python/python3_3.13.12.bb > @@ -32,6 +32,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ > file://0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch \ > file://0001-Skip-flaky-test_default_timeout-tests.patch \ > file://0001-gh-128377-Skip-test_cmd_line.test_non_interactive_ou.patch \ > + file://0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch \ > " > SRC_URI:append:class-native = " \ > file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \
Okay I will do that. Thanks, Kris Gavvala On 6/19/26 3:06 PM, Yoann Congal wrote: > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and know the content is safe. > > On Fri Jun 19, 2026 at 9:54 PM CEST, Kris via lists.openembedded.org Gavvala wrote: >> Skip test_tracemalloc_track_race when running with glibc or musl to avoid ptest >> failures for now. >> >> [YOCTO #16182] >> >> Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com> >> --- > Hello, > > Given the python3 version, that looks like a scarthgap targeted patch. > If so, you need to add "[scarthgap]" in the subject when sending. > README.OE-Core.md has instructions on how to do that using > git-send-email. > > That said, this fix need to be sent to master first then to wrynose and > scarthgap to be accepted. > > Can you send a fix to master first (maybe using SKIPPED_TESTS) and then > send a backport to wrynose/scarthgap? > > Thanks! > >> ...malloc_track_race-for-glibc-and-musl.patch | 44 +++++++++++++++++++ >> .../python/python3_3.13.12.bb | 1 + >> 2 files changed, 45 insertions(+) >> create mode 100644 meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch >> >> diff --git a/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch >> new file mode 100644 >> index 0000000000..093de45995 >> --- /dev/null >> +++ b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch >> @@ -0,0 +1,44 @@ >> +From b0fcd618c8387387d38dd0b4494bb8d94b49b849 Mon Sep 17 00:00:00 2001 >> +From: Kris Gavvala <kris.gavvala@windriver.com> >> +Date: Fri, 19 Jun 2026 10:44:22 -0700 >> +Subject: [PATCH] Skip test_tracemalloc_track_race for glibc and musl >> + >> +test_tracemalloc_track_race crashes with a SIGSEGV >> +when running python3 ptests on qemuarm64. >> + >> +Skip the test when running with glibc or musl to avoid ptest >> +failures for now. >> + >> +Upstream-Status: Inappropriate [OE-specific] >> + >> +[YOCTO: #16182] >> + >> +Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com> >> +--- >> + Lib/test/test_tracemalloc.py | 3 +++ >> + 1 file changed, 3 insertions(+) >> + >> +diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py >> +index 0220a83..b2159f9 100644 >> +--- a/Lib/test/test_tracemalloc.py >> ++++ b/Lib/test/test_tracemalloc.py >> +@@ -1,6 +1,7 @@ >> + import contextlib >> + import os >> + import sys >> ++import platform >> + import textwrap >> + import tracemalloc >> + import unittest >> +@@ -1111,6 +1112,8 @@ class TestCAPI(unittest.TestCase): >> + self.untrack() >> + >> + @unittest.skipIf(_testcapi is None, 'need _testcapi') >> ++ @unittest.skipIf(platform.libc_ver()[0] == 'glibc', "Skip test for glibc") >> ++ @unittest.skipIf(platform.libc_ver()[0] == 'musl', "Skip test for musl") >> + @threading_helper.requires_working_threading() >> + # gh-128679: Test crash on a debug build (especially on FreeBSD). >> + @unittest.skipIf(support.Py_DEBUG, 'need release build') >> +-- >> +2.49.0 >> + >> diff --git a/meta/recipes-devtools/python/python3_3.13.12.bb b/meta/recipes-devtools/python/python3_3.13.12.bb >> index 854d834135..0176abb849 100644 >> --- a/meta/recipes-devtools/python/python3_3.13.12.bb >> +++ b/meta/recipes-devtools/python/python3_3.13.12.bb >> @@ -32,6 +32,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ >> file://0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch \ >> file://0001-Skip-flaky-test_default_timeout-tests.patch \ >> file://0001-gh-128377-Skip-test_cmd_line.test_non_interactive_ou.patch \ >> + file://0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch \ >> " >> SRC_URI:append:class-native = " \ >> file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \ > > -- > Yoann Congal > Smile ECS >
diff --git a/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch new file mode 100644 index 0000000000..093de45995 --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch @@ -0,0 +1,44 @@ +From b0fcd618c8387387d38dd0b4494bb8d94b49b849 Mon Sep 17 00:00:00 2001 +From: Kris Gavvala <kris.gavvala@windriver.com> +Date: Fri, 19 Jun 2026 10:44:22 -0700 +Subject: [PATCH] Skip test_tracemalloc_track_race for glibc and musl + +test_tracemalloc_track_race crashes with a SIGSEGV +when running python3 ptests on qemuarm64. + +Skip the test when running with glibc or musl to avoid ptest +failures for now. + +Upstream-Status: Inappropriate [OE-specific] + +[YOCTO: #16182] + +Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com> +--- + Lib/test/test_tracemalloc.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py +index 0220a83..b2159f9 100644 +--- a/Lib/test/test_tracemalloc.py ++++ b/Lib/test/test_tracemalloc.py +@@ -1,6 +1,7 @@ + import contextlib + import os + import sys ++import platform + import textwrap + import tracemalloc + import unittest +@@ -1111,6 +1112,8 @@ class TestCAPI(unittest.TestCase): + self.untrack() + + @unittest.skipIf(_testcapi is None, 'need _testcapi') ++ @unittest.skipIf(platform.libc_ver()[0] == 'glibc', "Skip test for glibc") ++ @unittest.skipIf(platform.libc_ver()[0] == 'musl', "Skip test for musl") + @threading_helper.requires_working_threading() + # gh-128679: Test crash on a debug build (especially on FreeBSD). + @unittest.skipIf(support.Py_DEBUG, 'need release build') +-- +2.49.0 + diff --git a/meta/recipes-devtools/python/python3_3.13.12.bb b/meta/recipes-devtools/python/python3_3.13.12.bb index 854d834135..0176abb849 100644 --- a/meta/recipes-devtools/python/python3_3.13.12.bb +++ b/meta/recipes-devtools/python/python3_3.13.12.bb @@ -32,6 +32,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ file://0001-Generate-data-for-OpenSSL-3.4-and-add-it-to-multissl.patch \ file://0001-Skip-flaky-test_default_timeout-tests.patch \ file://0001-gh-128377-Skip-test_cmd_line.test_non_interactive_ou.patch \ + file://0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch \ " SRC_URI:append:class-native = " \ file://0001-Lib-sysconfig.py-use-prefix-value-from-build-configu.patch \
Skip test_tracemalloc_track_race when running with glibc or musl to avoid ptest failures for now. [YOCTO #16182] Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com> --- ...malloc_track_race-for-glibc-and-musl.patch | 44 +++++++++++++++++++ .../python/python3_3.13.12.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta/recipes-devtools/python/python3/0001-Skip-test_tracemalloc_track_race-for-glibc-and-musl.patch