Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790416 - dev-python/werkzeug-2.0.0 fails tests/test_serving.py::test_server[unix socket] - OSError: AF_UNIX path too long
Summary: dev-python/werkzeug-2.0.0 fails tests/test_serving.py::test_server[unix socke...
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: 2021-05-15 19:29 UTC by Sergei Trofimovich (RETIRED)
Modified: 2022-03-18 12:38 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-15 19:29:18 UTC
Fails on amd64 and ia64 with PORTAGE_TMPDIR=/dev/shm.

tests/conftest.py:38: OSError
------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------
/dev/shm/portage/dev-python/werkzeug-2.0.0/work/werkzeug-2.0.0/.pytest_cache/d/.xprocess/dev_server-test_server[unix socket]$ /usr/bin/python3.8 /dev/shm/portage/dev-python/werkzeug-2.0.0/work/werkzeug-2.0.0/tests/live_apps/run.py standard {"hostname": "unix:///dev/shm/portage/dev-python/werkzeug-2.0.0/temp/pytest-of-portage/pytest-0/test_server_unix_socket_0/test.sock"}
process 'dev_server-test_server[unix socket]' started pid=93
Traceback (most recent call last):

=================================================================================== short test summary info ====================================================================================
SKIPPED [1] tests/test_local.py:126: The ident is not supported in  Python3.7 or higher
FAILED tests/test_serving.py::test_server[unix socket] - OSError: AF_UNIX path too long
========================================================================== 1 failed, 798 passed, 1 skipped in 19.12s ===========================================================================
 * ERROR: dev-python/werkzeug-2.0.0::gentoo failed (test phase):
 *   pytest failed with python3.8
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-05-15 21:26:12 UTC
Well, apparently respecting TMPDIR has its downsides.
Comment 2 Larry the Git Cow gentoo-dev 2021-05-15 21:36:58 UTC
The bug has been closed via the following commit(s):

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

commit 40f3372df3972f71da0a28f276ac318ae671bdc3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-05-15 21:36:10 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-05-15 21:36:10 +0000

    dev-python/werkzeug: Force /tmp as tmpdir to fix AF_UNIX name limit
    
    Force using /tmp for tests rather than ${T}, as the latter can easily
    cause AF_UNIX socket paths to exceed the limit.
    
    Closes: https://bugs.gentoo.org/790416
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/werkzeug/werkzeug-2.0.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)