ci(coverage): include pkg/apis in Codecov coverage tracking#3686
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3686 +/- ##
=======================================
Coverage 24.49% 24.49%
=======================================
Files 470 470
Lines 24919 24919
=======================================
Hits 6103 6103
Misses 18122 18122
Partials 694 694
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester 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 |
infernus01
left a comment
There was a problem hiding this comment.
LGTM. but, there was one more comment from Emil on the previous PR - #3684 (review)
pkg/apis contains 38 handwritten test files covering validation, lifecycle, and defaults logic — it should not be excluded. Only pkg/client is excluded as it is entirely generated code with no test files. The single generated file in pkg/apis (zz_generated.deepcopy.go) is already excluded by the existing **/zz_generated*.go pattern. Signed-off-by: Jawed khelil <jkhelil@redhat.com> Assisted-by: Claude Sonnet 4.6 (via Cursor) Co-authored-by: Cursor <cursoragent@cursor.com>
a710260 to
509f41f
Compare
|
@enarha @infernus01 it is now fixing issue raised. y Emil |
Changes
Fix a missed exclusion from the Codecov configuration added in #3684.
pkg/apis/was incorrectly excluded from coverage tracking. Unlikepkg/client/(which is entirely generated),pkg/apis/contains 38handwritten test files covering validation, lifecycle, and defaults
logic — all of which should be tracked.
What changes:
pkg/apis/**from the.codecov.yamlignore listpkg/client/**excluded (0 test files, 100% generated code)pkg/apis/(zz_generated.deepcopy.go)remains excluded via the existing
**/zz_generated*.gopatternSubmitter Checklist
make test lintbefore submitting a PRRelease Notes
Made with Cursor