https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Bug ID: 2263017 Summary: python-aiosmtpd fails to build with Python 3.13: aiosmtpd/tests/test_server.py::TestUnthreaded::test_un ixsocket AssertionError: assert Path(controller.unix_socket).exists() Product: Fedora Version: rawhide Status: NEW Component: python-aiosmtpd Assignee: aurelien@bompard.org Reporter: ksurma@redhat.com QA Contact: extras-qa@fedoraproject.org CC: aurelien@bompard.org, epel-packagers-sig@lists.fedoraproject.org, ksurma@redhat.com, mhroncok@redhat.com, michel@michel-slm.name, psimovec@redhat.com Blocks: 2244836 (PYTHON3.13) Target Milestone: --- Classification: Fedora
python-aiosmtpd fails to build with Python 3.13.0a3.
=================================== FAILURES =================================== ________________________ TestUnthreaded.test_unixsocket ________________________
self = <aiosmtpd.tests.test_server.TestUnthreaded object at 0x7f9b025449b0> safe_socket_dir = PosixPath('/tmp/tmpmdp0502n') autostop_loop = <_UnixSelectorEventLoop running=False closed=False debug=False> runner = <function TestUnthreaded.runner.<locals>.starter at 0x7f9b026cdb20>
@pytest.mark.skipif(in_cygwin(), reason="Cygwin AF_UNIX is problematic") @pytest.mark.skipif(in_win32(), reason="Win32 does not yet fully implement AF_UNIX") def test_unixsocket(self, safe_socket_dir, autostop_loop, runner): sockfile = safe_socket_dir / "smtp" cont = UnixSocketUnthreadedController( Sink(), unix_socket=sockfile, loop=autostop_loop ) cont.begin() # Make sure event loop is not running (will be started in thread) assert autostop_loop.is_running() is False runner(autostop_loop) # Make sure event loop is up and running (started within thread) assert autostop_loop.is_running() is True # Check we can connect assert_smtp_socket(cont) # Wait until thread ends, which it will be when the loop autostops runner.join(timeout=AUTOSTOP_DELAY) assert runner.is_alive() is False catchup_delay() assert autostop_loop.is_running() is False # At this point, the loop _has_ stopped, but the task is still listening assert assert_smtp_socket(cont) is False # Stop the task cont.end() catchup_delay() # Now the listener has gone away # noinspection PyTypeChecker with pytest.raises((socket.timeout, ConnectionError)):
assert_smtp_socket(cont)
aiosmtpd/tests/test_server.py:452: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
controller = <aiosmtpd.controller.UnixSocketUnthreadedController object at 0x7f9b02776db0>
def assert_smtp_socket(controller: UnixSocketMixin) -> bool:
assert Path(controller.unix_socket).exists()
E AssertionError: assert False E + where False = <bound method PathBase.exists of PosixPath('/tmp/tmpmdp0502n/smtp')>() E + where <bound method PathBase.exists of PosixPath('/tmp/tmpmdp0502n/smtp')> = PosixPath('/tmp/tmpmdp0502n/smtp').exists E + where PosixPath('/tmp/tmpmdp0502n/smtp') = Path('/tmp/tmpmdp0502n/smtp') E + where '/tmp/tmpmdp0502n/smtp' = <aiosmtpd.controller.UnixSocketUnthreadedController object at 0x7f9b02776db0>.unix_socket
aiosmtpd/tests/test_server.py:103: AssertionError ------------------------------ Captured log call ------------------------------- INFO mail.log:smtp.py:407 Available AUTH mechanisms: LOGIN(builtin) PLAIN(builtin) INFO mail.log:smtp.py:519 Peer: '' INFO mail.log:smtp.py:601 '' handling connection DEBUG mail.log:smtp.py:587 '' << b'220 localhost.localdomain Python SMTP 1.4.4.post2' DEBUG mail.log:smtp.py:286 _handle_client readline: b'EHLO socket.test\r\n' INFO mail.log:smtp.py:286 '' >> b'EHLO socket.test' DEBUG mail.log:smtp.py:587 '' << b'250-localhost.localdomain' DEBUG mail.log:smtp.py:587 '' << b'250-SIZE 33554432' DEBUG mail.log:smtp.py:587 '' << b'250-8BITMIME' DEBUG mail.log:smtp.py:587 '' << b'250-SMTPUTF8' DEBUG mail.log:smtp.py:587 '' << b'250 HELP' DEBUG mail.log:smtp.py:286 _handle_client readline: b'QUIT\r\n' INFO mail.log:smtp.py:286 '' >> b'QUIT' DEBUG mail.log:smtp.py:587 '' << b'221 Bye' INFO mail.log:smtp.py:525 '' connection lost INFO mail.log:smtp.py:746 '' Connection lost during _handle_client() =========================== short test summary info ============================ FAILED aiosmtpd/tests/test_server.py::TestUnthreaded::test_unixsocket - Asser... ====== 1 failed, 559 passed, 1 skipped, 4 deselected in 80.33s (0:01:20) =======
https://docs.python.org/3.13/whatsnew/3.13.html
For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-ra...
For all our attempts to build python-aiosmtpd with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-a...
Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/
Let us know here if you have any questions.
Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2244836 [Bug 2244836] Python 3.13
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Miro Hrončok mhroncok@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Link ID| |Github | |aio-libs/aiosmtpd/issues/40 | |3
--- Comment #1 from Miro Hrončok mhroncok@redhat.com --- I've reproduced this upstream and reported https://github.com/aio-libs/aiosmtpd/issues/403
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Sandro Mani manisandro@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2291702
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2291702 [Bug 2291702] F41FailsToInstall: python3-flask-mailman
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Karolina Surma ksurma@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2260877 | |(F41FailsToInstall,RAWHIDEF | |ailsToInstall), 2291557, | |2291558, 2291678, 2291767 CC| |fti-bugs@fedoraproject.org
--- Comment #2 from Karolina Surma ksurma@redhat.com --- *** Bug 2291610 has been marked as a duplicate of this bug. ***
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2260877 [Bug 2260877] Fedora 41 Fails To install Tracker https://bugzilla.redhat.com/show_bug.cgi?id=2291557 [Bug 2291557] F41FailsToInstall: mailman3 https://bugzilla.redhat.com/show_bug.cgi?id=2291558 [Bug 2291558] F41FailsToInstall: python3-mailman3-fedmsg-plugin https://bugzilla.redhat.com/show_bug.cgi?id=2291678 [Bug 2291678] F41FailsToInstall: python3-django4.2 https://bugzilla.redhat.com/show_bug.cgi?id=2291767 [Bug 2291767] F41FailsToInstall: python3-mailman-hyperkitty
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Karolina Surma ksurma@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2291880
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2291880 [Bug 2291880] F41FailsToInstall: python3-pytest-localserver+smtp
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Fedora Fails To Install fti-bugs@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(aurelien@bompard. | |org)
--- Comment #3 from Fedora Fails To Install fti-bugs@fedoraproject.org --- Hello,
Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/
This package fails to install and maintainers are advised to take one of the following actions:
- Fix this bug and close this bugzilla once the update makes it to the repository. (The same script that posted this comment will eventually close this bugzilla when the fixed package reaches the repository, so you don't have to worry about it.)
or
- Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.
or
- Orphan the package if you no longer plan to maintain it.
If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_... will continue. This package may be orphaned in 7+ weeks. This is the first reminder (step 3) from the policy.
Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Sandro Mani manisandro@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |manisandro@gmail.com
--- Comment #4 from Sandro Mani manisandro@gmail.com --- Proposed PR: https://src.fedoraproject.org/rpms/python-aiosmtpd/pull-request/2
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Roman Inflianskas rominf@pm.me changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rominf@pm.me
--- Comment #5 from Roman Inflianskas rominf@pm.me --- Upstream PR: https://github.com/aio-libs/aiosmtpd/pull/473
https://bugzilla.redhat.com/show_bug.cgi?id=2263017
Sandro Mani manisandro@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |RAWHIDE Status|NEW |CLOSED Last Closed| |2024-06-28 23:09:10
--- Comment #6 from Sandro Mani manisandro@gmail.com --- Thanks, I've added the patch to python-aiosmtpd-1.4.4.post2-10.fc41.
epel-packagers-sig@lists.fedoraproject.org