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

🔧 Add patch threshold for codecov #4413

Merged
merged 3 commits into from
Sep 30, 2020
Merged

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Sep 30, 2020

The project diff percentage is the change in coverage w.r.t. all lines in the project, whereas the patch diff percentage is the change in coverage w.r.t. only lines touched by the PR
The patch threshold is currently defaulting to 0%, hence it is very easy to fail.

You might even want to increase this threshold, since a smaller amount of uncovered lines will lead to a larger diff percentage, relative to the project diff.

@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Merging #4413 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #4413   +/-   ##
========================================
  Coverage    79.23%   79.23%           
========================================
  Files          475      475           
  Lines        34826    34826           
========================================
  Hits         27591    27591           
  Misses        7235     7235           
Flag Coverage Δ
#django 73.08% <ø> (ø)
#sqlalchemy 72.29% <ø> (-<0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af91a8b...359dc48. Read the comment docs.

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great if this can get rid of false positives of failing builds due to so-called reduced coverage. However, I definitely think we need to up the threshold. The 0.02% is based on all the lines in the project which is huge. Very few patches will come close. I am thinking 0.1% would already be a lot more reasonable don't you think? With 0.02% we would still see the false positives very often I think

codecov.yml Outdated Show resolved Hide resolved
@chrisjsewell
Copy link
Member Author

absolutely, just changed

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go thanks @chrisjsewell

@sphuber sphuber merged commit 4544bc4 into aiidateam:develop Sep 30, 2020
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.

None yet

2 participants