Skip to content

ocp-virt-validation-checkup: add 4.22 jobs#79041

Open
orenc1 wants to merge 1 commit intoopenshift:mainfrom
orenc1:cnv_self_validation_release_4.22
Open

ocp-virt-validation-checkup: add 4.22 jobs#79041
orenc1 wants to merge 1 commit intoopenshift:mainfrom
orenc1:cnv_self_validation_release_4.22

Conversation

@orenc1
Copy link
Copy Markdown
Contributor

@orenc1 orenc1 commented May 8, 2026

Summary

This PR adds CI/CD infrastructure support for the OpenShift Virtualization validation checkup repository (ocp-virt-validation-checkup) on the OpenShift 4.22 release branch. It enables both pull request testing and periodic scheduled testing for CNV validation.

Changes

Two new CI operator configuration files were added:

openshift-cnv-ocp-virt-validation-checkup-release-4.22.yaml (54 lines)

  • Configures presubmit testing triggered on pull requests to the 4.22 release branch
  • Includes a unit test suite running make test
  • Includes an e2e AWS test suite using the cnv-e2e-ipi-aws workflow with CNV deployment and validation checkup execution
  • Uses Go 1.24 runtime on RHEL 9 for the 4.22 release

openshift-cnv-ocp-virt-validation-checkup-release-4.22__periodics.yaml (105 lines)

  • Configures periodic (scheduled) testing for the 4.22 release branch
  • Defines a weekly Azure e2e test (e2e-azure) scheduled for Sundays at 8 PM
  • Orchestrates CNV installation on the test cluster including ODF storage configuration and KubeVirt hyperconverged setup
  • Runs the validation checkup test suite with configurable timeouts and test parameters
  • Uses the ipi-azure workflow with Azure virtualization cluster profile

Both configurations follow the established pattern used for 4.19, 4.20, and 4.21 release branches. The configurations are source files that generate actual Prow job definitions used by OpenShift's CI infrastructure.

Signed-off-by: Oren Cohen <ocohen@redhat.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

Walkthrough

Two new CI operator configuration files for OpenShift Virtualization validation checkup targeting release 4.22 are added, defining build image sources, resource defaults, test workflows (unit and e2e-aws), and a periodic weekly Azure e2e test job with CNV installation and validation execution steps.

Changes

OpenShift CNV Validation Checkup Release 4.22 CI Setup

Layer / File(s) Summary
Build & Release Configuration
ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22.yaml
Build root image (rhel-9-release-golang-1.24-openshift-4.22), image build source (ci/Dockerfile.ci), global resource requests/limits (cpu: 100m, memory: 600Mi request; memory: 4Gi limit), and nightly 4.22 release candidate channel defined.
Test Workflows
ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22.yaml
Unit test suite executes make test. E2e-aws workflow uses cnv-e2e-ipi-aws job, depends on OCP_VIRT_VALIDATION_IMAGE, configures BASE_DOMAIN, CNV_VERSION, and STORAGE_CLASS environment variables.
Periodic Workflow Configuration
ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22__periodics.yaml
Weekly (0 20 * * 0) e2e-azure job with azure-virtualization cluster profile, BASE_DOMAIN, COMPUTE_NODE_TYPE, and ODF/Operator channel environment variables.
Periodic Test Execution
ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22__periodics.yaml
CNV installation via cnv-ci (tarball download, pull secret update, deployment, KubeVirtHyperConverged CPU model patch to Broadwell), followed by make ci-validate with error tolerance, secret mounts, and test parameters (timeouts, storage class, namespace, skip IDs).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 12
✅ Passed checks (12 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'ocp-virt-validation-checkup: add 4.22 jobs' directly and clearly describes the main change: adding CI/CD jobs for the 4.22 release stream of the ocp-virt-validation-checkup component.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR adds CI operator configuration YAML files only. No Ginkgo test definitions are present, so the check for stable test names is not applicable.
Test Structure And Quality ✅ Passed PR modifies only CI/CD configuration YAML files. No Ginkgo test code is added or changed, so the test structure quality check does not apply.
Microshift Test Compatibility ✅ Passed PR adds only CI configuration YAML files. No new Ginkgo e2e test code is being added. Custom check applies only to new test code, not CI configs.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The PR adds only CI configuration YAML files, not new Ginkgo e2e test code. The check applies only to new Ginkgo tests, which are absent.
Topology-Aware Scheduling Compatibility ✅ Passed The PR adds CI/CD configuration files defining build and test workflows, not deployment manifests or operator code with scheduling constraints. Custom check does not apply.
Ote Binary Stdout Contract ✅ Passed The PR adds two YAML CI configuration files with no executable code or Go test implementation. The OTE Binary Stdout Contract check applies only to test implementation code, not CI configuration.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No Ginkgo e2e test code is added in this PR. Only CI configuration YAML files for orchestrating existing tests are added. Check is not applicable.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci openshift-ci Bot requested review from nunnatsa and rlobillo May 8, 2026 11:05
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 8, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: orenc1

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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 8, 2026
@openshift-merge-bot
Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@orenc1: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-cnv-ocp-virt-validation-checkup-release-4.22-e2e-aws openshift-cnv/ocp-virt-validation-checkup presubmit Presubmit changed
pull-ci-openshift-cnv-ocp-virt-validation-checkup-release-4.22-images openshift-cnv/ocp-virt-validation-checkup presubmit Presubmit changed
pull-ci-openshift-cnv-ocp-virt-validation-checkup-release-4.22-unit openshift-cnv/ocp-virt-validation-checkup presubmit Presubmit changed
periodic-ci-openshift-cnv-ocp-virt-validation-checkup-release-4.22-periodics-e2e-azure N/A periodic Periodic changed

Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals.

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22__periodics.yaml`:
- Line 79: The job currently masks test failures by appending "|| true" to the
"make ci-validate" invocation; remove the "|| true" so that "make ci-validate"
returns a failing exit code when validations fail (restore proper failure
propagation for the periodic). Locate the invocation string "make ci-validate ||
true" in the job spec and change it to "make ci-validate" (or otherwise let the
shell exit non-zero), keeping the existing comment about CNV-71660 if you want
to track the issue separately.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 59fa969f-f290-4a01-bad8-4f0ff58a626c

📥 Commits

Reviewing files that changed from the base of the PR and between a847d69 and 49e301d.

⛔ Files ignored due to path filters (2)
  • ci-operator/jobs/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22-periodics.yaml is excluded by !ci-operator/jobs/**
  • ci-operator/jobs/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (2)
  • ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22.yaml
  • ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22__periodics.yaml

commands: |
export CSV_NAME=$(oc get csv -n openshift-cnv -o json | jq -r '.items[] | select(.metadata.name | startswith("kubevirt-hyperconverged")).metadata.name')
export OCP_VIRT_VALIDATION_IMAGE=$(oc get csv -n ${TARGET_NAMESPACE} $CSV_NAME -o json | jq -r '.spec.relatedImages[] | select(.name | contains("ocp-virt-validation-checkup")).image')
make ci-validate || true # Once https://issues.redhat.com/browse/CNV-71660 is fixed, remove "|| true"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Don’t mask validation failures with || true.

Line [79] turns real test failures into green jobs, which removes the periodic’s regression signal.

Suggested change
-        make ci-validate || true # Once https://issues.redhat.com/browse/CNV-71660 is fixed, remove "|| true"
+        make ci-validate
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
make ci-validate || true # Once https://issues.redhat.com/browse/CNV-71660 is fixed, remove "|| true"
make ci-validate
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/config/openshift-cnv/ocp-virt-validation-checkup/openshift-cnv-ocp-virt-validation-checkup-release-4.22__periodics.yaml`
at line 79, The job currently masks test failures by appending "|| true" to the
"make ci-validate" invocation; remove the "|| true" so that "make ci-validate"
returns a failing exit code when validations fail (restore proper failure
propagation for the periodic). Locate the invocation string "make ci-validate ||
true" in the job spec and change it to "make ci-validate" (or otherwise let the
shell exit non-zero), keeping the existing comment about CNV-71660 if you want
to track the issue separately.

@orenc1
Copy link
Copy Markdown
Contributor Author

orenc1 commented May 8, 2026

/pj-rehearse

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

@orenc1: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

releases:
latest:
release:
channel: stable
Copy link
Copy Markdown
Contributor

@rlobillo rlobillo May 8, 2026

Choose a reason for hiding this comment

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

is stable channel already available for OCP4.22?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

right, i'll fix

BASE_DOMAIN: cnv-devel.azure.devcluster.openshift.com
COMPUTE_NODE_TYPE: Standard_D4s_v5
ODF_BACKEND_STORAGE_CLASS: managed-csi
ODF_OPERATOR_CHANNEL: stable-4.21
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is stable-4.21 available? main is using stable-4.20 I believe because it was not available at the time the job was created

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ODF 4.21 is now generally available, yes

Copy link
Copy Markdown
Contributor

@rlobillo rlobillo left a comment

Choose a reason for hiding this comment

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

Thanks for proposing this! two minor concerns about the versioning of OCP and ODF.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 8, 2026

@orenc1: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/rehearse/periodic-ci-openshift-cnv-ocp-virt-validation-checkup-release-4.22-periodics-e2e-azure 49e301d link unknown /pj-rehearse periodic-ci-openshift-cnv-ocp-virt-validation-checkup-release-4.22-periodics-e2e-azure

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.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants