pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/59269: devel/py-virtualenv: make test fails on network access
>Number: 59269
>Category: pkg
>Synopsis: devel/py-virtualenv: make test fails on network access
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 07 19:00:01 +0000 2025
>Originator: Taylor R Campbell
>Release: current
>Organization:
The TestBSD Pyvirtualenvironmation
>Environment:
>Description:
Immediate failures, obscuring the real problem:
FAILED tests/unit/create/via_global_ref/test_build_c_ext.py::test_can_build_c_extensions[venv] - AssertionError: assert 1 == 0
FAILED tests/unit/create/via_global_ref/test_build_c_ext.py::test_can_build_c_extensions[cpython3-posix] - AssertionError: assert 1 == 0
FAILED tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data[False] - AssertionError: assert not 1
FAILED tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data[True] - AssertionError: assert not 1
Underlying problem is that the test suite is trying to run this command to install external software during the test:
cmd = ['/tmp/pytest-of-riastradh/pytest-14/test_can_build_c_extensions_ve0/env/bin/pip', 'install', '--no-index', '--find-links', 'https://pypi.org/simple/setuptools/', '--no-deps', ...]
Fortunately it is caught by our http_proxy hack:
1 location(s) to search for versions of setuptools:
* https://pypi.org/simple/setuptools/
Fetching project page and analyzing links: https://pypi.org/simple/setuptools/
Getting page https://pypi.org/simple/setuptools/
Looking up "https://pypi.org/simple/setuptools/" in the cache
Request header has "max_age" as 0, cache bypassed
No cache entry available
Starting new HTTPS connection (1): pypi.org:443
Incremented Retry for (url='/simple/setuptools/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7cb45bf06600>: Failed to establish a new connection: [Errno 7] No address associated with hostname'))': /simple/setuptools/
>How-To-Repeat:
cd devel/py-virtualenv
bmake test
>Fix:
Yes, please! If there is a way to run the test without network access, e.g. by using the setuptools package we already have, that would be best. If the test can't run without network access, but there is a way to disable it, that would be second-best. Otherwise it might be a matter of asking upstream about how to make their test suite work network-disconnected.
Home |
Main Index |
Thread Index |
Old Index