Uh oh!
There was an error while loading. Please reload this page.
gh-106458: Mark testthreadingmock.py with @requires_working_threading - #106366
Conversation
tirkarthi
commented
Jul 3, 2023
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_threadingmariocj89
commented
Jul 3, 2023
@tirkarthi can you add the label please? |
bedevere-bot
commented
Jul 3, 2023
🤖 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. |
cjw296
commented
Jul 3, 2023
Looks like this test is still sad on WASM: Given the diff in this PR, I wonder why it's still being run? |
mariocj89
commented
Jul 3, 2023
That tests a race condition. Seems the two lines after that take more than 100ms, let me fix it |
mariocj89
commented
Jul 3, 2023
Can you trigger another run of buildbots? |
bedevere-bot
commented
Jul 3, 2023
🤖 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. |
mariocj89
commented
Jul 4, 2023
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. |
brettcannon
commented
Jul 5, 2023
@mariocj89 unfortunately there's now a merge conflict. |
testthreadingmock.py with @requires_working_threadingtestthreadingmock.py with @requires_working_threadingbrettcannon
commented
Jul 5, 2023
While we wait on the merge conflict to be fixed, I opened #106458 to track this specific test failure. |
| 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.
@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.
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
78d9031Comparemariocj89
commented
Jul 6, 2023
I've just rebased all change son top of main, should be good to go |
bedevere-bot
commented
Jul 6, 2023
brettcannon
commented
Jul 6, 2023
Thanks! |
test_unittestfailing due totest/test_unittest/testmock/testthreadingmockassuming threading exists #106458