Skip to content

CM-716: Add baremetal e2e CI job for cert-manager-operator#81902

Open
sebrandon1 wants to merge 1 commit into
openshift:mainfrom
sebrandon1:cert-manager-baremetal-ci
Open

CM-716: Add baremetal e2e CI job for cert-manager-operator#81902
sebrandon1 wants to merge 1 commit into
openshift:mainfrom
sebrandon1:cert-manager-baremetal-ci

Conversation

@sebrandon1

@sebrandon1 sebrandon1 commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an optional e2e-operator-metal-ipi pre-submit job for openshift/cert-manager-operator
  • Provisions a baremetal cluster via OFCIR/dev-scripts (baremetalds-e2e workflow, equinix-ocp-metal profile)
  • Installs the operator via operator-sdk run bundle and runs Platform:Generic e2e tests
  • always_run: false + optional: true — triggered on-demand via /test e2e-operator-metal-ipi
  • Companion to cert-manager-operator#459 which adds the HTTP01 proxy via nftables MachineConfig for baremetal clusters

Test plan

  • CI rehearsal job passes on this PR
  • Trigger e2e-operator-metal-ipi rehearsal to validate baremetal provisioning and operator install

Summary by CodeRabbit

  • New Features
    • Added an optional OpenShift bare-metal IPI e2e job for cert-manager-operator targeting an Equinix metal cluster profile.
  • CI / Testing
    • Installs the cert-manager-operator bundle using a restricted security setup and waits for the controller to become available.
    • Runs non-TechPreview end-to-end tests with a generic label filter (IPv4 with OVN-Kubernetes networking).
  • Configuration
    • Includes resource requests (CPU) for the install and test steps.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Adds an optional OpenShift bare-metal IPI end-to-end job for cert-manager-operator, configuring the cluster profile and network, installing the operator bundle, waiting for deployment availability, setting CPU requests, and running filtered Ginkgo tests.

Changes

Metal IPI end-to-end testing

Layer / File(s) Summary
Metal IPI job workflow
ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml
Adds the optional e2e-operator-metal-ipi job with Equinix metal IPI configuration, operator bundle installation, readiness waiting, CPU resource requests, and filtered make test-e2e execution.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: rehearsals-ack

Suggested reviewers: swghosh, trilokgeer, xperimental

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
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 only adds a CI job config; it introduces no It/Describe/Context/When titles, and all new job/test labels are static.
Test Structure And Quality ✅ Passed PR only changes a CI YAML job config; no Ginkgo test code or test blocks were added or modified to assess.
Microshift Test Compatibility ✅ Passed No new Ginkgo tests were added; the PR only changes CI job config, so MicroShift test compatibility is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Only CI config changed; no new Ginkgo tests or test code were added, so there are no SNO compatibility assumptions to flag.
Topology-Aware Scheduling Compatibility ✅ Passed Only a CI job was added in a YAML config; no deployment manifests, operator code, or controllers were changed, so no new scheduling assumptions were introduced.
Ote Binary Stdout Contract ✅ Passed Only a ci-operator YAML changed; no process-level binary code or stdout writes were introduced, so the OTE stdout contract is unaffected.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR only adds CI job YAML; no new Ginkgo e2e test code was added to inspect for IPv4 or external-connectivity assumptions.
No-Weak-Crypto ✅ Passed The PR only adds CI job YAML; no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret-comparison code appears in the diff.
Container-Privileges ✅ Passed No touched CI manifest sets privileged, hostPID/Network/IPC, SYS_ADMIN, root, or allowPrivilegeEscalation; the new job uses restricted security context.
No-Sensitive-Data-In-Logs ✅ Passed The new job only logs namespace creation, operator-sdk install, and test commands; no passwords/tokens/PII/internal hostnames are introduced or echoed.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: adding a baremetal e2e CI job for cert-manager-operator.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci openshift-ci Bot requested review from TrilokGeer and swghosh July 14, 2026 20:40

@coderabbitai coderabbitai Bot left a comment

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.

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/cert-manager-operator/openshift-cert-manager-operator-master.yaml`:
- Around line 326-327: Add an explicit 10-minute timeout to the oc wait
invocation for deployment cert-manager-operator-controller-manager, preserving
its existing Available condition and namespace arguments.
🪄 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: 935b2875-6109-4ceb-a71d-b76de8fa422a

📥 Commits

Reviewing files that changed from the base of the PR and between 4c81ad4 and c06cce0.

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

Comment on lines +326 to +327
operator-sdk run bundle --timeout=10m --security-context-config=restricted --install-mode=AllNamespaces -n cert-manager-operator "$OO_BUNDLE" --verbose
oc wait --for condition=Available -n cert-manager-operator deployment cert-manager-operator-controller-manager

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.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the changed region and nearby CI job context
FILE='ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml'
wc -l "$FILE"
sed -n '280,360p' "$FILE"

# See whether this is a generated CI config with related metadata
rg -n "zz_generated_metadata|optional: true|skip_if_only_changed|operator-sdk run bundle|oc wait" ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml

Repository: openshift/release

Length of output: 3529


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check whether the repository has documented the default timeout for oc wait, and whether
# the job already sets a timeout elsewhere in the same step.
FILE='ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml'
python3 - <<'PY'
from pathlib import Path
import re

text = Path('ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml').read_text()
# Print the exact command lines around oc wait/operator-sdk in the job for context.
for i, line in enumerate(text.splitlines(), 1):
    if 'operator-sdk run bundle' in line or 'oc wait' in line or '--timeout' in line:
        start = max(1, i-3)
        end = min(len(text.splitlines()), i+3)
        print(f"\n--- lines {start}-{end} around line {i} ---")
        for j in range(start, end+1):
            print(f"{j}: {text.splitlines()[j-1]}")
PY

Repository: openshift/release

Length of output: 2133


🌐 Web query:

kubectl wait default timeout 30s documentation oc wait

💡 Result:

The default timeout for both the kubectl wait and oc wait commands is 30 seconds [1][2][3]. This timeout value determines how long the command will wait for the specified condition to be met before giving up [1][4]. You can override this default using the --timeout flag [1][3]. Additional details regarding the timeout behavior: - A value of 0 means the command will check the condition once and exit immediately without waiting [1][4][3]. - A negative value is interpreted as waiting for one week [2][4][3]. - This timeout is distinct from the --request-timeout flag, which defines the time to wait for a single server request to complete (and which defaults to 0, or no timeout) [4][3]. When using kubectl wait or oc wait, the syntax for specifying the timeout is --timeout=<duration> (e.g., --timeout=60s) [4][5][3].

Citations:


Give oc wait an explicit timeout. operator-sdk run bundle already allows 10m, but this wait still uses the default 30s. Add --timeout=10m so slower cluster startup doesn’t fail the job early.

🤖 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/cert-manager-operator/openshift-cert-manager-operator-master.yaml`
around lines 326 - 327, Add an explicit 10-minute timeout to the oc wait
invocation for deployment cert-manager-operator-controller-manager, preserving
its existing Available condition and namespace arguments.

@openshift-ci-robot

openshift-ci-robot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@sebrandon1: This pull request references CM-716 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 task to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

  • Adds an optional e2e-operator-metal-ipi pre-submit job for openshift/cert-manager-operator
  • Provisions a baremetal cluster via OFCIR/dev-scripts (baremetalds-e2e workflow, equinix-ocp-metal profile)
  • Installs the operator via operator-sdk run bundle and runs Platform:Generic e2e tests
  • always_run: false + optional: true — triggered on-demand via /test e2e-operator-metal-ipi
  • Companion to cert-manager-operator#459 which adds the HTTP01 proxy via nftables MachineConfig for baremetal clusters

Test plan

  • CI rehearsal job passes on this PR
  • Trigger e2e-operator-metal-ipi rehearsal to validate baremetal provisioning and operator install

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 the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 16, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@sebrandon1, pj-rehearse: unable to determine affected jobs. This could be due to a branch that needs to be rebased. ERROR:

couldn't prepare candidate: couldn't rebase candidate onto 854204afa775152479410f4e032d8f810bfc30d0 due to conflicts
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.

@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sebrandon1
Once this PR has been reviewed and has the lgtm label, please assign mytreya-rh 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

@sebrandon1 sebrandon1 force-pushed the cert-manager-baremetal-ci branch from ec01eea to 4a38041 Compare July 16, 2026 20:39
@openshift-ci openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 16, 2026
@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@sebrandon1: 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/generated-config 4a38041 link true /test generated-config

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

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