-
Notifications
You must be signed in to change notification settings - Fork 159
CI: Flaky tests #632
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
Comments
It's always macOS machines failing. Sometimes there are errors regarding the GUI and then it's very slow. The limit for macOS is also more strict for Github workflows. I will
|
Some failures are database related though: |
You're correct. I noticed that before, but it got more frequent recently. This looks like a race condition, where our BorgThread tries to save a log, while the next test already started and the said table is deleted. I'll look into this again. Just hard to reproduce. |
Could just add a gap in between tests https://stackoverflow.com/questions/47770037/interval-between-tests-in-pytest |
I think the cleaner way is to ensure no background threads are running at the end of the test. |
See my PR to cancel background threads after each test. I ran this 11x and didn't encounter a false positive test failure. Let me know how you find that PR.
|
Leave this open, since there are other unreliable tests left. |
Closing in favor of more detailed discussion on same topic: #748 |
Uh oh!
There was an error while loading. Please reload this page.
Tests sometimes fail without any bad code, examples:
https://github.com/borgbase/vorta/pull/631/checks?check_run_id=1086248541
https://github.com/borgbase/vorta/pull/540/checks?check_run_id=1079839809
https://github.com/borgbase/vorta/pull/628/checks?check_run_id=1085059935
https://github.com/borgbase/vorta/pull/607/checks?check_run_id=1087127941
https://github.com/borgbase/vorta/pull/607/checks?check_run_id=1087128002
Since we can run the tests again, its just annoying.
git commit --allow-empty -m "Make tests go brrrrr"
Maybe fix with pytest-xdist and upping timeouts?
Edit:
https://github.com/borgbase/vorta/runs/1203963170
The text was updated successfully, but these errors were encountered: