Skip to content

Add a threshold for codecov failure#18964

Merged
serathius merged 1 commit intoetcd-io:mainfrom
jmhbnz:main
Nov 30, 2024
Merged

Add a threshold for codecov failure#18964
serathius merged 1 commit intoetcd-io:mainfrom
jmhbnz:main

Conversation

@jmhbnz
Copy link
Copy Markdown
Member

@jmhbnz jmhbnz commented Nov 30, 2024

Now that we have enabled proper codecov integration in kubernetes/org#5231 we have noticed pr's being failed for coverage reductions that are trivial, i.e. < .1%.

Let's try and introduce some configuration to make codecov only fail when a meaningful reduction in coverage has occurred.

cc @serathius

Signed-off-by: James Blair <mail@jamesblair.net>
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.74%. Comparing base (4068189) to head (977cee3).
Report is 8 commits behind head on main.

Additional details and impacted files

see 21 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #18964      +/-   ##
==========================================
+ Coverage   68.67%   68.74%   +0.07%     
==========================================
  Files         420      420              
  Lines       35583    35583              
==========================================
+ Hits        24438    24463      +25     
+ Misses       9713     9690      -23     
+ Partials     1432     1430       -2     

Continue to review full report in Codecov by Sentry.

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

Copy link
Copy Markdown
Member

@serathius serathius left a comment

Choose a reason for hiding this comment

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

1% of whole codebase might make it never trigger. On the other hand I don't think kind of check could be ever automated. Would rather depend on approvers to see that there is a new feature with low covereage.

@k8s-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, jmhbnz, serathius

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [ahrtr,jmhbnz,serathius]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@serathius serathius merged commit 278a9a2 into etcd-io:main Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants