← Back to Pull requests

test: remove programmatic skips #4271

Open
dsanatar opened this pull request with 1797 lines diff across 21 files
View on GitHub
dsanatar dsanatar commented on Sep 03, 2026 15:32 UTC
Author

<!-- Thanks for sending a pull request! Here are some tips for you:
1. Follow the instructions for writing a release note from k8s: https://git.k8s.io/community/contributors/guide/release-notes.md
-->

What this PR does / why we need it:
Removes all remaining programmatic skips in our functional tests and replaces them with ginkgo labels. We can use these labels to skip tests before they run rather than having to perform test setup and potentially skip and exit early.

Updates to the runner script run-functional-tests.sh to dynamically query the capabilities of the running cluster prior to test execution. From these capabilities, we can build a list label groupings that should be skipped based on whether the cluster will fail to meet the requirements of a given test. These labels will then be passed in to the ginkgo --label-filter argument

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Release note:
<!-- Write your release note:
1. Enter your extended release note in the below block. If the PR requires additional action from users switching to the new release, include the string "action required".
2. If no release note is required, just write "NONE".
-->
``release-note
NONE
``

Diff: 1797 lines (+786 / -1011) across 21 files Reviewer: awels Review duration: 130396m
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.79) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.79 · 1797 lines diff across 21 files
0.79
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 5 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
88%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.400
Mass File Touch mass_file_touch
0.080
Real PR Conversation Timeline
16 items
kubevirt-prow[bot] kubevirt-prow[bot] commented on Sep 03, 2026 15:32 UTC
Bot

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

kubevirt-prow[bot] kubevirt-prow[bot] commented on Sep 03, 2026 15:32 UTC
Bot

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

The full list of commands accepted by this bot can be found here.

<details open>
Needs approval from an approver in each of these files:

  • OWNERS
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":["aglitke"]} -->

    dsanatar dsanatar commented on Sep 03, 2026 15:33 UTC
    Author

    /test pull-containerized-data-importer-e2e-ceph

    dsanatar dsanatar commented on Sep 03, 2026 16:06 UTC
    Author

    /test pull-containerized-data-importer-e2e-ceph

    dsanatar dsanatar commented on Sep 03, 2026 20:17 UTC
    Author

    /test pull-containerized-data-importer-e2e-ceph

    dsanatar dsanatar commented on Sep 04, 2026 17:59 UTC
    Author

    /test pull-containerized-data-importer-e2e-ceph

    dsanatar dsanatar commented on Sep 04, 2026 19:13 UTC
    Author

    /test pull-containerized-data-importer-e2e-ceph

    dsanatar dsanatar commented on Sep 08, 2026 14:39 UTC
    Author

    /test pull-containerized-data-importer-e2e-ceph

    dsanatar dsanatar commented on Sep 08, 2026 14:40 UTC
    Author

    /test pull-containerized-data-importer-e2e-ceph-wffc pull-containerized-data-importer-e2e-hpp-latest pull-containerized-data-importer-e2e-istio

    coveralls coveralls commented on Sep 08, 2026 19:59 UTC
    Contributor

    ![Coverage Status](https://coveralls.io/builds/81698498)

    coverage: 49.774% (+0.04%) from 49.738% — dsanatar:remove-test-skips into kubevirt:main

    awels awels commented on code on Sep 10, 2026 18:33 UTC
    Code Review
    tests/cloner_test.go:1
    @@ -376,171 +363,162 @@ var _ = Describe("all clone tests", func() {
     				completeClone(f, f.Namespace, targetPvc, filepath.Join(testBaseDir, testFile), fillDataFSMD5sum, "")
     			})
     
    -			DescribeTable("Should clone data from filesystem to block", func(preallocate bool) {
    -				if !f.IsBlockVolumeStorageClassAvailable() {
    -					Skip("Storage Class for block volume is not available")
    -				}
    -				if cloneType == "csi-clone" || cloneType == "snapshot" {
    -					Skip("csi-clone only works for the same volumeMode")
    -				}
    -				dataVolume := utils.NewDataVolumeWithHTTPImport(dataVolumeName, "1Gi", fmt.Sprintf(utils.TinyCoreIsoURL, f.CdiInstallNs))
    -				dataVolume, err := utils.CreateDataVolumeFromDefinition(f.CdiClient, f.Namespace.Name, dataVolume)
    -				Expect(err).ToNot(HaveOccurred())
    -				f.ForceBindPvcIfDvIsWaitForFirstConsumer(dataVolume)
    -				sourcePvc, err := f.K8sClient.CoreV1().PersistentVolumeClaims(dataVolume.Namespace).Get(context.TODO(), dataVolume.Name, metav1.GetOptions{})
    -				Expect(err).ToNot(HaveOccurred())
    +			if cloneType == "copy" {

    Instead of doing the

    if cloneType == "copy" {
    ...
    

    And the other clone types. Would it make sense to simply define a few more targeted functions, and call those from the appropriate location?

    awels awels commented on code on Sep 10, 2026 18:49 UTC
    Code Review
    tests/upgrade_test.go:1
    @@ -20,16 +19,9 @@ import (
     
     const oldVersionArtifactsNamespace = "cdi-testing-old-version-artifacts"
     
    -var _ = Describe("[Upgrade]", Serial, func() {
    +var _ = Describe("[Upgrade]", Label("Upgrade"), Serial, func() {

    I guess no named label for this one since it is just the one?

    dsanatar dsanatar commented on code on Sep 10, 2026 20:20 UTC
    Code Review
    tests/cloner_test.go:1
    @@ -376,171 +363,162 @@ var _ = Describe("all clone tests", func() {
     				completeClone(f, f.Namespace, targetPvc, filepath.Join(testBaseDir, testFile), fillDataFSMD5sum, "")
     			})
     
    -			DescribeTable("Should clone data from filesystem to block", func(preallocate bool) {
    -				if !f.IsBlockVolumeStorageClassAvailable() {
    -					Skip("Storage Class for block volume is not available")
    -				}
    -				if cloneType == "csi-clone" || cloneType == "snapshot" {
    -					Skip("csi-clone only works for the same volumeMode")
    -				}
    -				dataVolume := utils.NewDataVolumeWithHTTPImport(dataVolumeName, "1Gi", fmt.Sprintf(utils.TinyCoreIsoURL, f.CdiInstallNs))
    -				dataVolume, err := utils.CreateDataVolumeFromDefinition(f.CdiClient, f.Namespace.Name, dataVolume)
    -				Expect(err).ToNot(HaveOccurred())
    -				f.ForceBindPvcIfDvIsWaitForFirstConsumer(dataVolume)
    -				sourcePvc, err := f.K8sClient.CoreV1().PersistentVolumeClaims(dataVolume.Namespace).Get(context.TODO(), dataVolume.Name, metav1.GetOptions{})
    -				Expect(err).ToNot(HaveOccurred())
    +			if cloneType == "copy" {

    yea agreed, I think that would look cleaner

    dsanatar dsanatar commented on code on Sep 10, 2026 20:20 UTC
    Code Review
    tests/upgrade_test.go:1
    @@ -20,16 +19,9 @@ import (
     
     const oldVersionArtifactsNamespace = "cdi-testing-old-version-artifacts"
     
    -var _ = Describe("[Upgrade]", Serial, func() {
    +var _ = Describe("[Upgrade]", Label("Upgrade"), Serial, func() {

    yea exactly, I can add in a new one even if it's just for this one instance if you'd like. I was probably just being lazy here

    kubevirt-prow[bot] kubevirt-prow[bot] commented on Oct 21, 2026 04:37 UTC
    Bot

    PR needs rebase.

    <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.
    </details>

    Reviewers
    Assignees
    dsanatar dsanatar
    Labels
    risk: low confidence: 88.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 78.5% (HIGH) · Higher = larger blast radius
    78.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88.8% · Lower = rushed or shallow review
    88.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8.8% · Safe to merge
    8.8%