Skip to content

MGMT-24194: add required vmaas E2E presubmit tests to osac-operator#78716

Open
omer-vishlitzky wants to merge 1 commit intoopenshift:mainfrom
omer-vishlitzky:MGMT-24194-osac-operator
Open

MGMT-24194: add required vmaas E2E presubmit tests to osac-operator#78716
omer-vishlitzky wants to merge 1 commit intoopenshift:mainfrom
omer-vishlitzky:MGMT-24194-osac-operator

Conversation

@omer-vishlitzky
Copy link
Copy Markdown
Contributor

@omer-vishlitzky omer-vishlitzky commented May 3, 2026

Summary

https://redhat.atlassian.net/browse/MGMT-24194

Add 8 required vmaas E2E presubmit tests to osac-operator. Tests build a modified osac-installer image with the PR's manifests and container image swapped in.

Depends on

Test plan

  • Rehearsal jobs pass after step registry PR merges

Summary by CodeRabbit

  • New Features

    • Added support for OpenShift Container Platform nightly version 4.20.
    • Added builds/publishing for operator and installer images used in PR/testing.
  • Tests

    • Introduced multiple new packet-assisted end-to-end scenarios (compute/CLI/API flows, delete-during-provision, restart/negative, subnet/network lifecycle).
    • Expanded lifecycle test coverage across installer/component workflows.

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

openshift-ci-robot commented May 3, 2026

@omer-vishlitzky: This pull request references MGMT-24194 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 "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

https://redhat.atlassian.net/browse/MGMT-24194

Add 8 required vmaas E2E presubmit tests to osac-operator. Tests build a modified osac-installer image with the PR's manifests and container image swapped in.

Depends on

Test plan

  • Rehearsal jobs pass after step registry PR merges

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
Contributor

coderabbitai Bot commented May 3, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: de6ebb19-34e1-403b-b29a-f4853b1222ce

📥 Commits

Reviewing files that changed from the base of the PR and between ca2e0d4 and 9eb317a.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/osac-project/osac-operator/osac-project-osac-operator-main-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml

Walkthrough

CI operator configuration for the OSAC operator: adds base image references, new image build steps (operator and installer-with-pr), updates releases to OCP nightly 4.20, and expands tests with multiple packet-assisted e2e scenarios using the osac-project-ofcir-baremetal-component workflow.

Changes

OSAC Operator CI Pipeline Setup

Layer / File(s) Summary
Base Image Definitions
ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml
Adds base_images map for multiple assisted-* components, dev-scripts, origin-cli (version "4.20"), and osac-installer / osac-test-infra (latest).
Image Build Configuration
ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml
Adds images block publishing osac-operator-pr from Containerfile and building osac-installer-with-pr via dockerfile_literal that copies config/ into the installer image using osac-installer as input.
Release Metadata
ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml
Sets releases.latest.candidate to OCP nightly stream with version: "4.20".
Test Suite Expansion
ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml
Adds multiple packet-assisted e2e test entries (compute-instance creation, API/CLI field checks, delete-during-provision, restart and negative restart, subnet/virtual-network lifecycle). All use cluster_profile: packet-assisted, reference COMPONENT_IMAGE: osac-operator-pr and OSAC_INSTALLER_IMAGE: osac-installer-with-pr, set OPENSHIFT_VERSION=4.20, and run via workflow: osac-project-ofcir-baremetal-component with scenario-specific TEST values.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 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 accurately describes the main change: adding required vmaas E2E presubmit tests to the osac-operator configuration file.
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 contains only CI configuration YAML changes with no Ginkgo Go test code modifications, making the check inapplicable.
Test Structure And Quality ✅ Passed This PR modifies only CI-operator configuration YAML files, not actual Ginkgo test code. The check for Ginkgo test quality requirements does not apply to configuration files.
Microshift Test Compatibility ✅ Passed This PR is a configuration-only change that adds CI/CD test definitions in YAML format. The MicroShift Test Compatibility check targets Ginkgo e2e tests, but no such tests are present.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR is a configuration-only change to CI operator YAML without introducing new Ginkgo e2e test code.
Topology-Aware Scheduling Compatibility ✅ Passed PR modifies only CI/CD configuration files defining build and test workflows, not Kubernetes pod specifications or scheduling constraints.
Ote Binary Stdout Contract ✅ Passed The OTE Binary Stdout Contract check is not applicable to this pull request as it exclusively modifies a YAML configuration file with no Go source code changes.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR modifies only CI configuration metadata file without adding Ginkgo e2e test code files.

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

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

Review rate limit: 8/10 reviews remaining, refill in 8 minutes and 6 seconds.

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

@openshift-ci openshift-ci Bot requested review from danmanor and eranco74 May 3, 2026 09:24
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 3, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

The full list of commands accepted by this bot can be found 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

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.

🧹 Nitpick comments (1)
ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml (1)

85-243: ⚡ Quick win

Consider deduplicating the repeated env payload to reduce drift risk.

ASSISTED_CONFIG and COMPONENT_IMAGE_NAME are duplicated across all eight required jobs. Centralizing the shared map (for example via YAML merge/anchor) would make future updates safer and smaller.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml`
around lines 85 - 243, The env block containing ASSISTED_CONFIG and
COMPONENT_IMAGE_NAME is duplicated across multiple jobs (e.g., the jobs as:
e2e-metal-vmaas-compute-instance-api-fields,
e2e-metal-vmaas-compute-instance-cli-fields, etc.); refactor by extracting the
shared env into a single YAML anchor or reusable map and reference it from each
job to eliminate repetition—create a top-level anchor (e.g., &shared_env) for
ASSISTED_CONFIG and COMPONENT_IMAGE_NAME and replace each job's duplicated env
with an alias (*shared_env) or use a YAML merge key, ensuring TEST remains
per-job where different.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In
`@ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml`:
- Around line 85-243: The env block containing ASSISTED_CONFIG and
COMPONENT_IMAGE_NAME is duplicated across multiple jobs (e.g., the jobs as:
e2e-metal-vmaas-compute-instance-api-fields,
e2e-metal-vmaas-compute-instance-cli-fields, etc.); refactor by extracting the
shared env into a single YAML anchor or reusable map and reference it from each
job to eliminate repetition—create a top-level anchor (e.g., &shared_env) for
ASSISTED_CONFIG and COMPONENT_IMAGE_NAME and replace each job's duplicated env
with an alias (*shared_env) or use a YAML merge key, ensuring TEST remains
per-job where different.

ℹ️ Review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 1171eb23-12e6-44bd-9fc6-f9615c86b567

📥 Commits

Reviewing files that changed from the base of the PR and between 47e52e1 and ca2e0d4.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/osac-project/osac-operator/osac-project-osac-operator-main-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/osac-project/osac-operator/osac-project-osac-operator-main.yaml

@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/retest

@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/retest

@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-api-fields pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-cli-fields pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-creation pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-delete-during-provision pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart-negative pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-subnet-lifecycle pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-virtual-network-lifecycle

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

Add 8 required vmaas E2E presubmit tests that run on every
osac-operator PR. Tests build a modified osac-installer image
with the PR's manifests and container image swapped in.
@omer-vishlitzky omer-vishlitzky force-pushed the MGMT-24194-osac-operator branch from ca2e0d4 to 9eb317a Compare May 4, 2026 10:05
@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-api-fields pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-cli-fields pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-creation pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-delete-during-provision pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart-negative pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-subnet-lifecycle pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-virtual-network-lifecycle

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@omer-vishlitzky: 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-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-api-fields osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-cli-fields osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-creation osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-delete-during-provision osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart-negative osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-subnet-lifecycle osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-virtual-network-lifecycle osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-images osac-project/osac-operator presubmit Presubmit changed
pull-ci-osac-project-osac-operator-main-temp osac-project/osac-operator presubmit Ci-operator config changed
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.

@omer-vishlitzky
Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-api-fields pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-cli-fields pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-creation pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-delete-during-provision pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-compute-instance-restart-negative pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-subnet-lifecycle pull-ci-osac-project-osac-operator-main-e2e-metal-vmaas-virtual-network-lifecycle

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants