Repository navigation
ci: restore test coverage reporting - #3077
HarshPopat23 wants to merge 1 commit into
Conversation
Signed-off-by: HarshPopat23 <musichk61@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
🎉 Welcome to the Kubeflow Spark Operator! 🎉 Thanks for opening your first PR! We're happy to have you as part of our community 🚀 Here's what happens next:
Join the community:
Feel free to ask questions in the comments if you need any help or clarification! |
|
Thanks @vjanelle. I used the same pinned I omitted Trainer's Please let me know if there is any additional part of the Trainer configuration you intended me to mirror. |
|
Nice PR — SHA-pinning the action and deferring the threshold rather than inventing one are both the right calls. A few things worth checking: 1. 2. Coveralls needs enabling first. Someone with admin has to add 3. The baseline may be understated. 4. Generated code. #3076 asks for explicit exclusions for generated /non-testable code. |
|
Thanks for the detailed review. I agree that the repository must first be enabled in Coveralls. I’ll document that dependency and ask a maintainer to enable it before relying on the badge. I also checked the I agree generated-code exclusions need an explicit policy. I’ll clarify that this PR restores reporting only, with exclusions and enforcement remaining follow-up work after the first |
|
/ok-to-test |
|
Thanks @tariq-hasan , |
What this PR does / why we need it
Spark Operator already generates
cover.outas part ofmake unit-test, but the coverage profile is currently discarded when CI finishes. This means coverage trends and regressions are not visible during review.This PR restores coverage reporting following the existing Kubeflow Trainer workflow pattern.
Changes
cover.outprofile to Coveralls after Go unit tests.actions-goverallsaction and configuration as Kubeflow Trainer.Coverage enforcement
This PR intentionally does not hard-code an arbitrary coverage threshold.
The first successful report on
mastershould establish the repository baseline. Maintainers can then enable Coveralls status checks and configure the agreed coverage/decrease thresholds in the repository's Coveralls settings, as proposed in #3076.A local Windows run produced an approximate 34.3% profile, but I am not treating that as the repository baseline because the envtest suites fail during
AfterSuiteteardown on native Windows when stoppingkube-apiserverandetcd. The test specs themselves completed successfully; the authoritative baseline should come from the Linux CI run.Validation
git diff --checkRelated to #3076
Scope and operational prerequisite
This PR restores coverage profile reporting only.
Before uploads and the README badge can become functional, an authorized maintainer must enable
kubeflow/spark-operatorin Coveralls. The badge may displayunknownuntil the first successful upload frommaster.Coverage thresholds and reviewed exclusions for generated or non-testable code will be handled separately after the Linux CI baseline is available.
Coveralls repository enablement is tracked in #3089