Made easy_toolbox tests use multithreading by default#769
Conversation
|
|
Unfortunately, some tests have depdendencies on state from other ones (??), which causes them to fail occasionally. On a 20-thread cpu I got one failure out of ten runs: I recall that there were more such tests. Running with |
|
Then there is a problem in nightly tests as well and the changes for the CI pipeline should be reverted. In #467, the nightly tests have been modified to use -n auto, which is what this PR was inspired by. In that case, the part that parallelizes CI actions should probably be reverted as well, right? This will be a major slowdown for the pipelines. |
|
I can maybe try to locate badly isolated tests and fix them so they don't depend on each other |



Made the easy_toolbox test command utilize all cpu cores by default. On a good processor, this gave me around 5x speedup when testing locally, and I don't see why it shouldn't be the default.
Nightly tests already use pytest's "-n auto" option anyways, so this is not a relaibility issue.
Runtimes for singlethreaded vs multithreaded tests for reference:

