Skip to content

test_asyncio failed: flaky test_sendfile_close_peer_in_the_middle_of_receiving #110325

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

Closed
tasty0tomato opened this issue Oct 4, 2023 · 7 comments
Labels
tests Tests in the Lib/test dir topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@tasty0tomato
Copy link

tasty0tomato commented Oct 4, 2023

I built 3.11.5 on my own Windows computer, and found it passed this test on one computer, but didn't pass on another computer. I think that this issue may not be fixed completely, or I can provide needed information of the computer which this test didn't pass to find out the reason why it didn't pass.

(Originally posted in #85848 (comment))

@AlexWaygood AlexWaygood added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir topic-asyncio labels Oct 4, 2023
@github-project-automation github-project-automation bot moved this to Todo in asyncio Oct 4, 2023
@sobolevn
Copy link
Member

sobolevn commented Oct 4, 2023

Please, provide more information: os name and version, test output, how python was built and executed.

@itamaro itamaro added the pending The issue will be closed if no feedback is provided label Oct 4, 2023
@tasty0tomato
Copy link
Author

OS name: Windows 10

OS version: 19045.3516

Test output(only test_asyncio):

0:00:44 [ 26/434] test_asyncio
test test_asyncio failed -- Traceback (most recent call last):
  File "C:\Python-3.11.5\Lib\test\test_asyncio\test_sendfile.py", line 473, in test_sendfile_close_peer_in_the_middle_of_receiving
    self.assertTrue(1024 <= self.file.tell() < len(self.DATA),
AssertionError: False is not true : 0

How python was built:
Just followed PCbuild/readme.txt, ran build.bat.

@sobolevn
Copy link
Member

sobolevn commented Oct 5, 2023

It has a big history: https://github.com/search?q=repo%3Apython%2Fcpython+test_sendfile_close_peer_in_the_middle_of_receiving&type=issues

Thanks for the details, this test is known to be problematic. You can just ignore it for now.
It should be fixed on our side :)

@tasty0tomato
Copy link
Author

There is one more interesting information. This test passes sucessfully on my another Windows 10 19045.3516 computer. So I think maybe OS is not the reason.

@sobolevn sobolevn changed the title test_asyncio failed test_asyncio failed: flaky test_sendfile_close_peer_in_the_middle_of_receiving Oct 6, 2023
@sobolevn sobolevn removed the pending The issue will be closed if no feedback is provided label Oct 6, 2023
@gvanrossum
Copy link
Member

Wasn't this fixed?

@tasty0tomato
Copy link
Author

Yes, at least this problem is fixed in 3.11.7, but I find another issue in 3.11.7 which has been reported in #113026.

@github-project-automation github-project-automation bot moved this from Todo to Done in asyncio Mar 2, 2024
@tasty0tomato
Copy link
Author

Well, because of some reasons, I need to build a python3.8.19. And it also has this kind of errors. But it seems that python 3.8 will be eol by the end of this year. So, anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-asyncio type-bug An unexpected behavior, bug, or error
Projects
Status: Done
Development

No branches or pull requests

5 participants