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
test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD #72470
Comments
The issue bpo-28176 introduced a new unit test which fails randomly on FreeBSD buildbots. Recent example: ====================================================================== Traceback (most recent call last):
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/test_asyncio/test_selector_events.py", line 1868, in test_sock_connect_sock_write_race
timeout=TIMEOUT))
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncio/base_events.py", line 457, in run_until_complete
return future.result()
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncio/futures.py", line 292, in result
raise self._exception
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/asyncio/tasks.py", line 397, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError |
Yury: Since you pushed the change adding the test, can you please take a look? If nobody fixes the unit test, I will revert the change. |
I attached a patch that skips the test in case of a timeout in bpo-28176. Did you had a chance to take a look at it? |
Berker, I think it's an OK workaround. The test is kind of unstable, to the point of me thinking to just remove it (keeping the rest of the patch applied). Feel free to apply it. |
I dislike the idea of a test for a race condition which skips itself if it But I don't have a strong opinion on this issue. |
OK, let's remove the test. I can do that myself in a couple of days. |
New changeset cf93671100bf by Berker Peksag in branch '3.5': New changeset b9f18dcbfc4b by Berker Peksag in branch '3.6': New changeset 27fc857ea8af by Berker Peksag in branch 'default': |
Just saw http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.5/builds/1136/steps/test/logs/stdio and went ahead to remove the test. |
New changeset f7688db81753 by Berker Peksag in branch '3.5': New changeset 0fe04467c4b5 by Berker Peksag in branch '3.6': New changeset 4ba2f6bce7f4 by Berker Peksag in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: