Source: uvloop
Version: 0.20.0+ds1-1
Severity: serious
Tags: ftbfs
Justification: FTBFS
User: debian-pyt...@lists.debian.org
Usertags: python3.13

This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_uvloop/build
configfile: pyproject.toml
plugins: typeguard-4.3.0
collected 351 items

tests/test_aiohttp.py ...s
tests/test_base.py 
.s............................................s........................................
tests/test_context.py ..................s..s.s......
tests/test_cython.py .
tests/test_dealloc.py .
tests/test_dns.py ....................sss.........................ss.....
tests/test_executors.py ....
tests/test_fs_event.py ..
tests/test_process.py 
..................................................................................
tests/test_process_spawning.py .
tests/test_regr1.py .
tests/test_runner.py ..
tests/test_signals.py .....................
tests/test_testbase.py ...
tests/test_udp.py ..................ss...
tests/test_unix.py ..........................F.......

=================================== FAILURES ===================================
___________________ Test_AIO_Unix.test_create_unix_server_1 ____________________
Traceback (most recent call last):
  File "/usr/lib/python3.13/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/usr/lib/python3.13/unittest/case.py", line 651, in run
    self._callTestMethod(testMethod)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.13/unittest/case.py", line 606, in _callTestMethod
    if method() is not None:
       ~~~~~~^^
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_uvloop/build/tests/test_unix.py", line 
147, in test_create_unix_server_1
    self.loop.run_until_complete(start_server())
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/asyncio/base_events.py", line 721, in 
run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_uvloop/build/tests/test_unix.py", line 
100, in start_server
    self.assertTrue(os.path.exists(sock_name))
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/unittest/case.py", line 744, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true
=============================== warnings summary ===============================
tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_graceful_shutdown
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_uvloop/build/tests/test_aiohttp.py:85: 
NotAppKeyWarning: It is recommended to use web.AppKey instances for keys.
  https://docs.aiohttp.org/en/stable/web_advanced.html#application-s-config
    app['websockets'] = weakref.WeakSet()

tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_graceful_shutdown
  /usr/lib/python3/dist-packages/aiohttp/web_runner.py:95: DeprecationWarning: 
shutdown_timeout should be set on BaseRunner
    super().__init__(

tests/test_executors.py::TestUVExecutors::test_executors_process_pool_01
tests/test_executors.py::TestAIOExecutors::test_executors_process_pool_01
tests/test_regr1.py::TestIssue39Regr::test_issue39_regression
  /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: 
This process (pid=152) is multi-threaded, use of fork() may lead to deadlocks 
in the child.
    self.pid = os.fork()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_unix.py::Test_AIO_Unix::test_create_unix_server_1 - Asserti...
======= 1 failed, 337 passed, 13 skipped, 5 warnings in 62.53s (0:01:02) =======
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_uvloop/build; python3.13 -m pytest -s 
tests --ignore=tests/test_pipes.py --ignore=tests/test_sourcecode.py 
--ignore=tests/test_sockets.py --ignore=tests/test_tcp.py 
--ignore=tests/test_libuv_api.py
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_uvloop/build; 
python3.12 -m pytest -s tests --ignore=tests/test_pipes.py 
--ignore=tests/test_sourcecode.py --ignore=tests/test_sockets.py 
--ignore=tests/test_tcp.py --ignore=tests/test_libuv_api.py
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_uvloop/build
configfile: pyproject.toml
plugins: typeguard-4.3.0
collected 351 items

tests/test_aiohttp.py ...s
tests/test_base.py 
.s............................................s........................................
tests/test_context.py ..................s..s.s......
tests/test_cython.py .
tests/test_dealloc.py .
tests/test_dns.py ....................sss.........................ss.....
tests/test_executors.py ....
tests/test_fs_event.py ..
tests/test_process.py 
..................................................................................
tests/test_process_spawning.py .
tests/test_regr1.py .
tests/test_runner.py ..
tests/test_signals.py .....................
tests/test_testbase.py ...
tests/test_udp.py ..................ss...
tests/test_unix.py ..................................

=============================== warnings summary ===============================
tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_graceful_shutdown
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_uvloop/build/tests/test_aiohttp.py:85: 
NotAppKeyWarning: It is recommended to use web.AppKey instances for keys.
  https://docs.aiohttp.org/en/stable/web_advanced.html#application-s-config
    app['websockets'] = weakref.WeakSet()

tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_graceful_shutdown
  /usr/lib/python3/dist-packages/aiohttp/web_runner.py:95: DeprecationWarning: 
shutdown_timeout should be set on BaseRunner
    super().__init__(

tests/test_executors.py::TestUVExecutors::test_executors_process_pool_01
tests/test_executors.py::TestAIOExecutors::test_executors_process_pool_01
tests/test_regr1.py::TestIssue39Regr::test_issue39_regression
  /usr/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: 
This process (pid=2955) is multi-threaded, use of fork() may lead to deadlocks 
in the child.
    self.pid = os.fork()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============ 338 passed, 13 skipped, 5 warnings in 62.93s (0:01:02) ============
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 
3.12" returned exit code 13
make: *** [debian/rules:13: build-arch] Error 25
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-18T13:08:46Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/776141/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to