-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
gh-106458: Mark testthreadingmock.py
with @requires_working_threading
#106366
Conversation
Please add "test-with-buildbots" label once complete so that you can run the PR on all buildbots without merging that will help in testing this. |
testthreadingmock.py
with requires_working_threadingtestthreadingmock.py
with @requires_working_threading
@tirkarthi can you add the label please? |
🤖 New build scheduled with the buildbot fleet by @AlexWaygood for commit cddd99d 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Looks like this test is still sad on WASM:
Given the diff in this PR, I wonder why it's still being run? |
That tests a race condition. Seems the two lines after that take more than 100ms, let me fix it |
Can you trigger another run of buildbots? |
🤖 New build scheduled with the buildbot fleet by @AlexWaygood for commit f3d8389 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
This should be good to land @cjw296, the failing build bots are in venv, extensions or grammar, which is unrelated from the change we did. |
@mariocj89 unfortunately there's now a merge conflict. |
testthreadingmock.py
with @requires_working_threading
testthreadingmock.py
with @requires_working_threading
While we wait on the merge conflict to be fixed, I opened #106458 to track this specific test failure. |
@@ -133,9 +137,7 @@ def test_wait_failed_with_timeout_override(self): | |||
|
|||
with patch(f"{__name__}.Something", waitable_mock): | |||
something = Something() | |||
self.run_async(something.method_1, delay=0.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mariocj89 - this change and the ones below confuse me, are they intentional or just a result of a bad attempt of mine to resolve the conflicts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is indeed part of the change. Trying to reduce the chance of a race condition (as that's what this test is doing though)
…reading The test uses threading and it should declare that it uses it to prevent failures on archs where creating threads don't work.
Add longer delays to reduce the change of a race conditions on the tests that validate short timeouts.
8b1d248
to
78d9031
Compare
I've just rebased all change son top of main, should be good to go |
Thanks! |
test_unittest
failing due totest/test_unittest/testmock/testthreadingmock
assuming threading exists #106458