-
Notifications
You must be signed in to change notification settings - Fork 730
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
Flaky Python tests #8255
Comments
Will look into the first one! |
I suspect, but am not certain, that it is happening during the multiprocessing run of the tests. |
Will need to look into why that's the case. |
Closed in error -- only partially fixed |
I ran into the last one and it comes from a lack of consistent request mocking. That was exacerbated by 8e64e45 since it now does a |
More details for the MacOS worker test failure:
|
Observed behavior
This is a tracking issue to keep track of a few different Python tests that occasionally fail:
kolibri/core/tasks/test/taskrunner/test_job_running.py
test_can_cancel_a_job
kolibri/core/tasks/test/taskrunner/test_worker.py
test_high_tasks_dont_wait_when_regular_workers_busy
can sometimes fail with the fetched job being None - this test seems to specifically only fail on MacOS test runners, when multiprocessing is being used.kolibri/core/content/test/test_content_app.py
for Postgres tests only, anything using_assert_nodes
- can seemingly fall victim to inconsistent ordering on occasion (not fixed by Sort data to prevent flaky postgres tests. #8711) - it seems that the ordering did not go far enough, most recent failures suggest that this is actually a result of inconsistent ordering of the files! Fixing that should fix the issue.In- I think this was resolved by adding time.sleep into tests to ensure proper ordering by time.kolibri/core/device/test/test_syncqueue.py
for Windowstest_position_in_queue
can occasionally fail with the position being 4 instead of 5Fixed in Catch connection errors when validating tokens with KDP. #8559kolibri/core/test/test_key_urls
/api/auth/portal/validate_token/
request is sensitive to Internet connectivity and will give a 500 when unable to connect - this should be updated to give a more semantic error.The text was updated successfully, but these errors were encountered: