Skip to content

[release-4.22] OCPBUGS-84701: vSphere - Missing unit tests to cover polarion workitems#10526

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:release-4.22from
openshift-cherrypick-robot:cherry-pick-10516-to-release-4.22
Apr 30, 2026
Merged

[release-4.22] OCPBUGS-84701: vSphere - Missing unit tests to cover polarion workitems#10526
openshift-merge-bot[bot] merged 1 commit intoopenshift:release-4.22from
openshift-cherrypick-robot:cherry-pick-10516-to-release-4.22

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #10516

/assign jcpowermac

Add comprehensive unit tests across vSphere platform validation,
machine generation, and cluster destroy:

- Machine generation: multi-NIC, multi-zone, hardware config propagation,
  pre-existing RHCOS template, multi-vCenter workspace server, host group
  and VMGroup propagation, failure domain auto-population
- MachineSet generation: single zone, multizone ControlPlaneMachineSet,
  static IP AddressesFromPools, multi-zone template propagation
- Platform validation: invalid IPI options, topology field validation,
  datastore cluster paths, customized folder paths, data disk count
  and name length, datacenter and computeCluster validation
- Machine pool validation: data disk count and name length
- Scheduler: mastersSchedulable for compact 3-node clusters
- Cluster destroy: CNS volume deletion
- DNS validation: external DNS records with load balancer

Fix gofmt struct field alignment in machines_test.go and
scheduler_test.go. Fix misleading assertion message in
scheduler_test.go where the format string referenced "compute replicas
total" but received the test case name. Fix shared mutable package-level
fixture machineComputePoolNoZones whose Zones field was mutated by
MachineSets(), replacing it with a per-test inline construction. Add
test case for nil Replicas in compute pool to lock current behavior.
Add guard assertion for empty Network.Devices in static IP test.
Scope CNS volume test mock expectations per-subtest with explicit
Times() calls to prevent false-pass on missing delete calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e5d0e587-79a5-4d31-a4d8-25bcf5a1e44c

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

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

@jcpowermac
Copy link
Copy Markdown
Contributor

/verified by @jcpowermac via unit test

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: Jira Issue OCPBUGS-84335 has been cloned as Jira Issue OCPBUGS-84701. Will retitle bug to link to clone.
/retitle [release-4.22] OCPBUGS-84701: vSphere - Missing unit tests to cover polarion workitems

Details

In response to this:

This is an automated cherry-pick of #10516

/assign jcpowermac

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot changed the title [release-4.22] OCPBUGS-84335: vSphere - Missing unit tests to cover polarion workitems [release-4.22] OCPBUGS-84701: vSphere - Missing unit tests to cover polarion workitems Apr 29, 2026
@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Apr 29, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@jcpowermac: This PR has been marked as verified by @jcpowermac via unit test.

Details

In response to this:

/verified by @jcpowermac via unit test

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Apr 29, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-84701, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note type set to "Release Note Not Required"
  • dependent bug Jira Issue OCPBUGS-84335 is in the state MODIFIED, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-84335 targets the "5.0.0" version, which is one of the valid target versions: 5.0.0
  • bug has dependents

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

This is an automated cherry-pick of #10516

/assign jcpowermac

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 openshift-eng/jira-lifecycle-plugin repository.

@tthvo
Copy link
Copy Markdown
Member

tthvo commented Apr 29, 2026

/test gofmt shellcheck yaml-lint

Copy link
Copy Markdown
Member

@tthvo tthvo left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 29, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tthvo

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 Apr 29, 2026
@sadasu
Copy link
Copy Markdown
Contributor

sadasu commented Apr 29, 2026

/label backport-risk-assessed

@openshift-ci openshift-ci Bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Apr 29, 2026
@tthvo
Copy link
Copy Markdown
Member

tthvo commented Apr 29, 2026

/retest-required

@tthvo
Copy link
Copy Markdown
Member

tthvo commented Apr 30, 2026

/override ci/prow/e2e-vsphere-ovn

This change only affects tests (a bit of validation, but install completes in the latest run). Let's not stress infra too much XD

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 30, 2026

@tthvo: Overrode contexts on behalf of tthvo: ci/prow/e2e-vsphere-ovn

Details

In response to this:

/override ci/prow/e2e-vsphere-ovn

This change only affects tests (a bit of validation, but install completes in the latest run). Let's not stress infra too much XD

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.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 30, 2026

@openshift-cherrypick-robot: 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/prow/e2e-vsphere-ovn ccdf526 link unknown /test e2e-vsphere-ovn

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.

@tthvo
Copy link
Copy Markdown
Member

tthvo commented Apr 30, 2026

/tide refresh

@openshift-merge-bot openshift-merge-bot Bot merged commit b8a967b into openshift:release-4.22 Apr 30, 2026
23 checks passed
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: Jira Issue Verification Checks: Jira Issue OCPBUGS-84701
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-84701 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

Details

In response to this:

This is an automated cherry-pick of #10516

/assign jcpowermac

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 openshift-eng/jira-lifecycle-plugin repository.

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants