Skip to content

fix: skip Multisubnet test for single network infra - #1527

Open
abhay-nutanix wants to merge 1 commit into
openshift:mainfrom
abhay-nutanix:issue/OCPBUGS-100056
Open

fix: skip Multisubnet test for single network infra#1527
abhay-nutanix wants to merge 1 commit into
openshift:mainfrom
abhay-nutanix:issue/OCPBUGS-100056

Conversation

@abhay-nutanix

@abhay-nutanix abhay-nutanix commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Guard in the BeforeEach that reuses the existing hasMultiSubnetConfiguration() helper (which returns true only when some failure domain has more than one subnet). When no multi-subnet infrastructure is present, the suite now skips gracefully:

Summary by CodeRabbit

  • Tests
    • Multi-subnet conformance checks now skip automatically when the cluster does not use a multi-subnet configuration.
    • Prevents irrelevant validation steps from running in unsupported environments.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: cfb2f038-d61c-4110-99bc-967975636d81

📥 Commits

Reviewing files that changed from the base of the PR and between aadf54d and ede8972.

📒 Files selected for processing (1)
  • test/e2e/nutanix/multi-subnet.go

Walkthrough

The Nutanix multi-subnet conformance setup now skips scenarios when the fetched machine networks do not represent a multi-subnet configuration.

Changes

Nutanix multi-subnet test gating

Layer / File(s) Summary
Configuration-based test skip
test/e2e/nutanix/multi-subnet.go
BeforeEach evaluates hasMultiSubnetConfiguration(machineNetworks) and skips the remaining setup and validations for single-subnet clusters.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Single Node Openshift (Sno) Test Compatibility ⚠️ Warning The suite has no SNO guard and still assumes multi-node behavior (e.g. node/subnet validation and a MachineSet scale-up/scale-down test). Add a [Skipped:SingleReplicaTopology] label or a runtime single-node skip (exutil.IsSingleNode/skipOnSingleNodeTopology) for this suite or the scaling test.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: skipping the Multisubnet test when the infrastructure has only a single network.
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 PR only adds a BeforeEach skip guard; all Ginkgo titles in the file are static and deterministic.
Test Structure And Quality ✅ Passed BeforeEach now skips early via hasMultiSubnetConfiguration, matching repo patterns and avoiding unnecessary cluster work; no new quality issues introduced.
Microshift Test Compatibility ✅ Passed PASS: All Ginkgo It blocks in the Nutanix suite are tagged [apigroup:machine.openshift.io], so MicroShift CI auto-skips them; the PR only adds a BeforeEach skip.
Topology-Aware Scheduling Compatibility ✅ Passed Change only adds a BeforeEach skip in an e2e test; it introduces no manifests, controllers, or scheduling constraints.
Ote Binary Stdout Contract ✅ Passed Change only adds a BeforeEach skip; no process-level stdout writes or suite/init/TestMain hooks appear in the nutanix test package.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The PR only adds a BeforeEach skip guard; it adds no new IPv4-specific logic or external connectivity, and the test file contains no hardcoded IPv4/public URLs.
No-Weak-Crypto ✅ Passed The PR only adds a skip guard in an e2e test; no weak crypto primitives, custom crypto, or secret comparisons were introduced.
Container-Privileges ✅ Passed Only a Go e2e test changed; no container/K8s manifests were added or edited, and the patch contains no privileged/host* or allowPrivilegeEscalation settings.
No-Sensitive-Data-In-Logs ✅ Passed Only a static skip message was added; no logging or secrets/PII exposure appears in the changed Nutanix test.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.12.2)

Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions
The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions


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

@openshift-ci
openshift-ci Bot requested review from mdbooth and nrb July 30, 2026 04:28
@damdo

damdo commented Jul 30, 2026

Copy link
Copy Markdown
Member

/test unit

@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@abhay-nutanix: 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.

@nischawl

Copy link
Copy Markdown

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2026

@damdo damdo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/approve

@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damdo

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 Jul 31, 2026
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants