Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 923257

Summary: dev-python/trio-0.24.0 fails tests on musl
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Andrew Ammerlaan <andrewammerlaan>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny, python
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/python-trio/trio/pull/2939
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-01-29 11:38:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/trio-0.24.0 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM
Info about the system: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-29 11:38:48 UTC
Created attachment 883550 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-29 11:38:49 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E                   AssertionError: assert -5 in {-9, -2}
E           AssertionError: assert 'linux' != 'linux'
E           AssertionError: assert None == 'None from trio.'
FAILED _tests/test_socket.py::test_SocketType_resolve[AddressFamily.AF_INET6-addrs1] - AssertionError: assert -5 in {-9, -2}
FAILED _tests/test_threads.py::test_has_pthread_setname_np - AssertionError: assert 'linux' != 'linux'
FAILED _tests/test_threads.py::test_named_thread_os - AssertionError: assert None == 'None from trio.'
SKIPPED [1] ../trio-0.24.0-python3_10/install/usr/lib/python3.10/site-packages/trio/_tests/pytest_plugin.py:52: No module named 'isort'
Comment 3 Larry the Git Cow gentoo-dev 2024-01-30 16:36:01 UTC
The bug has been closed via the following commit(s):

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

commit f9f329f1b005a1271bd1e76c56f9d60c12ec5f94
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-01-30 14:29:00 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-30 16:35:56 +0000

    dev-python/trio: Backport a musl fix
    
    Closes: https://bugs.gentoo.org/923257
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/trio/files/trio-0.24.0-musl.patch | 66 ++++++++++++++++++++++++++++
 dev-python/trio/trio-0.24.0.ebuild           |  5 +++
 2 files changed, 71 insertions(+)