-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-3783. Upload coverage even if tests failed #1062
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
|
I was thinking about the same, but I am afraid if we enable it, we got invalid coverage data. Let's say it-client is failing, at least the failing tests will be missing. For me it seems to be more reliable to upload only the full builds. |
I think we get invalid coverage data with the current setup, too. For example #1055 only changes some CSI yaml files, but coverage is said to decrease. I think that's due to using wrong base coverage data. |
Codecov Report
@@ Coverage Diff @@
## master #1062 +/- ##
============================================
- Coverage 69.48% 69.40% -0.09%
+ Complexity 9110 9109 -1
============================================
Files 961 961
Lines 48132 48127 -5
Branches 4672 4676 +4
============================================
- Hits 33446 33403 -43
- Misses 12468 12508 +40
+ Partials 2218 2216 -2 Continue to review full report at Codecov.
|
I am not sure. I thought It would be better to understand the problem of codecov and adjust it. Are you sure that this is the missing piece for the codecov? |
|
BTW we can have different rules for codecov / sonarcloud AFAIK. |
|
Codecov seems to agree with you. ;) It will not compare against commits with failed CI (if it know that CI passed or failed). From the doc:
I think for Ozone:
|
What changes were proposed in this pull request?
PRs get code coverage feedback from Codecov thanks to changes implemented in HDDS-3726. Codecov needs coverage data for each new revision on
master. However, coverage check is currently skipped if any tests fail. This PR proposes to always execute coverage if basic compilation is OK. It still waits for various test runs before execution.https://issues.apache.org/jira/browse/HDDS-3783
How was this patch tested?
Tested conditions on simplified workflow file with both:
Real CI ("unfortunately" all tests passed):
https://github.com/adoroszlai/hadoop-ozone/runs/761992786