-
Notifications
You must be signed in to change notification settings - Fork 0
chore: enforce min coverage on internal packages #43
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
Conversation
cbartz
left a comment
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.
self-review
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.
Pull request overview
This PR enforces a minimum code coverage threshold of 85% for internal packages in CI, aligning with the team's agreed-upon standards. The internal/telemetry package, which currently has only 30% coverage, is temporarily excluded from coverage analysis pending a team discussion.
- Excludes low-coverage packages from coverage reporting using a filtered package list
- Adds HTML coverage report generation and artifact upload for better visibility
- Implements a coverage gate that fails the CI pipeline if total coverage drops below 85%
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
yanksyoon
left a comment
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.
LGTM after arturoi's comments, thanks!
Overview
Enforce min coverage on internal packages.
Following issues are spotted:
internal/telemetryhas really low coverage of 30 % at the momentIt has been excluded from coverage report, we need a team follow-up discussion on how to deal with this particular package.
Rationale
Fail if agreed min coverage has not been achieved. Team has agreed to comply with min coverage of 85 %.