Skip to content

MCO-2171: Move long running boot image tests to MCO's disruptive suites#5808

Merged
openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
djoshy:remove-old-boot-image-tests
Mar 29, 2026
Merged

MCO-2171: Move long running boot image tests to MCO's disruptive suites#5808
openshift-merge-bot[bot] merged 2 commits intoopenshift:mainfrom
djoshy:remove-old-boot-image-tests

Conversation

@djoshy
Copy link
Copy Markdown
Contributor

@djoshy djoshy commented Mar 25, 2026

- What I did
This PR moves the AWS, GCP, Azure and vsphere bootimage tests from the long running suite to the disruptive suite.

- How to verify it
Disruptive suite should continue to pass without any timeout issues.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 25, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

openshift-ci-robot commented Mar 25, 2026

@djoshy: This pull request references MCO-2171 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

- What I did
This PR moves the AWS, GCP, Azure and vsphere bootimage tests from the long running suite to the disruptive suite.

- How to verify it
Disruptive suite should continue to pass without any timeout issues.

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.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 25, 2026

Walkthrough

Changes involve consolidating boot image test infrastructure by removing three dedicated boot image test modules while redistributing core helper functions to existing test utilities and adding a randomized machine set selector.

Changes

Cohort / File(s) Summary
Test Suite Path Update
test/extended-priv/mco_bootimages.go
Updated Ginkgo test suite classification from longduration to disruptive in the g.Describe() descriptor.
Deleted Boot Image Test Modules
test/extended/boot_image.go, test/extended/boot_image_update_agnostic.go, test/extended/boot_image_update_azure.go
Removed three dedicated boot image test suites and helper files (765 lines total), including test registration, platform gating logic, machine set helpers, MCO/MCP status verification utilities, and Azure-specific boot image update tests.
Helper Function Consolidation
test/extended/machineconfigpool.go, test/extended/node.go
Added IsMachineConfigPoolConditionTrue() helper to machineconfigpool.go and removed internal getReadyNodes() from node.go, consolidating condition checking utilities.
Enhanced Test Utilities
test/extended/custom_pool_booting.go
Added math/rand import and new getRandomMachineSet() helper function to support randomized MachineSet selection in boot image testing.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

✨ 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 added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 25, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 25, 2026

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 25, 2026
@djoshy
Copy link
Copy Markdown
Contributor Author

djoshy commented Mar 25, 2026

/payload-job periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-vsphere-mco-disruptive periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-1of2 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-2of2 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive-techpreview-1of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive-techpreview-2of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive-techpreview-3of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-1of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-2of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-3of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-techpreview-1of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-techpreview-2of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-techpreview-3of3 periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-vsphere-mco-disruptive-techpreview

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 25, 2026

@djoshy: trigger 15 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-vsphere-mco-disruptive
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-1of2
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-2of2
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive-techpreview-1of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive-techpreview-2of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive-techpreview-3of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-1of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-2of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-3of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-techpreview-1of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-techpreview-2of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive-techpreview-3of3
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-vsphere-mco-disruptive-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/8f143c00-2887-11f1-916b-b0c8860934dc-0

@djoshy
Copy link
Copy Markdown
Contributor Author

djoshy commented Mar 27, 2026

/payload-job periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-vsphere-mco-disruptive periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 27, 2026

@djoshy: trigger 4 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-vsphere-mco-disruptive
  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-azure-mco-disruptive

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/f1e60760-2976-11f1-88b9-e80c44c123f4-0

@djoshy djoshy marked this pull request as ready for review March 27, 2026 12:51
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 27, 2026
Copy link
Copy Markdown

@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 the current code and only fix it if needed.

Inline comments:
In `@test/extended/custom_pool_booting.go`:
- Around line 248-255: The getRandomMachineSet function can panic when
machineSets.Items is empty; before creating rnd.Intn(len(machineSets.Items)) add
an explicit non-empty assertion—e.g., assert len(machineSets.Items) > 0 using
the test helper (o.Expect(len(machineSets.Items)).To(o.BeNumerically(">", 0)))
or return a clear error—so the failure is deterministic and avoids Intn(0); keep
references to machineSets.Items and rnd in the same function and ensure the
assertion happens right after the List() call and before selecting
machineSetUnderTest.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a865ab56-3a11-4eff-9d71-c54b46ddf7c8

📥 Commits

Reviewing files that changed from the base of the PR and between c564b22 and c9ac3b6.

📒 Files selected for processing (7)
  • test/extended-priv/mco_bootimages.go
  • test/extended/boot_image.go
  • test/extended/boot_image_update_agnostic.go
  • test/extended/boot_image_update_azure.go
  • test/extended/custom_pool_booting.go
  • test/extended/machineconfigpool.go
  • test/extended/node.go
💤 Files with no reviewable changes (4)
  • test/extended/node.go
  • test/extended/boot_image_update_agnostic.go
  • test/extended/boot_image_update_azure.go
  • test/extended/boot_image.go

@djoshy
Copy link
Copy Markdown
Contributor Author

djoshy commented Mar 27, 2026

No timeouts on this run: #5808 (comment), failures are pre-existing and unrelated to this PR, so this should be good to go.

@djoshy
Copy link
Copy Markdown
Contributor Author

djoshy commented Mar 27, 2026

/verified by payloads

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Mar 27, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@djoshy: This PR has been marked as verified by payloads.

Details

In response to this:

/verified by payloads

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.

@sergiordlr
Copy link
Copy Markdown
Contributor

/lgtm

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

openshift-ci bot commented Mar 27, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: djoshy, sergiordlr

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-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD ac0f92c and 2 for PR HEAD c9ac3b6 in total

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD ecf51bd and 1 for PR HEAD c9ac3b6 in total

@djoshy
Copy link
Copy Markdown
Contributor Author

djoshy commented Mar 28, 2026

/retest-required

this change should only affect disruptive jobs, so pretty sure these failures are unrelated, but running once again to be safe

@djoshy
Copy link
Copy Markdown
Contributor Author

djoshy commented Mar 29, 2026

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 29, 2026

@djoshy: 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.

@openshift-merge-bot openshift-merge-bot bot merged commit 540dfc0 into openshift:main Mar 29, 2026
18 checks passed
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. 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.

3 participants