-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Ingest coverage data only for the files in the filter that actually have some #877
Conversation
Codecov Report
@@ Coverage Diff @@
## 9.2 #877 +/- ##
============================================
- Coverage 83.10% 83.03% -0.07%
- Complexity 1116 1117 +1
============================================
Files 62 62
Lines 3652 3655 +3
============================================
Hits 3035 3035
- Misses 617 620 +3
Continue to review full report at Codecov.
|
deb3d57
to
ac4309d
Compare
@krakjoe You wanted a ping when the PCOV driver is changed. |
@indreka Can you please test whether this patch improved PCOV driver performance for you? Thanks! |
There is no sense in entering collect() or calling clear(), if there is nothing returned from waiting() |
@sebastianbergmann I can confirm that the proposed change works very well! |
Thank you for your feedback. However, I am not sure whether the patch changes the code to do what you propose (in which I case I would accept it). Might be because I have a hard time understanding the line of code in question due the use of the ternary operator. @dvdoug Could you please change the code to not use a ternary? Thanks! |
I'm not sure if that was directed at me. For the avoidance of any doubt: Do not call collect unconditionally. Do not call clear if nothing was returned from waiting(). This is for performance reasons, and this code is extremely perf sensitive; It cannot make unnecessary calls. |
It was, sorry for not being clear about this.
@dvdoug Can you incorporate Joe's suggestions? Thanks! |
Can confirm that in circleci this change seems to make coverage scan ~5% faster when comparing to previous phpunit 8.5 + pcov setup we had |
Happy to reorganise things to do this, but if a testcase runs without managing to cover a single line of relevant source code then I'd honestly be pretty surprised. I'd have thought that the overhead of including an additional |
Thank you, @dvdoug! |
For #876. The Psalm failure is bogus, its not even on a changed line!