Open dmoklaf opened 4 hours ago
Bisecting would be useful, if course. It sounds it might be necessary to use a fuzzer to reproduce. I wonder if writing hypothesis tests could reveal some corner cases...
I did bisect, and it's definitely 2.4.2 - the new classes added there are causing this.
It would be great if you could come up with a minimum reproducer. This code is copied from cpython main so we will need to let them know as well.
Within 2.4.2, do we have a specific commit causing this?
Also, is this serious enough to yank the version from PyPI?
As far as I am concerned, I had to rollback to 2.4.1. I just can't use 2.4.2, it crashes immediately, again and again. Unfortunately, I can't today dig into this (extracting a reproducible case) but clearly 2.4.2 is not functional, at least for aiohttp client use cases similar to mine (crawling a few websites, only a few hundred pages per day). Note: I make a very standard use of aiohttp or python asyncio library and runtime. No hack, no side threads, no calls to undocumented APIs, nothing out of what is stated in the aiohttp documentation. This code has been very stable over the last 2 years.
Within 2.4.2, do we have a specific commit causing this?
2.4.2 is made of 2 commits: https://github.com/aio-libs/aiohappyeyeballs/compare/v2.4.1...v2.4.2
The second one (https://github.com/aio-libs/aiohappyeyeballs/commit/04dbbe5be7c38bdbf8ec9e31491fe4d052d15908) is dedicated only to updating the version numbers from 2.4.1 to 2.4.2. So it is the first commit (#95) which is responsible for the bug
I made a big mistake (sorry for that I relied on the conda installer and did not see it did not have 2.4.1 available) - I thought I had tested 2.4.1 successfully but my package installer (conda forge) had installed 2.4.0.
After re-running everything, it is indeed 2.4.1 which is faulty. It has several commits so I don't know yet which one is wrong (I will have to bisect)
Describe the bug Running the most recent versions of
aiohappyeyeballs
(2.4.2) withaiohttp
triggers anAssertionError
withinaiohappyeyeballs
:Running the exact same code with
aiohappyeyeballs
2.4.1 or 2.4.0 triggers no such bug.To Reproduce No clear steps, as this is generated by a crawler with a lot of URIs. Could try to extract a simple case if this is necessary.
Additional context Python artifacts:
Installed through miniforge:
OS: