Source: aioftp
Version: 0.18.1-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20221220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aioftp/build; 
> python3.11 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> plugins: cov-4.0.0, asyncio-0.20.3
> asyncio: mode=Mode.STRICT
> collected 771 items
> 
> tests/test_abort.py F
> 
> =================================== FAILURES 
> ===================================
> __________________________ test_abort_stor[127.0.0.1] 
> __________________________
> 
> pair_factory = <class 'conftest.pair_factory.<locals>.Factory'>
> 
>     @pytest.mark.asyncio
>     async def test_abort_stor(pair_factory):
> >       async with pair_factory() as pair:
> 
> tests/test_abort.py:12: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> tests/conftest.py:125: in __aenter__
>     await self.client.connect(self.server.server_host,
> aioftp/client.py:605: in connect
>     code, info = await self.command(None, "220", "120")
> aioftp/client.py:254: in command
>     code, info = await self.parse_response()
> aioftp/client.py:180: in parse_response
>     code, rest = await self.parse_line()
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <aioftp.client.Client object at 0x7f95e394a3d0>
> 
>     async def parse_line(self):
>         """
>         :py:func:`asyncio.coroutine`
>     
>         Parsing server response line.
>     
>         :return: (code, line)
>         :rtype: (:py:class:`aioftp.Code`, :py:class:`str`)
>     
>         :raises ConnectionResetError: if received data is empty (this
>             means, that connection is closed)
>         :raises asyncio.TimeoutError: if there where no data for `timeout`
>             period
>         """
>         line = await self.stream.readline()
>         if not line:
>             self.stream.close()
> >           raise ConnectionResetError
> E           ConnectionResetError
> 
> aioftp/client.py:163: ConnectionResetError
> ------------------------------ Captured log setup 
> ------------------------------
> 09:47:47.108 asyncio              DEBUG    selector_events.py 54   Using 
> selector: EpollSelector
> 09:47:47.108 asyncio              DEBUG    selector_events.py 54   Using 
> selector: EpollSelector
> ------------------------------ Captured log call 
> -------------------------------
> 09:47:47.110 aioftp.server        INFO     server.py       741  serving on 
> 127.0.0.1:41135
> 09:47:47.111 aioftp.server        INFO     server.py       888  new 
> connection from 127.0.0.1:33270
> 09:47:47.112 aioftp.server        ERROR    server.py       960  dispatcher 
> caught exception
> Traceback (most recent call last):
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aioftp/build/aioftp/server.py", line 
> 929, in dispatcher
>     done, pending = await asyncio.wait(
>                     ^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.11/asyncio/tasks.py", line 415, in wait
>     raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
> TypeError: Passing coroutines is forbidden, use tasks explicitly.
> 09:47:47.113 aioftp.server        INFO     server.py       962  closing 
> connection from 127.0.0.1:33270
> ---------------------------- Captured log teardown 
> -----------------------------
> 09:47:47.200 asyncio              DEBUG    selector_events.py 54   Using 
> selector: EpollSelector
> =============================== warnings summary 
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294: 
> PytestConfigWarning: Unknown config option: color
>   
>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> .pybuild/cpython3_3.11_aioftp/build/tests/test_abort.py::test_abort_stor[127.0.0.1]
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aioftp/build/tests/conftest.py:122: 
> DeprecationWarning: with timeout() is deprecated, use async with timeout() 
> instead
>     self.timeout.__enter__()
> 
> .pybuild/cpython3_3.11_aioftp/build/tests/test_abort.py::test_abort_stor[127.0.0.1]
>   /usr/lib/python3/dist-packages/_pytest/stash.py:104: RuntimeWarning: 
> coroutine 'Server.greeting' was never awaited
>     del self._storage[key]
>   Enable tracemalloc to get traceback where the object was allocated.
>   See 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
>  for more info.
> 
> .pybuild/cpython3_3.11_aioftp/build/tests/test_abort.py::test_abort_stor[127.0.0.1]
>   /usr/lib/python3/dist-packages/_pytest/stash.py:104: RuntimeWarning: 
> coroutine 'Server.response_writer' was never awaited
>     del self._storage[key]
>   Enable tracemalloc to get traceback where the object was allocated.
>   See 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
>  for more info.
> 
> .pybuild/cpython3_3.11_aioftp/build/tests/test_abort.py::test_abort_stor[127.0.0.1]
>   /usr/lib/python3/dist-packages/_pytest/stash.py:104: RuntimeWarning: 
> coroutine 'Server.parse_command' was never awaited
>     del self._storage[key]
>   Enable tracemalloc to get traceback where the object was allocated.
>   See 
> https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings
>  for more info.
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> 
> ---------- coverage: platform linux, python 3.11.1-final-0 -----------
> Name                 Stmts   Miss  Cover   Missing
> --------------------------------------------------
> aioftp/__init__.py       8      0   100%
> aioftp/__main__.py      32     32     0%   2-63
> aioftp/client.py       485    383    21%   60, 78-79, 96-97, 100-103, 
> 143-144, 164-166, 181-191, 209-210, 244-252, 255-259, 272-275, 288-292, 
> 304-321, 334-360, 372, 385-411, 423-466, 478-502, 515-528, 540-550, 606, 
> 626-636, 647-649, 660-665, 679-688, 699, 734-784, 798-811, 828-829, 842-843, 
> 856-862, 876-877, 888, 900-908, 922, 940, 968-992, 1013, 1037-1053, 
> 1062-1063, 1066-1068, 1071-1073, 1093-1116, 1136-1147, 1158-1161, 1197-1207
> aioftp/common.py       181     61    66%   101, 104, 107-111, 125-128, 131, 
> 163-164, 167, 216-228, 286, 298, 311-312, 345-349, 363-368, 385-387, 396, 
> 480, 482, 507-511, 531-534, 537, 540, 553, 566, 583-588
> aioftp/errors.py        15      6    60%   45-49, 74-75
> aioftp/pathio.py       458    223    51%   50-53, 56-61, 64-65, 68, 71, 
> 82-88, 113-116, 297, 385, 389, 393, 397, 401, 405, 409-421, 425, 429, 434, 
> 439, 444, 449, 453, 459, 477-478, 484, 490, 496, 502, 508, 514, 518-539, 545, 
> 551, 558, 565, 572, 579, 585, 598, 626, 633, 636-638, 641-653, 657, 661-662, 
> 666-667, 671-697, 701-713, 717-727, 731-749, 753-763, 773-801, 806, 811-812, 
> 817, 822, 826-841
> aioftp/server.py       731    464    37%   43, 67-71, 74, 132, 151-158, 161, 
> 245-270, 273, 276, 320, 332, 339, 343-344, 365, 371-374, 380-383, 443-464, 
> 498-504, 538-544, 561-569, 657-659, 664, 740, 749, 766-770, 777, 785-791, 
> 794-795, 816-828, 845-857, 873-878, 933-956, 958, 967-968, 970-973, 975, 978, 
> 980-981, 984, 1001-1012, 1015-1022, 1025-1060, 1064-1072, 1075-1076, 
> 1080-1082, 1090-1093, 1097, 1103-1106, 1114-1117, 1121, 1124, 1131-1144, 
> 1153-1175, 1179-1187, 1190-1202, 1211-1233, 1239-1242, 1248-1251, 1259-1264, 
> 1272-1275, 1283-1314, 1325-1348, 1352-1358, 1362-1363, 1367-1372, 1375-1406, 
> 1411-1447, 1452-1488, 1492-1497, 1500, 1503-1510, 1514-1515
> --------------------------------------------------
> TOTAL                 1910   1169    39%
> Coverage XML written to file coverage.xml
> 
> ============================= slowest 10 durations 
> =============================
> 
> (3 durations < 0.005s hidden.  Use -vv to show these durations.)
> =========================== short test summary info 
> ============================
> FAILED tests/test_abort.py::test_abort_stor[127.0.0.1] - ConnectionResetError
> !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures 
> !!!!!!!!!!!!!!!!!!!!!!!!!!!
> ======================== 1 failed, 5 warnings in 0.73s 
> =========================
> E: pybuild pybuild:386: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_aioftp/build; python3.11 -m pytest 
> tests
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioftp/build; 
> python3.10 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> plugins: cov-4.0.0, asyncio-0.20.3
> asyncio: mode=strict
> collected 771 items
> 
> tests/test_abort.py ..........                                           [  
> 1%]
> tests/test_client_side_socks.py ssssssss                                 [  
> 2%]
> tests/test_connection.py ..........................................      [  
> 7%]
> tests/test_corner_cases.py ..............                                [  
> 9%]
> tests/test_current_directory.py ........                                 [ 
> 10%]
> tests/test_directory_actions.py ..................                       [ 
> 12%]
> tests/test_extra.py .......                                              [ 
> 13%]
> tests/test_file.py ............................................          [ 
> 19%]
> tests/test_list_fallback.py .........                                    [ 
> 20%]
> tests/test_login.py ................                                     [ 
> 22%]
> tests/test_maximum_connections.py ..........                             [ 
> 24%]
> tests/test_passive.py ....................                               [ 
> 26%]
> tests/test_pathio.py ................................................... [ 
> 33%]
> .............................................                            [ 
> 39%]
> tests/test_permissions.py ....                                           [ 
> 39%]
> tests/test_restart.py ......................                             [ 
> 42%]
> tests/test_simple_functions.py ......................................... [ 
> 47%]
> ........................................................................ [ 
> 57%]
> ........................................................................ [ 
> 66%]
> ........................................................................ [ 
> 75%]
> ................                                                         [ 
> 77%]
> tests/test_throttle.py ................................................. [ 
> 84%]
> ........................................................................ [ 
> 93%]
> ................................................                         [ 
> 99%]
> tests/test_user.py .                                                     
> [100%]
> 
> =============================== warnings summary 
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294: 
> PytestConfigWarning: Unknown config option: color
>   
>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> .pybuild/cpython3_3.10_aioftp/build/tests/test_abort.py: 10 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_connection.py: 42 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_corner_cases.py: 14 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_current_directory.py: 8 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_directory_actions.py: 18 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_extra.py: 6 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_file.py: 44 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_list_fallback.py: 8 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_login.py: 16 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_maximum_connections.py: 10 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_passive.py: 20 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_permissions.py: 4 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_restart.py: 22 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py: 168 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioftp/build/tests/conftest.py:122: 
> DeprecationWarning: with timeout() is deprecated, use async with timeout() 
> instead
>     self.timeout.__enter__()
> 
> .pybuild/cpython3_3.10_aioftp/build/tests/test_abort.py: 78 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_connection.py: 180 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_corner_cases.py: 58 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_current_directory.py: 74 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_directory_actions.py: 196 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_extra.py: 34 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_file.py: 642 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_list_fallback.py: 108 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_login.py: 54 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_maximum_connections.py: 140 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_passive.py: 112 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_permissions.py: 22 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_restart.py: 242 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py: 3396 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioftp/build/aioftp/server.py:929: 
> DeprecationWarning: The explicit passing of coroutine objects to 
> asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in 
> Python 3.11.
>     done, pending = await asyncio.wait(
> 
> .pybuild/cpython3_3.10_aioftp/build/tests/test_abort.py: 10 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_connection.py: 34 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_corner_cases.py: 14 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_current_directory.py: 8 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_directory_actions.py: 18 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_extra.py: 6 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_file.py: 44 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_list_fallback.py: 8 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_login.py: 12 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_maximum_connections.py: 38 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_passive.py: 20 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_permissions.py: 4 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_restart.py: 22 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py: 456 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioftp/build/aioftp/server.py:984: 
> DeprecationWarning: The explicit passing of coroutine objects to 
> asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in 
> Python 3.11.
>     await asyncio.wait(tasks_to_wait)
> 
> .pybuild/cpython3_3.10_aioftp/build/tests/test_abort.py: 10 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_connection.py: 44 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_corner_cases.py: 14 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_current_directory.py: 8 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_directory_actions.py: 18 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_extra.py: 6 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_file.py: 44 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_list_fallback.py: 8 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_login.py: 16 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_maximum_connections.py: 10 
> warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_passive.py: 20 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_permissions.py: 4 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_restart.py: 22 warnings
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py: 168 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioftp/build/aioftp/server.py:791: 
> DeprecationWarning: The explicit passing of coroutine objects to 
> asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in 
> Python 3.11.
>     await asyncio.wait(tasks)
> 
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py: 8370 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioftp/build/aioftp/common.py:482: 
> DeprecationWarning: The explicit passing of coroutine objects to 
> asyncio.wait() is deprecated since Python 3.8, and scheduled for removal in 
> Python 3.11.
>     await asyncio.wait(waiters)
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> 
> ---------- coverage: platform linux, python 3.10.9-final-0 -----------
> Name                 Stmts   Miss  Cover   Missing
> --------------------------------------------------
> aioftp/__init__.py       8      0   100%
> aioftp/__main__.py      32     32     0%   2-63
> aioftp/client.py       485      4    99%   750, 776-777, 862
> aioftp/common.py       181      0   100%
> aioftp/errors.py        15      0   100%
> aioftp/pathio.py       458      0   100%
> aioftp/server.py       731     12    98%   43, 461, 664, 740, 749, 766-770, 
> 847, 1040-1041
> --------------------------------------------------
> TOTAL                 1910     48    97%
> Coverage XML written to file coverage.xml
> 
> ============================= slowest 10 durations 
> =============================
> 0.13s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[::1-throttle_per_connection-download-read-3-10]
> 0.10s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[127.0.0.1-throttle_per_connection-upload-read-2-10]
> 0.07s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[127.0.0.1-throttle-download-read-1-20]
> 0.07s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[::1-throttle-download-write-3-20]
> 0.07s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[127.0.0.1-throttle-download-write-3-20]
> 0.07s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[::1-throttle_per_connection-download-write-3-10]
> 0.07s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[::1-throttle_per_connection-download-write-3-20]
> 0.06s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[127.0.0.1-throttle_per_connection-download-write-3-20]
> 0.06s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[::1-throttle_per_connection-download-write-3-30]
> 0.06s call     
> .pybuild/cpython3_3.10_aioftp/build/tests/test_throttle.py::test_server_side_throttle[::1-throttle-download-write-3-30]
> =============== 763 passed, 8 skipped, 15183 warnings in 12.37s 
> ================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.11 
> 3.10" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/12/20/aioftp_0.18.1-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to