-
Notifications
You must be signed in to change notification settings - Fork 87
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
Parallelize tests using pytest-xdist #820
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #820 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 138 138
Lines 11044 11074 +30
Branches 1565 1569 +4
=========================================
+ Hits 11044 11074 +30 ☔ View full report in Codecov by Sentry. |
@@ -61,6 +61,7 @@ def celery_worker(celery_app: Celery) -> Iterator[WorkController]: | |||
yield worker | |||
|
|||
|
|||
@pytest.mark.xdist_group(name='sequential') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm removing this one because I think this test is just flaky, I can't see evidence that xdist makes this fail more often.
2bc8f76
to
232f66e
Compare
@sorasful awesome, thanks for the speedup! Is there a way to make it use |
Hi there!
I've noticed that the tests took a little while to run. So I've decided to see if we could parallelize them, I used
pytest-xdist
.For very few tests (3), concurrency was a problem so I've decided to run them sequentially. I followed this issue to implement this :
pytest-dev/pytest-xdist#385
Now everything runs smoothly and quickly.