-
Notifications
You must be signed in to change notification settings - Fork 425
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
tests: split DDP & common + running xdist #2127
Conversation
Seems like this does not even start properly, could be because of? torchmetrics/tests/unittests/conftest.py Lines 55 to 73 in 886c09b
cc: @SkafteNicki |
Yeah that would definitely be the problem, if I remember correctly you cannot start a child process inside a child process. So I am not sure if we will be able to use xdist for testing. |
I can get it to run locally, but it is complaining with error
meaning that we need to refactor the code where we initialize the pool used for multiprocessing testing if we want this PR do land. |
Pivoting and splitting into two steps can eventually be different jobs. BTW, mowing unittest action to the main workflow as we do not use conda env anymore so, having it separately does not make sense anymore, and it will be easier to read/follow steps |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2127 +/- ##
========================================
- Coverage 87% 33% -54%
========================================
Files 303 303
Lines 17059 17059
========================================
- Hits 14821 5613 -9208
- Misses 2238 11446 +9208 |
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.
Fantastic work @Borda
Great job @Borda ⚡️ |
@Borda Wuaah, this is amazing! 🥇 |
(cherry picked from commit fd2e332)
What does this PR do?
Identify DDP tests and split testing into two steps:
In addition move unitest steps back to the main workflow
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃
📚 Documentation preview 📚: https://torchmetrics--2127.org.readthedocs.build/en/2127/