Source: python-django-channels Version: 3.0.4-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20220917 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules binary > dh binary --with python3,sphinxdoc --buildsystem=pybuild > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > I: pybuild base:240: python3.10 setup.py config > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:240: /usr/bin/python3 setup.py build > running build > running build_py > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/worker.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/middleware.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/db.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/staticfiles.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/http.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/exceptions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/sessions.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/auth.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/consumer.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/layers.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/hacks.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/apps.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/routing.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/signals.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > copying channels/utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/generic > copying channels/generic/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/generic > copying channels/generic/http.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/generic > copying channels/generic/websocket.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/generic > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/management > copying channels/management/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/management > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/testing > copying channels/testing/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/testing > copying channels/testing/http.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/testing > copying channels/testing/live.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/testing > copying channels/testing/websocket.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/testing > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/security > copying channels/security/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/security > copying channels/security/websocket.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/security > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/management/commands > copying channels/management/commands/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/management/commands > copying channels/management/commands/runworker.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/management/commands > copying channels/management/commands/runserver.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/management/commands > running egg_info > creating channels.egg-info > writing channels.egg-info/PKG-INFO > writing dependency_links to channels.egg-info/dependency_links.txt > writing requirements to channels.egg-info/requires.txt > writing top-level names to channels.egg-info/top_level.txt > writing manifest file 'channels.egg-info/SOURCES.txt' > reading manifest file 'channels.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no previously-included files matching '*' found under directory > 'tests' > adding license file 'LICENSE' > writing manifest file 'channels.egg-info/SOURCES.txt' > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:240: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build; python3.10 -m > pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0+repack > rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg > plugins: django-4.5.2, asyncio-0.19.0 > asyncio: mode=strict > collected 79 items > > tests/test_generic_websocket.py ..... [ > 6%] > tests/test_http.py ..... [ > 12%] > tests/test_testing.py ...... [ > 20%] > tests/test_http.py ..... [ > 26%] > tests/security/test_auth.py ....... [ > 35%] > tests/test_deprecations.py .. [ > 37%] > tests/test_generic_http.py .. [ > 40%] > tests/test_generic_websocket.py ....... [ > 49%] > tests/test_http.py ........... [ > 63%] > tests/test_inmemorychannel.py FFF...... [ > 74%] > tests/test_layers.py .... [ > 79%] > tests/test_routing.py ........ [ > 89%] > tests/test_staticfiles.py ...... [ > 97%] > tests/test_testing.py . [ > 98%] > tests/security/test_websocket.py . > [100%] > > =================================== FAILURES > =================================== > ______________________________ test_send_receive > _______________________________ > > channel_layer = <async_generator object channel_layer at 0x7f34c2654640> > > @pytest.mark.asyncio > async def test_send_receive(channel_layer): > """ > Makes sure we can send a message to a normal channel then receive it. > """ > > await channel_layer.send( > "test-channel-1", {"type": "test.message", "text": "Ahoy-hoy!"} > ) > E AttributeError: 'async_generator' object has no attribute 'send' > > tests/test_inmemorychannel.py:26: AttributeError > ______________________________ test_send_capacity > ______________________________ > > channel_layer = <async_generator object channel_layer at 0x7f34c1c12bc0> > > @pytest.mark.asyncio > async def test_send_capacity(channel_layer): > """ > Makes sure we get ChannelFull when we hit the send capacity > """ > > await channel_layer.send("test-channel-1", {"type": "test.message"}) > E AttributeError: 'async_generator' object has no attribute 'send' > > tests/test_inmemorychannel.py:39: AttributeError > _______________________ test_process_local_send_receive > ________________________ > > channel_layer = <async_generator object channel_layer at 0x7f34c26cb640> > > @pytest.mark.asyncio > async def test_process_local_send_receive(channel_layer): > """ > Makes sure we can send a message to a process-local channel then > receive it. > """ > > channel_name = await channel_layer.new_channel() > E AttributeError: 'async_generator' object has no attribute > 'new_channel' > > tests/test_inmemorychannel.py:51: AttributeError > =============================== warnings summary > =============================== > .pybuild/cpython3_3.10_django-channels/build/tests/test_staticfiles.py::test_staticfiles_handler_can_generate_file_path > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/staticfiles.py:40: > DeprecationWarning: Channel's inbuilt http protocol AsgiHandler is > deprecated. Use Django's get_asgi_application() instead. > return await self.staticfiles_handler_class()( > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info > ============================ > FAILED tests/test_inmemorychannel.py::test_send_receive - AttributeError: > 'as... > FAILED tests/test_inmemorychannel.py::test_send_capacity - AttributeError: > 'a... > FAILED tests/test_inmemorychannel.py::test_process_local_send_receive - > Attri... > =================== 3 failed, 76 passed, 1 warning in 7.58s > ==================== > Task was destroyed but it is pending! > task: <Task pending name='Task-202' coro=<AsyncConsumer.__call__() done, > defined at > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build/channels/consumer.py:37> > wait_for=<Task pending name='Task-204' coro=<Queue.get() running at > /usr/lib/python3.10/asyncio/queues.py:159> wait_for=<Future cancelled> > cb=[Task.task_wakeup()]>> > Task was destroyed but it is pending! > task: <Task pending name='Task-204' coro=<Queue.get() done, defined at > /usr/lib/python3.10/asyncio/queues.py:150> wait_for=<Future cancelled> > cb=[Task.task_wakeup()]> > E: pybuild pybuild:379: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-channels/build; python3.10 -m > pytest tests > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 > returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2022/09/17/python-django-channels_3.0.4-1_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220917;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220917&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 marking 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.