Package: src:python-uvicorn
Version: 0.32.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with mkdocs,python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel 
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13
* Building wheel...
Successfully built uvicorn-0.32.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with 
"installer" module
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel 
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12
* Building wheel...
Successfully built uvicorn-0.32.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with 
"installer" module
   debian/rules execute_after_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
LC_ALL=C.UTF-8 LANG=C.UTF-8 mkdocs build && mv /<<PKGBUILDDIR>>/site 
/<<PKGBUILDDIR>>/html
INFO    -  Cleaning site directory
INFO    -  Building documentation to directory: /<<PKGBUILDDIR>>/site
INFO    -  Documentation built in 0.18 seconds
rm -rf /<<PKGBUILDDIR>>/html/plugins/__pycache__
rm -f /<<PKGBUILDDIR>>/html/sitemap.xml.gz
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; 
python3.13 -m pytest -s --verbose -k 'not test_run and not test_invalid_upgrade and not 
test_default_headers and not test_trace_logging and not test_websocket_auto and not 
test_socket_bind and not test_access_logging and not test_default_logging and not 
test_server_interrupt and not test_unknown_status_code and not test_sigint_finish_req and 
not test_sigint_abort_req and not test_request_than_limit_max_requests_warn_log[h11] and 
not test_request_than_limit_max_requests_warn_log[httptools]' 
--ignore=tests/protocols/test_websocket.py
/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:208: PytestDeprecationWarning: 
The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will 
default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to 
avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", 
"module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
============================= test session starts ==============================
platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 -- 
/usr/bin/python3.13
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
configfile: pyproject.toml
plugins: asyncio-0.24.0a1, mock-3.14.0, typeguard-4.4.1, anyio-4.6.2
asyncio: mode=Mode.STRICT, default_loop_scope=None
collecting ... collected 621 items / 1 error / 40 deselected / 581 selected

==================================== ERRORS ====================================
________________ ERROR collecting tests/test_auto_detection.py _________________
tests/test_auto_detection.py:10: in <module>
    from uvicorn.protocols.websockets.auto import AutoWebSocketsProtocol
uvicorn/protocols/websockets/auto.py:19: in <module>
    from uvicorn.protocols.websockets.websockets_impl import WebSocketProtocol
uvicorn/protocols/websockets/websockets_impl.py:10: in <module>
    import websockets.legacy.handshake
/usr/lib/python3/dist-packages/websockets/legacy/__init__.py:6: in <module>
    warnings.warn(  # deprecated in 14.0 - 2024-11-09
E   DeprecationWarning: websockets.legacy is deprecated; see 
https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade 
instructions
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
======================= 40 deselected, 1 error in 0.44s ========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -s 
--verbose -k 'not test_run and not test_invalid_upgrade and not test_default_headers and 
not test_trace_logging and not test_websocket_auto and not test_socket_bind and not 
test_access_logging and not test_default_logging and not test_server_interrupt and not 
test_unknown_status_code and not test_sigint_finish_req and not test_sigint_abort_req and 
not test_request_than_limit_max_requests_warn_log[h11] and not 
test_request_than_limit_max_requests_warn_log[httptools]' 
--ignore=tests/protocols/test_websocket.py
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; 
python3.12 -m pytest -s --verbose -k 'not test_run and not test_invalid_upgrade and not 
test_default_headers and not test_trace_logging and not test_websocket_auto and not 
test_socket_bind and not test_access_logging and not test_default_logging and not 
test_server_interrupt and not test_unknown_status_code and not test_sigint_finish_req and 
not test_sigint_abort_req and not test_request_than_limit_max_requests_warn_log[h11] and 
not test_request_than_limit_max_requests_warn_log[httptools]' 
--ignore=tests/protocols/test_websocket.py
/usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:208: PytestDeprecationWarning: 
The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will 
default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to 
avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", 
"module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
============================= test session starts ==============================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- 
/usr/bin/python3.12
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build
configfile: pyproject.toml
plugins: asyncio-0.24.0a1, mock-3.14.0, typeguard-4.4.1, anyio-4.6.2
asyncio: mode=Mode.STRICT, default_loop_scope=None
collecting ... collected 621 items / 1 error / 40 deselected / 581 selected

==================================== ERRORS ====================================
________________ ERROR collecting tests/test_auto_detection.py _________________
tests/test_auto_detection.py:10: in <module>
    from uvicorn.protocols.websockets.auto import AutoWebSocketsProtocol
uvicorn/protocols/websockets/auto.py:19: in <module>
    from uvicorn.protocols.websockets.websockets_impl import WebSocketProtocol
uvicorn/protocols/websockets/websockets_impl.py:10: in <module>
    import websockets.legacy.handshake
/usr/lib/python3/dist-packages/websockets/legacy/__init__.py:6: in <module>
    warnings.warn(  # deprecated in 14.0 - 2024-11-09
E   DeprecationWarning: websockets.legacy is deprecated; see 
https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade 
instructions
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
======================= 40 deselected, 1 error in 0.45s ========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest -s 
--verbose -k 'not test_run and not test_invalid_upgrade and not test_default_headers and 
not test_trace_logging and not test_websocket_auto and not test_socket_bind and not 
test_access_logging and not test_default_logging and not test_server_interrupt and not 
test_unknown_status_code and not test_sigint_finish_req and not test_sigint_abort_req and 
not test_request_than_limit_max_requests_warn_log[h11] and not 
test_request_than_limit_max_requests_warn_log[httptools]' 
--ignore=tests/protocols/test_websocket.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 
3.12" returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202411/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to