Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/
Date: Wed, 08 Dec 2021 02:41:29
Message-Id: 1638931275.bf316365f10d66bb16871635d3296819a32a2c61.sam@gentoo
1 commit: bf316365f10d66bb16871635d3296819a32a2c61
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 8 02:39:52 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 8 02:41:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf316365
7
8 dev-lang/python: skip known-hanging/fragile tests for PGO
9
10 test_socket was the one reported originally here but
11 others have reported hangs with:
12 - test_asyncio
13 - test_httpservers
14 - test_logging
15 - test_multiprocessing_fork
16 - test_xmlrpc
17
18 This is consistent with some of the odd hangs
19 I've seen in src_test sporadically. Let's
20 just skip them for PGO for now in lieu of more
21 information.
22
23 (--verbose for the test suite lives up to
24 its name but isn't necessarily enough
25 to get us what we need?)
26
27 Bug: https://bugs.gentoo.org/828535
28 Bug: https://bugs.gentoo.org/788022
29 Signed-off-by: Sam James <sam <AT> gentoo.org>
30
31 dev-lang/python/python-3.10.1.ebuild | 7 ++++++-
32 dev-lang/python/python-3.11.0_alpha2.ebuild | 7 ++++++-
33 dev-lang/python/python-3.9.9.ebuild | 7 ++++++-
34 3 files changed, 18 insertions(+), 3 deletions(-)
35
36 diff --git a/dev-lang/python/python-3.10.1.ebuild b/dev-lang/python/python-3.10.1.ebuild
37 index 42698f3105cf..d7b21b80cdd7 100644
38 --- a/dev-lang/python/python-3.10.1.ebuild
39 +++ b/dev-lang/python/python-3.10.1.ebuild
40 @@ -162,7 +162,12 @@ src_configure() {
41
42 if use pgo; then
43 local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
44 - export PROFILE_TASK="-m test -j${jobs} --pgo-extended -x test_gdb"
45 + export PROFILE_TASK="-m test -j${jobs} --pgo-extended -x test_gdb -u-network"
46 +
47 + # All of these seem to occasionally hang for PGO inconsistently
48 + # They'll even hang here but be fine in src_test sometimes.
49 + # bug #828535 (and related: bug #788022)
50 + PROFILE_TASK+=" -x test_socket -x test_asyncio -x test_httpservers -x test_logging -x test_multiprocessing_fork -x test_xmlrpc"
51
52 if has_version "app-arch/rpm" ; then
53 # Avoid sandbox failure (attempts to write to /var/lib/rpm)
54
55 diff --git a/dev-lang/python/python-3.11.0_alpha2.ebuild b/dev-lang/python/python-3.11.0_alpha2.ebuild
56 index af6ab1080186..feb574f7b6ce 100644
57 --- a/dev-lang/python/python-3.11.0_alpha2.ebuild
58 +++ b/dev-lang/python/python-3.11.0_alpha2.ebuild
59 @@ -163,7 +163,12 @@ src_configure() {
60
61 if use pgo; then
62 local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
63 - export PROFILE_TASK="-m test -j${jobs} --pgo-extended -x test_gdb"
64 + export PROFILE_TASK="-m test -j${jobs} --pgo-extended -x test_gdb -u-network"
65 +
66 + # All of these seem to occasionally hang for PGO inconsistently
67 + # They'll even hang here but be fine in src_test sometimes.
68 + # bug #828535 (and related: bug #788022)
69 + PROFILE_TASK+=" -x test_socket -x test_asyncio -x test_httpservers -x test_logging -x test_multiprocessing_fork -x test_xmlrpc"
70
71 if has_version "app-arch/rpm" ; then
72 # Avoid sandbox failure (attempts to write to /var/lib/rpm)
73
74 diff --git a/dev-lang/python/python-3.9.9.ebuild b/dev-lang/python/python-3.9.9.ebuild
75 index b98774878ab2..a80090cacc42 100644
76 --- a/dev-lang/python/python-3.9.9.ebuild
77 +++ b/dev-lang/python/python-3.9.9.ebuild
78 @@ -160,7 +160,12 @@ src_configure() {
79
80 if use pgo; then
81 local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
82 - export PROFILE_TASK="-m test -j${jobs} --pgo-extended -x test_gdb"
83 + export PROFILE_TASK="-m test -j${jobs} --pgo-extended -x test_gdb -u-network"
84 +
85 + # All of these seem to occasionally hang for PGO inconsistently
86 + # They'll even hang here but be fine in src_test sometimes.
87 + # bug #828535 (and related: bug #788022)
88 + PROFILE_TASK+=" -x test_socket -x test_asyncio -x test_httpservers -x test_logging -x test_multiprocessing_fork -x test_xmlrpc"
89
90 if has_version "app-arch/rpm" ; then
91 # Avoid sandbox failure (attempts to write to /var/lib/rpm)