Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent test failures in test test_asyncio.test_streams.test_drain_raises on Windows #98703

Closed
Fidget-Spinner opened this issue Oct 26, 2022 · 5 comments
Assignees
Labels
3.10 only security fixes 3.11 only security fixes 3.12 bugs and security fixes topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@Fidget-Spinner
Copy link
Member

Run python_d.exe -m test test_asyncio -m test_drain_raises -F on Windows. The test eventually fails after some repetitions.

The problem is that _call_connection_lost can be called multiple times, even after the socket by the proactortransport is closed. So it's calling close() on something that is already set to None.

I have a PR to fix it.

@Fidget-Spinner
Copy link
Member Author

Fidget-Spinner commented Oct 26, 2022

@pablogsal sorry to bother you right after the monumental 3.11 release (thanks for that by the way!). However, I'm setting this as release blocker as it's causing the Windows Buildbots to occasionally fail https://buildbot.python.org/all/#/builders/146.

I have already created a PR to fix this.

@pablogsal
Copy link
Member

Thanks a lot @Fidget-Spinner 🙏

@gvanrossum
Copy link
Member

Does it needs to be a release blocker? Or just be backported?

@Fidget-Spinner
Copy link
Member Author

Does it needs to be a release blocker? Or just be backported?

It causes the release status page to flicker in and out of being releasable and non-releasable. That's a release blocker IMO.

Fidget-Spinner added a commit that referenced this issue Oct 27, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 27, 2022
…lost multiple times (pythonGH-98704)

Co-authored-by: Kumar Aditya <[email protected]>
(cherry picked from commit 8a75542)

Co-authored-by: Ken Jin <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 27, 2022
…lost multiple times (pythonGH-98704)

Co-authored-by: Kumar Aditya <[email protected]>
(cherry picked from commit 8a75542)

Co-authored-by: Ken Jin <[email protected]>
miss-islington added a commit that referenced this issue Oct 27, 2022
…ultiple times (GH-98704)

Co-authored-by: Kumar Aditya <[email protected]>
(cherry picked from commit 8a75542)

Co-authored-by: Ken Jin <[email protected]>
miss-islington added a commit that referenced this issue Oct 27, 2022
…ultiple times (GH-98704)

Co-authored-by: Kumar Aditya <[email protected]>
(cherry picked from commit 8a75542)

Co-authored-by: Ken Jin <[email protected]>
@Fidget-Spinner Fidget-Spinner moved this from In Progress to Done in Release and Deferred blockers 🚫 Oct 27, 2022
@Fidget-Spinner Fidget-Spinner moved this from Todo to Done in asyncio Oct 27, 2022
@Fidget-Spinner Fidget-Spinner moved this from Done to In Progress in asyncio Oct 27, 2022
@Fidget-Spinner
Copy link
Member Author

Waiting for Kumar's tests to land before I close this issue. It's no longer a release blocker though.

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 27, 2022
… proactor event loop (pythonGH-98730)

(cherry picked from commit 96ae80f)

Co-authored-by: Kumar Aditya <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 27, 2022
… proactor event loop (pythonGH-98730)

(cherry picked from commit 96ae80f)

Co-authored-by: Kumar Aditya <[email protected]>
miss-islington added a commit that referenced this issue Oct 27, 2022
…tor event loop (GH-98730)

(cherry picked from commit 96ae80f)

Co-authored-by: Kumar Aditya <[email protected]>
miss-islington added a commit that referenced this issue Oct 27, 2022
…tor event loop (GH-98730)

(cherry picked from commit 96ae80f)

Co-authored-by: Kumar Aditya <[email protected]>
Repository owner moved this from In Progress to Done in asyncio Oct 27, 2022
gvanrossum pushed a commit to gvanrossum/cpython that referenced this issue Oct 28, 2022
gvanrossum pushed a commit to gvanrossum/cpython that referenced this issue Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes 3.11 only security fixes 3.12 bugs and security fixes topic-asyncio type-bug An unexpected behavior, bug, or error
Projects
Status: Done
Development

No branches or pull requests

4 participants