From 26ee6de5bbc80fc478c61d95f95ec51640cb5dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 4 Jan 2025 20:46:01 +0100 Subject: dev-lang/python: Ignore test failures in profiling run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/942956 Signed-off-by: Michał Górny --- dev-lang/python/python-3.13.1_p1-r100.ebuild | 35 ++-------------------- dev-lang/python/python-3.13.1_p1.ebuild | 34 ++------------------- dev-lang/python/python-3.14.0_alpha3-r100.ebuild | 38 ++---------------------- dev-lang/python/python-3.14.0_alpha3.ebuild | 37 ++--------------------- 4 files changed, 10 insertions(+), 134 deletions(-) (limited to 'dev-lang/python') diff --git a/dev-lang/python/python-3.13.1_p1-r100.ebuild b/dev-lang/python/python-3.13.1_p1-r100.ebuild index 45fc6e1377a6..f2f4b2b6ff30 100644 --- a/dev-lang/python/python-3.13.1_p1-r100.ebuild +++ b/dev-lang/python/python-3.13.1_p1-r100.ebuild @@ -373,47 +373,16 @@ src_configure() { # Hangs (actually runs indefinitely executing itself w/ many cpython builds) # bug #900429 -x test_tools - - # Fails in profiling run, passes in src_test(). - -x test_capi - -x test_external_inspection ) - # Arch-specific skips. See #931888 for a collection of these. - case ${CHOST} in - alpha*) - profile_task_flags+=( - -x test_os - ) - ;; - hppa*) - profile_task_flags+=( - -x test_descr - # bug 931908 - -x test_exceptions - -x test_os - ) - ;; - powerpc64-*) # big endian - profile_task_flags+=( - # bug 931908 - -x test_exceptions - ) - ;; - riscv*) - profile_task_flags+=( - -x test_statistics - ) - ;; - esac - if has_version "app-arch/rpm" ; then # Avoid sandbox failure (attempts to write to /var/lib/rpm) profile_task_flags+=( -x test_distutils ) fi - local -x PROFILE_TASK="${profile_task_flags[*]}" + # PGO sometimes fails randomly + local -x PROFILE_TASK="${profile_task_flags[*]} || true" fi local myeconfargs=( diff --git a/dev-lang/python/python-3.13.1_p1.ebuild b/dev-lang/python/python-3.13.1_p1.ebuild index c9c07e844e9b..39406d1356ba 100644 --- a/dev-lang/python/python-3.13.1_p1.ebuild +++ b/dev-lang/python/python-3.13.1_p1.ebuild @@ -375,46 +375,16 @@ src_configure() { # Hangs (actually runs indefinitely executing itself w/ many cpython builds) # bug #900429 -x test_tools - - # Fails in profiling run, passes in src_test(). - -x test_capi ) - # Arch-specific skips. See #931888 for a collection of these. - case ${CHOST} in - alpha*) - profile_task_flags+=( - -x test_os - ) - ;; - hppa*) - profile_task_flags+=( - -x test_descr - # bug 931908 - -x test_exceptions - -x test_os - ) - ;; - powerpc64-*) # big endian - profile_task_flags+=( - # bug 931908 - -x test_exceptions - ) - ;; - riscv*) - profile_task_flags+=( - -x test_statistics - ) - ;; - esac - if has_version "app-arch/rpm" ; then # Avoid sandbox failure (attempts to write to /var/lib/rpm) profile_task_flags+=( -x test_distutils ) fi - local -x PROFILE_TASK="${profile_task_flags[*]}" + # PGO sometimes fails randomly + local -x PROFILE_TASK="${profile_task_flags[*]} || true" fi local myeconfargs=( diff --git a/dev-lang/python/python-3.14.0_alpha3-r100.ebuild b/dev-lang/python/python-3.14.0_alpha3-r100.ebuild index eb87a6ac8197..21c55d5918be 100644 --- a/dev-lang/python/python-3.14.0_alpha3-r100.ebuild +++ b/dev-lang/python/python-3.14.0_alpha3-r100.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -374,48 +374,16 @@ src_configure() { # Hangs (actually runs indefinitely executing itself w/ many cpython builds) # bug #900429 -x test_tools - - # Fails in profiling run, passes in src_test(). - -x test_capi - -x test_embed - -x test_external_inspection ) - # Arch-specific skips. See #931888 for a collection of these. - case ${CHOST} in - alpha*) - profile_task_flags+=( - -x test_os - ) - ;; - hppa*) - profile_task_flags+=( - -x test_descr - # bug 931908 - -x test_exceptions - -x test_os - ) - ;; - powerpc64-*) # big endian - profile_task_flags+=( - # bug 931908 - -x test_exceptions - ) - ;; - riscv*) - profile_task_flags+=( - -x test_statistics - ) - ;; - esac - if has_version "app-arch/rpm" ; then # Avoid sandbox failure (attempts to write to /var/lib/rpm) profile_task_flags+=( -x test_distutils ) fi - local -x PROFILE_TASK="${profile_task_flags[*]}" + # PGO sometimes fails randomly + local -x PROFILE_TASK="${profile_task_flags[*]} || true" fi local myeconfargs=( diff --git a/dev-lang/python/python-3.14.0_alpha3.ebuild b/dev-lang/python/python-3.14.0_alpha3.ebuild index 3f87b266c470..99f79f8826ba 100644 --- a/dev-lang/python/python-3.14.0_alpha3.ebuild +++ b/dev-lang/python/python-3.14.0_alpha3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -376,47 +376,16 @@ src_configure() { # Hangs (actually runs indefinitely executing itself w/ many cpython builds) # bug #900429 -x test_tools - - # Fails in profiling run, passes in src_test(). - -x test_capi - -x test_embed ) - # Arch-specific skips. See #931888 for a collection of these. - case ${CHOST} in - alpha*) - profile_task_flags+=( - -x test_os - ) - ;; - hppa*) - profile_task_flags+=( - -x test_descr - # bug 931908 - -x test_exceptions - -x test_os - ) - ;; - powerpc64-*) # big endian - profile_task_flags+=( - # bug 931908 - -x test_exceptions - ) - ;; - riscv*) - profile_task_flags+=( - -x test_statistics - ) - ;; - esac - if has_version "app-arch/rpm" ; then # Avoid sandbox failure (attempts to write to /var/lib/rpm) profile_task_flags+=( -x test_distutils ) fi - local -x PROFILE_TASK="${profile_task_flags[*]}" + # PGO sometimes fails randomly + local -x PROFILE_TASK="${profile_task_flags[*]} || true" fi local myeconfargs=( -- cgit v1.2.3