Skip to content

Add threshold to codecov.yml#991

Merged
dwhswenson merged 1 commit into
openpathsampling:masterfrom
dwhswenson:codecov-threshold
Mar 13, 2021
Merged

Add threshold to codecov.yml#991
dwhswenson merged 1 commit into
openpathsampling:masterfrom
dwhswenson:codecov-threshold

Conversation

@dwhswenson

@dwhswenson dwhswenson commented Mar 12, 2021

Copy link
Copy Markdown
Member

Some recent PRs that should have no effect on coverage (#990, #984) have been getting complaints from CodeCov because a single line in netcdfplus has become uncovered (not sure if this is flakiness or a change in something upstream).

This PR adds a threshold so CodeCov will pass if flakiness uncovers up to 0.4% of the currently covered code. That corresponds to about 5 Python statements.

This only affects the CodeCov "project" check: the "patch" check will keep its default behavior, which is that coverage for lines changed in the PR must be at least as much as the current total project coverage.

@codecov

codecov Bot commented Mar 12, 2021

Copy link
Copy Markdown

Codecov Report

Merging #991 (3a36f6d) into master (a09f2b3) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #991      +/-   ##
==========================================
- Coverage   80.59%   80.58%   -0.01%     
==========================================
  Files         138      138              
  Lines       14671    14671              
==========================================
- Hits        11824    11823       -1     
- Misses       2847     2848       +1     
Impacted Files Coverage Δ
openpathsampling/netcdfplus/cache.py 61.18% <0.00%> (-0.35%) ⬇️

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 a09f2b3...3a36f6d. Read the comment docs.

@dwhswenson

Copy link
Copy Markdown
Member Author

This is ready for review and comment. I will leave it open for at least 24 hours, merging no earlier than Sat 13 Mar 14:00 GMT (15:00 local).

@sroet sroet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, one minor change to actually set the patch threshold to 100%

Comment thread codecov.yml

@sroet sroet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With the updated description and the confirmation from #992, this LGTM!

@dwhswenson dwhswenson merged commit e48262e into openpathsampling:master Mar 13, 2021
@dwhswenson dwhswenson deleted the codecov-threshold branch March 13, 2021 14:27
@dwhswenson dwhswenson mentioned this pull request Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants