XRPLF / rippled

Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++
https://xrpl.org
ISC License
4.48k stars 1.45k forks source link

Codecov coverage reporting fixes #4977

Closed Bronek closed 2 months ago

Bronek commented 2 months ago

High Level Overview of Change

Make codecov reporting stable by disabling plugins, disabling reporting of src/test and switching partials_as_hits

Context of Change

Type of Change

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 70.8%. Comparing base (8b0d049) to head (0a308af).

:exclamation: Current head 0a308af differs from pull request most recent head 69c6917. Consider uploading reports for the commit 69c6917 to get more accurate results

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/XRPLF/rippled/pull/4977/graphs/tree.svg?width=650&height=150&src=pr&token=i2RPGI5xGF&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XRPLF)](https://app.codecov.io/gh/XRPLF/rippled/pull/4977?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XRPLF) ```diff @@ Coverage Diff @@ ## develop #4977 +/- ## ========================================== - Coverage 77.0% 70.8% -6.2% ========================================== Files 1129 796 -333 Lines 132027 66781 -65246 Branches 39711 11049 -28662 ========================================== - Hits 101647 47273 -54374 + Misses 24502 19508 -4994 + Partials 5878 0 -5878 ``` [see 779 files with indirect coverage changes](https://app.codecov.io/gh/XRPLF/rippled/pull/4977/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XRPLF) [![Impacted file tree graph](https://app.codecov.io/gh/XRPLF/rippled/pull/4977/graphs/tree.svg?width=650&height=150&src=pr&token=i2RPGI5xGF&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XRPLF)](https://app.codecov.io/gh/XRPLF/rippled/pull/4977?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=XRPLF)
Bronek commented 2 months ago

Proposed merge message:

* Amend `.codecov.yml` to disable coverage reporting of tests sources and explicitly set most parameters
* Increase codecov upload retry time to 210s (from 35s)
* Upgrade gcovr adding support for more coverage formats (lcov, clover, jacoco)
* Upgrade github actions in coverage workflow
* Explicitly disable codecov plugins (also removing `gcov` coverage, which is not correctly handled by codecov https://github.com/codecov/feedback/issues/334 )