Skip to content

ci(coverage): include pkg/apis in Codecov coverage tracking#3686

Open
jkhelil wants to merge 1 commit into
tektoncd:mainfrom
jkhelil:fix/codecov-include-pkg-apis
Open

ci(coverage): include pkg/apis in Codecov coverage tracking#3686
jkhelil wants to merge 1 commit into
tektoncd:mainfrom
jkhelil:fix/codecov-include-pkg-apis

Conversation

@jkhelil

@jkhelil jkhelil commented Jul 8, 2026

Copy link
Copy Markdown
Member

Changes

Fix a missed exclusion from the Codecov configuration added in #3684.

pkg/apis/ was incorrectly excluded from coverage tracking. Unlike
pkg/client/ (which is entirely generated), pkg/apis/ contains 38
handwritten test files covering validation, lifecycle, and defaults
logic — all of which should be tracked.

What changes:

  • Remove pkg/apis/** from the .codecov.yaml ignore list
  • Keep pkg/client/** excluded (0 test files, 100% generated code)
  • The one generated file in pkg/apis/ (zz_generated.deepcopy.go)
    remains excluded via the existing **/zz_generated*.go pattern

Submitter Checklist

  • Run make test lint before submitting a PR
  • Includes tests (if functionality changed/added) — config-only change
  • Includes docs (if user facing) — not user facing
  • Commit messages follow commit message best practices

Release Notes

NONE

Made with Cursor

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>
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Jul 8, 2026
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 8, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 24.49%. Comparing base (6ce06ca) to head (a710260).

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           
Flag Coverage Δ
unit-tests 24.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tekton-robot

Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants