Skip to content
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

Fix inconsistent codecov reports #3452

Closed
wants to merge 3 commits into from
Closed

Fix inconsistent codecov reports #3452

wants to merge 3 commits into from

Conversation

eivindjahren
Copy link
Contributor

@eivindjahren eivindjahren commented May 30, 2022

The codecov report is currently not easy to understand and sometimes misleading. This seems to be due to a combination of factors:

To remedy the situation, the coverage reports are now run in a separate workflow, which is triggered by push and not pull request and only run on ubuntu. Also, gcovr is set to count more partial coverage as full coverage if the kind of branch is not of interest.

Pre review checklist

  • Added appropriate release note label
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Commit history is consistent and clean, in line with the contribution guidelines.

Adding labels helps the maintainers when writing release notes. This is the list of release note labels.

@eivindjahren eivindjahren self-assigned this May 30, 2022
@eivindjahren eivindjahren force-pushed the better_codecov branch 3 times, most recently from edd77ce to 9b8d960 Compare May 31, 2022 05:33
As per codecov/codecov-bash#83
codecov has issues with github actions triggered by pullrequest.
To remedy the situation, we use push as a trigger instead.
@eivindjahren eivindjahren force-pushed the better_codecov branch 2 times, most recently from 30f5425 to 1773fc7 Compare May 31, 2022 06:25
@eivindjahren eivindjahren changed the title Use push action for codecov Fix inconsistent codecov reports May 31, 2022
@eivindjahren eivindjahren requested a review from pinkwah May 31, 2022 06:48
@codecov-commenter
Copy link

Codecov Report

Merging #3452 (1773fc7) into main (d594604) will increase coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #3452      +/-   ##
==========================================
+ Coverage   65.35%   65.49%   +0.13%     
==========================================
  Files         603      601       -2     
  Lines       47725    45321    -2404     
  Branches     4225     3775     -450     
==========================================
- Hits        31191    29681    -1510     
+ Misses      15171    14331     -840     
+ Partials     1363     1309      -54     
Impacted Files Coverage Δ
libres/lib/include/ert/logging.hpp 25.00% <0.00%> (-60.00%) ⬇️
libres/lib/python/enkf_defaults.cpp 0.00% <0.00%> (-33.34%) ⬇️
libres/lib/config/conf_util.cpp 40.00% <0.00%> (-21.20%) ⬇️
libres/lib/enkf/value_export.cpp 58.49% <0.00%> (-15.24%) ⬇️
libres/lib/enkf/active_list.cpp 32.55% <0.00%> (-12.90%) ⬇️
libres/lib/python/ensemble_config.cpp 0.00% <0.00%> (-12.50%) ⬇️
libres/lib/analysis/enkf_linalg.cpp 48.48% <0.00%> (-12.33%) ⬇️
libres/lib/python/model_callbacks.cpp 0.00% <0.00%> (-10.00%) ⬇️
libres/lib/analysis/ies/ies_config.cpp 42.85% <0.00%> (-9.65%) ⬇️
libres/lib/include/ert/res_util/string.hpp 60.00% <0.00%> (-9.24%) ⬇️
... and 138 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@eivindjahren eivindjahren force-pushed the better_codecov branch 2 times, most recently from bcaefbe to efc1894 Compare May 31, 2022 09:43
Uses the --coverage option as a short-hand for -fprofile-arcs
-ftest-coverage. Adds -fPIC and removes optimization in order to get
more accurate coverage. Also, does not add -Wall when COVERAGE=ON as
that is an unintended side-effect.
Added gcovr config which excludes partial info
from branches that are not usually considered.
@eivindjahren eivindjahren deleted the better_codecov branch June 14, 2022 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants