Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850154 - dev-lang/python-3.9.12[pgo]: hangs during tests
Summary: dev-lang/python-3.9.12[pgo]: hangs during tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-06 23:24 UTC by Randall
Modified: 2023-04-06 00:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_850154.txt,257.08 KB, text/plain)
2022-06-06 23:24 UTC, Randall
Details
first hang (file_850154.txt,145.15 KB, text/plain)
2022-06-06 23:40 UTC, Randall
Details
emerge --info (file_850154.txt,26.02 KB, text/plain)
2022-06-06 23:42 UTC, Randall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randall 2022-06-06 23:24:19 UTC
Created attachment 783179 [details]
build.log

I was updating my system yesterday, and I noticed Python-3.9.12 was failing to build.

After some investigation, I was able to get it to build removing the pgo USE flag.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-06 23:33:43 UTC
It's hanging, not failing per se.

Can you try to figure out which test is actually hanging and obtain more info? It might even be the same bug as bug 828535. Anyway, there's a fair few debugging tips in that bug.

Also, missing emerge --info.
Comment 2 Randall 2022-06-06 23:40:05 UTC
Created attachment 783182 [details]
first hang
Comment 3 Randall 2022-06-06 23:42:52 UTC
Created attachment 783185 [details]
emerge --info
Comment 4 Randall 2022-06-06 23:45:47 UTC
It starts to hang at 412/417

0:02:46 load avg: 10.51 [412/417] test_zipfile failed (2 failures)
0:02:48 load avg: 10.51 [413/417] test_weakref failed (1 failure)
0:02:56 load avg: 9.20 [414/417] test_venv passed
0:03:27 load avg: 5.88 [415/417] test_multiprocessing_spawn failed (1 failure)
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
0:03:42 load avg: 4.72 [416/417] test_concurrent_futures passed
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'


It also kinda hangs on some of the other ones and keeps repeating this error between tests...

ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
ERROR: [Errno 2] No such file or directory: 'container-exception-logger'
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-06 23:46:58 UTC
This might be related to bug 849305 then.
Comment 6 Randall 2022-06-06 23:49:21 UTC
I suppose that could make sense.
Comment 7 Larry the Git Cow gentoo-dev 2023-04-06 00:32:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82692290c64f6dd2f11f25625489dab7f7749fab

commit 82692290c64f6dd2f11f25625489dab7f7749fab
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-05 23:53:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-06 00:31:47 +0000

    dev-lang/python: add timeout for PGO task for >= 3.10
    
    Add a timeout matching the upstream default PROFILE_TASK
    given how often we've seen hangs here.
    
    Bug: https://bugs.gentoo.org/828535
    Bug: https://bugs.gentoo.org/850154
    Bug: https://bugs.gentoo.org/900429
    Bug: https://bugs.gentoo.org/903890
    Thanks-to: Martin Jansa <Martin.Jansa@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/python/python-3.10.11.ebuild       | 7 ++++++-
 dev-lang/python/python-3.11.3.ebuild        | 7 ++++++-
 dev-lang/python/python-3.12.0_alpha7.ebuild | 7 ++++++-
 3 files changed, 18 insertions(+), 3 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33f6f605fb2bb432134103d3de13d8ebe9f5b146

commit 33f6f605fb2bb432134103d3de13d8ebe9f5b146
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-05 23:45:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-06 00:31:46 +0000

    dev-lang/python: skip test_tools for PGO
    
    Skip the 'test_tools' test when running PGO for now to avoid
    hanging the build (and also kind of fork-bombing the system
    with recursive cpython build attempts).
    
    Interestingly, not seen this when running the actual regular
    testsuite, but I suppose far fewer people actually run that,
    so could just be a frequency thing.
    
    Bug: https://bugs.gentoo.org/828535
    Bug: https://bugs.gentoo.org/850154
    Bug: https://bugs.gentoo.org/903890
    Closes: https://bugs.gentoo.org/900429
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/python/python-3.10.11.ebuild       | 4 ++++
 dev-lang/python/python-3.11.3.ebuild        | 4 ++++
 dev-lang/python/python-3.12.0_alpha7.ebuild | 4 ++++
 dev-lang/python/python-3.9.16_p3.ebuild     | 4 ++++
 4 files changed, 16 insertions(+)