-
Notifications
You must be signed in to change notification settings - Fork 66
Improve coverage in multiprocessing cases #1053
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1053 +/- ##
==========================================
+ Coverage 68.93% 69.30% +0.36%
==========================================
Files 438 445 +7
Lines 22889 23891 +1002
Branches 3106 3262 +156
==========================================
+ Hits 15779 16557 +778
- Misses 5793 5958 +165
- Partials 1317 1376 +59
|
Hello @EmmaRenauld, Thank you for updating !
Comment last updated at 2024-11-21 17:08:12 UTC |
39e678b
to
f4b5b56
Compare
Not changed: everything in scilpy.tracking.Tracker (too complicated). I used the keyword search "Pool" to find these methods. There could be others. |
That gave us a 0.36% upgrade. I was hoping for more, but still. File by file: |
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.
LGTM !
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 read the code and everything looks good to me. I approve!
It's sad though that we need to add cases to our code to increase our code coverage by 0.36%. Also for my information, is it only multiprocessing that codecov has a problem handling or is it function callbacks in general?
I'm not sure yet. These are a few methods that I found that were not covered when I was investigating which unit test I should do next. If I find others, I will try to manage them too. It's only 0.36%, sure, but it still helps me a lot when I want to check if some functions are simply never used anywhere. |
Our coverage with codecov does not read lines that are called through multiprocessing (Pool).
I separated the case nbr_processes=1 :
All impacted scripts tested locally with both
--processes 1
and--processes 4
(I changed manually the values in each script test).