Skip to content

[WIP] - Add Codecov integration for unit test coverage#1446

Open
anahas-redhat wants to merge 1 commit intoopenshift:mainfrom
anahas-redhat:codecov
Open

[WIP] - Add Codecov integration for unit test coverage#1446
anahas-redhat wants to merge 1 commit intoopenshift:mainfrom
anahas-redhat:codecov

Conversation

@anahas-redhat
Copy link
Contributor

@anahas-redhat anahas-redhat commented Feb 12, 2026

The Code Coverage Working Group—one of the four Quality WGs established earlier this year—is focused on identifying testing gaps to improve overall project reliability.

This PR serves as the first step in that process: configuring the kueue-operator with Codecov. In this initial phase, we are focusing exclusively on unit tests. Measurement for E2E tests will be integrated in a future iteration.

Changes in this PR:

  • Configuration: Added codecov.yml with defined project/patch coverage thresholds and exclusion rules (vendor, upstream, generated, and test directories).
  • Automation: Introduced hack/codecov.sh to execute unit tests with coverage profiling and upload results via the Codecov CLI
  • Tooling: Added a make coverage Makefile target to provide a consistent entry point for both local development and CI pipelines.

A previous of current results (executed manually), can be checked here: https://app.codecov.io/github/openshift/kueue-operator

- Add codecov.yml with project/patch coverage thresholds and ignore
  rules for vendor, upstream, generated, and test directories
- Add hack/codecov.sh script to run unit tests with coverage profiling
  and upload results to Codecov via CLI with cross-platform support
  (Linux and macOS)
- Add `make coverage` Makefile target as the entrypoint for running
  coverage locally and in CI
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 12, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 12, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci
Copy link

openshift-ci bot commented Feb 12, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: anahas-redhat
Once this PR has been reviewed and has the lgtm label, please assign rphillips for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@openshift-ci
Copy link

openshift-ci bot commented Feb 12, 2026

@anahas-redhat: all tests passed!

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

Copy link
Member

@psturc psturc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@anahas-redhat
Copy link
Contributor Author

/unhold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants