Repository navigation
SREP-4484: Enable Codecov Enforcement - #720
openshift-merge-bot[bot] merged 3 commits into
Conversation
|
@devppratik: This pull request references SREP-4484 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| patch: | ||
| default: | ||
| target: 50% | ||
| threshold: 1% |
There was a problem hiding this comment.
Is there a way to ensure the code coverage doesn't decrease instead of using a fixed number? With coding agents, we want to see the percentage stay the same or go up. This mitigates the risk that unattended coding agents go wild generating untested and untestable code.
There was a problem hiding this comment.
Patch coverage = coverage of new/changed lines only. Ensures any new code added by agents is tested. We can increase the target % to ensure new code is tested
There was a problem hiding this comment.
That seems reasonable, thanks! Do we need the project default then? If a project is at 20% does, the build fail because the coverage is too low overall? I don't want to punish a project for low test coverage today. I want to punish them for not improving or holding constant.
There was a problem hiding this comment.
I agree with George, we only want to encourage test coverage for new code. However, I don't want unit tests that test the compiler, so we need to come up with a pattern here that doesn't give us unnecessary test bloat. One solution could just be making codecov optional, or, overriding in cases where a maintainer disagrees that more tests are needed.
There was a problem hiding this comment.
@geowa4 The current project default is at 50%. I can reduce it to about 40%. I did a audit of repos and it seems almost of our repos are more than 40% at the test coverage
One solution could just be making codecov optional, or, overriding in cases where a maintainer disagrees that more tests are needed.
@joshbranham Agreed. While this is the base common config, repos should be able to update the values themselves
|
/hold |
|
/unhold |
|
/lgtm |
|
/hold Putting on hold until APAC Time to merge and update operators |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bmeng, devppratik, krishvoor The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/unhold |
As a part of SREP-4484, Enable and configure codecov status checks with coverage thresholds