add pytest-split to allow splitting test running in groups#2589
add pytest-split to allow splitting test running in groups#2589
Conversation
|
Hi @rochdev ! What scenarios do you want to split ? If it's parametric, there is already pytest-xdist on the repo, if it's not activated on your repo, I can help you on that. If it's other scenarios, unfortunately it won't work, as the test part of the run is actually the fasted, The long part is spawning the infra, and running the set-up, which can't be splitted. The solution here is parallel execution in the CI, where I can also help. |
cbeauchesne
left a comment
There was a problem hiding this comment.
Added a comment yesterday 👆
First step is parametric, but then other tests as well if at all possible. For xdist, unfortunately it doesn't help at all, and parallelizing on 16 cores didn't make any difference unfortunately (well, a tiny difference of maybe 20% but that could just be faster cores). |
e999295 to
a06a01c
Compare
a06a01c to
d0bd623
Compare
Motivation
System tests are notoriously slow to the point that they are quickly becoming unusable as they take too long to run. While improving their speed would definitely be the better option, having the ability to split the tests on multiple machines is a quick fix that will allow running them faster at least in CI.
Changes
Add
pytest-splitto allow splitting test running in groups.Workflow
codeownersfile quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
run-parametric-scenario,run-profiling-scenario...) are presents[<language>], double-check that only<language>is impacted by the changebuild-XXX-imagelabel is present