-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
CI: make codecov/project
failed when coverage decreased in pull request
#45557
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @wuhuizuo. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test ? |
@wuhuizuo: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@wuhuizuo: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test unit-test |
@wuhuizuo: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #45557 +/- ##
================================================
+ Coverage 73.2295% 74.7227% +1.4931%
================================================
Files 1265 1278 +13
Lines 389624 403185 +13561
================================================
+ Hits 285320 301271 +15951
+ Misses 86005 83945 -2060
+ Partials 18299 17969 -330
Flags with carried forward coverage won't be shown. Click here to find out more.
|
codecov/project
failed when coverage decreased in pull request.
codecov/project
failed when coverage decreased in pull request.codecov/project
failed when coverage decreased in pull request
default: | ||
threshold: 0.2 #Allow the coverage to drop by threshold%, and posting a success status. | ||
target: auto | ||
threshold: 0% # decline in denial coverage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, are you sure about setting this threshold to 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, only allow the total coverage to drop by 0%.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to set this threshold to 0%, it's better to provide another command to let one reviewer do the final check and then force merge, since we always have code lines that are hard to cover.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite sure whether the zero threshold here is reasonable. The coverage statistics are not always accurate, and the same modification may lead to different results in different environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And as chrysan said above, code lines are not always easy to be covered, for example, some insurance codes written for extreme cases may never be generated in the test environment, which means the coverage drop would never reach 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By removing some useless code and its test, the coverage will drop, but it's acceptable.
/cc @bb7133 PTAL |
/test check? |
@wuhuizuo: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test check-dev2 |
@wuhuizuo: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@wuhuizuo: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@wuhuizuo: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Wow, TiDB developers must be happy with this change because it's so useful 🙏🙏🙏 |
Some offline discussions:
|
Based on our discussion, I'm suggesting that we turn off status feedback on PR until we get the codecov statuses fixed. |
Pause currently |
What problem does this PR solve?
Issue Number: close #45560
Problem Summary:
What is changed and how it works?
.coverage.status.project
to makecodecov/project
github status failed when coverage decreased in pull request.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.