Skip to content

Oringial 50 hack - #82608

Open
sergiordlr wants to merge 3 commits into
openshift:mainfrom
sergiordlr:oringial_50_hack
Open

Oringial 50 hack#82608
sergiordlr wants to merge 3 commits into
openshift:mainfrom
sergiordlr:oringial_50_hack

Conversation

@sergiordlr

@sergiordlr sergiordlr commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

wip

Summary by CodeRabbit

  • Updates Machine Config Operator OpenShift periodic CI to add a new 168h AWS IPI disconnected TechPreview E2E periodic job e2e-aws-ipi-disc-priv-tp-pin-mco in both openshift-machine-config-operator-release-4.23__periodics.yaml and openshift-machine-config-operator-release-5.0__periodics.yaml, targeting the openshift-org-aws cluster profile with an OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE of release:initial and environment/config to pin the desired target release while removing the pull secret and using the disconnected rehearsal workflow + openshift-upgrade-qe-sanity-disconnected chain.
  • Removes the corresponding pinned-MCO AWS disconnected private upgrade test (aws-ipi-disc-priv-tp-pin-mco-f14) from the 5.0 automated nightly upgrade-from-stable upgrade configurations (...upgrade-from-stable-4.22.yaml and ...upgrade-from-stable-5.0.yaml) so coverage is consolidated into the new periodic job.
  • Enhances the disconnected QE catalogsource enablement step to support SKIP_QE_APP_REGISTRY=true via a wired-through SKIP_QE_APP_REGISTRY environment variable and an early successful exit.
  • Adjusts the MCO day2 pintargetrelease step script to better handle upgrade-edge: it now allows a single upgrade-edge entry (parses it and overrides TARGET accordingly) and only fails when multiple entries are present.

@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Adds weekly AWS disconnected-private MCO periodic jobs for releases 4.23 and 5.0, removes superseded nightly entries, permits single upgrade-edge targets, and introduces SKIP_QE_APP_REGISTRY to bypass QE catalogsource setup.

Changes

MCO disconnected-private periodic coverage

Layer / File(s) Summary
Add and retire MCO schedules
ci-operator/config/openshift/machine-config-operator/*periodics.yaml, ci-operator/config/openshift/openshift-tests-private/*upgrade-from-stable-*.yaml
Adds weekly e2e-aws-ipi-disc-priv-tp-pin-mco jobs for releases 4.23 and 5.0, and removes superseded nightly aws-ipi*-pin-mco-f14 entries.
Allow single upgrade-edge targets
ci-operator/step-registry/mco/conf/day2/pintargetrelease/*
Accepts one comma-separated upgrade target, rejects multiple targets, and uses the single entry to override TARGET.
Add QE app registry skip control
ci-operator/step-registry/enable-qe-catalogsource/disconnected/*
Documents SKIP_QE_APP_REGISTRY, defaults it to false, and exits successfully before catalogsource setup when set to true.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PeriodicJob
  participant UpgradeTarget
  participant QERegistry
  participant SanityChain
  PeriodicJob->>UpgradeTarget: write upgrade-edge
  UpgradeTarget->>UpgradeTarget: select single target
  PeriodicJob->>QERegistry: pass SKIP_QE_APP_REGISTRY
  QERegistry->>QERegistry: skip setup when enabled
  PeriodicJob->>SanityChain: run disconnected sanity tests
Loading

Possibly related PRs

  • openshift/release#82599: Contains overlapping disconnected-private MCO periodic, nightly test removal, upgrade-edge, and QE app registry skip changes.

Suggested reviewers: bandrade, jadhaj


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error, 1 inconclusive)

Check name Status Explanation Resolution
No-Sensitive-Data-In-Logs ❌ Error New echo logs ${TARGET} from upgrade-edge; in this job it resolves to an internal registry hostname, exposing it in logs. Avoid printing the full release pullspec; log a generic message or redact/mask the registry host before echoing.
Title check ❓ Inconclusive The title is vague and misspelled, and it does not describe the actual CI/config changes in the pull request. Replace it with a concise, specific title describing the main change, such as adding the pinned MCO periodic job and related step updates.
✅ Passed checks (13 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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 Only a shell step file changed in this commit; no Ginkgo It/Describe/Context/When titles were added or modified.
Test Structure And Quality ✅ Passed Changed file is only a shell step script; no Ginkgo test blocks or test code were modified, so this check is not applicable.
Microshift Test Compatibility ✅ Passed No new Ginkgo e2e test code was added; the diff only changes CI config and a shell step, with no It()/Describe()/Context()/When() definitions.
Single Node Openshift (Sno) Test Compatibility ✅ Passed No new Ginkgo e2e tests were added; the PR only changes CI YAML and shell scripts, so it introduces no SNO-specific test assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed Only CI periodic/step-registry changes were added; no node selectors, affinity, spread constraints, replica logic, or topology checks were introduced.
Ote Binary Stdout Contract ✅ Passed The PR only changes CI YAML and shell step scripts; no Go binary main/TestMain/Ginkgo setup stdout writes are introduced, so the OTE JSON stdout contract isn’t affected.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests are added in this PR; only CI configuration YAML files and helper shell scripts are modified. Custom check is not applicable.
No-Weak-Crypto ✅ Passed No added MD5/SHA1/DES/RC4/etc. or custom crypto; only a benign boolean env check appears.
Container-Privileges ✅ Passed Scanned the PR’s YAML/job files and step scripts; none set privileged, hostPID/Network/IPC, SYS_ADMIN, root, or allowPrivilegeEscalation.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@openshift-ci
openshift-ci Bot requested review from bandrade and jadhaj July 29, 2026 12:43
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@sergiordlr: pj-rehearse could not automatically process this event because the request waited in queue for longer than 5 minutes. Use /pj-rehearse to trigger rehearsals manually.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@sergiordlr: your /pj-rehearse request was not processed because the request waited in queue for longer than 5 minutes. Please retry in a few minutes.

@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/machine-config-operator/openshift-machine-config-operator-release-4.23__periodics.yaml`:
- Line 437: Update CUSTOM_OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE in the weekly
periodic configuration to use an existing promoted stable/ci release image
instead of the ephemeral ci-ln-39q90fb build-farm reference. If no suitable
promoted image exists, replace it with a durable image reference whose ownership
is documented.
🪄 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: Pro Plus

Run ID: 2f27dd9a-8127-4785-a0d9-859d474af0a0

📥 Commits

Reviewing files that changed from the base of the PR and between b8da540 and fc84655.

⛔ Files ignored due to path filters (3)
  • ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-release-4.23-periodics.yaml is excluded by !ci-operator/jobs/**
  • ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-release-5.0-periodics.yaml is excluded by !ci-operator/jobs/**
  • ci-operator/jobs/openshift/openshift-tests-private/openshift-openshift-tests-private-release-5.0-periodics.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (6)
  • ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-release-4.23__periodics.yaml
  • ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-release-5.0__periodics.yaml
  • ci-operator/config/openshift/openshift-tests-private/openshift-openshift-tests-private-release-5.0__automated-release-nightly-5.0-upgrade-from-stable-4.22.yaml
  • ci-operator/config/openshift/openshift-tests-private/openshift-openshift-tests-private-release-5.0__automated-release-nightly-5.0-upgrade-from-stable-5.0.yaml
  • ci-operator/step-registry/enable-qe-catalogsource/disconnected/enable-qe-catalogsource-disconnected-commands.sh
  • ci-operator/step-registry/enable-qe-catalogsource/disconnected/enable-qe-catalogsource-disconnected-ref.yaml
💤 Files with no reviewable changes (2)
  • ci-operator/config/openshift/openshift-tests-private/openshift-openshift-tests-private-release-5.0__automated-release-nightly-5.0-upgrade-from-stable-5.0.yaml
  • ci-operator/config/openshift/openshift-tests-private/openshift-openshift-tests-private-release-5.0__automated-release-nightly-5.0-upgrade-from-stable-4.22.yaml

dependencies:
OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: release:initial
env:
CUSTOM_OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: registry.build10.ci.openshift.org/ci-ln-39q90fb/release:latest

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

echo "== file excerpt around job =="
sed -n '410,455p' ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-release-4.23__periodics.yaml

echo
echo "== all references to ci-ln-39q90fb or build10 release images in this repo =="
rg -n "ci-ln-39q90fb|registry\.build10\.ci\.openshift\.org|CUSTOM_OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE|OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE" -S .

echo
echo "== nearby job definitions =="
sed -n '1,80p' ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-release-4.23__periodics.yaml

Repository: openshift/release

Length of output: 50374


🌐 Web query:

registry.build10.ci.openshift.org ci-ln-39q90fb/release:latest

💡 Result:

The pullspec registry.build10.ci.openshift.org/ci-ln-39q90fb/release:latest refers to a container image stored within the OpenShift CI infrastructure [1][2]. Specifically: 1. Registry: registry.build10.ci.openshift.org is an integrated internal image registry associated with the build10 build farm cluster in the OpenShift CI environment [1][2][3]. 2. Namespace: ci-ln-39q90fb represents a specific, ephemeral namespace created for a CI job execution (often associated with a pull request or automated task) on that build farm [3]. 3. Image/Tag: release:latest points to a specific image stream and tag used within that CI job's context [3]. In the context of OpenShift CI, registry.build10.ci.openshift.org is primarily used for the temporary storage of build artifacts during job execution [3]. Official documentation advises that users and external integrations should not rely on these specific build-farm registry pullspecs for persistent image access [3]. Instead, the authoritative source for OpenShift CI images is the central registry, quay.io/openshift/ci [3]. Accessing images within these test namespaces typically requires being the author of the relevant pull request and performing an authentication via oc registry login [3].

Citations:


🌐 Web query:

OpenShift CI build registry build10 ci registry imagestreams release ci-ln-39q90fb

💡 Result:

The term ci-ln-39q90fb refers to an OpenShift CI build artifact identifier, specifically a unique namespace associated with a Prow job execution on a CI build farm [1]. In the OpenShift CI architecture, job names and environment variables often contain these identifiers to track resources and execution environments [2]. The prefix ci-ln- is a standard naming convention for namespaces created dynamically on CI build clusters (such as build10) to host pods and other resources during the execution of a test job [1]. Regarding the registry components mentioned: 1. QCI (quay.io/openshift/ci): This is the authoritative, central CI image registry and the source of truth for all images used in OpenShift CI [1][3]. 2. registry.ci.openshift.org: This is the integrated image registry on the app.ci cluster [1][3]. While it served as the central CI registry historically, it is now primarily used for internal automation, such as by Release Controllers to host promoted images for release-related tasks [1][3]. CI users are generally advised to reference images from QCI rather than the app.ci registry [1]. When troubleshooting, engineers often use the build farm's specific namespace (e.g., ci-ln-...) to pull image artifacts or inspect logs associated with a specific job execution [1]. If an image is missing, it is typically because it has not yet been promoted to or mirrored in the relevant registry [3].

Citations:


Do not rely on an ephemeral build-farm image for a weekly periodic.

registry.build10.ci.openshift.org/ci-ln-39q90fb/release:latest is a CI build-farm namespace (ci-ln-*), not a durable release; these images are not promoted and do not outlive the job that creates them. If the build namespace is unavailable or cleaned up, this periodic fails before testing MCO. Use an existing promoted stable/ci release image or create and document ownership for a durable image reference.

🤖 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/machine-config-operator/openshift-machine-config-operator-release-4.23__periodics.yaml`
at line 437, Update CUSTOM_OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE in the
weekly periodic configuration to use an existing promoted stable/ci release
image instead of the ephemeral ci-ln-39q90fb build-farm reference. If no
suitable promoted image exists, replace it with a durable image reference whose
ownership is documented.

@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@coderabbitai coderabbitai Bot mentioned this pull request Jul 29, 2026
@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@sergiordlr

Copy link
Copy Markdown
Contributor Author

/pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@sergiordlr: 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]
@sergiordlr: 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-openshift-origin-release-4.16-e2e-agent-disconnected-ovn-dualstack-metal3 openshift/origin presubmit Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-amd64-nightly-gcp-ipi-disc-priv-fips-mini-perm-f28-disasterrecovery N/A periodic Registry content changed
periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-fips-proxy-longduration-1of3 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.20-arm64-nightly-azure-ipi-disc-oidc-oc-mirror-mini-perm-f28-destructive N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.13-arm64-stable-4.13-upgrade-from-stable-4.12-aws-ipi-disc-priv-sts-ep-f999 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.19-amd64-nightly-gcp-ipi-disc-priv-oidc-oc-mirror-fips-f28-destructive N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.14-multi-nightly-azure-ipi-disc-fullypriv-amd-mixarch-f60-destructive N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.20-amd64-nightly-azure-ipi-disc-oidc-oc-mirror-mini-perm-f28-destructive N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.20-multi-nightly-gcp-ipi-disc-priv-mini-perm-amd-arm-day0-f28-destructive N/A periodic Registry content changed
periodic-ci-openshift-verification-tests-main-installation-nightly-4.17-azure-upi-disconnected-f28 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-multi-stable-gcp-ipi-disc-priv-mini-perm-arm-mixarch-f28 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-4.17-upgrade-from-stable-4.16-azure-ipi-disc-oidc-f28 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-amd64-nightly-4.18-upgrade-from-stable-4.17-aws-c2s-ipi-disc-priv-fips-f28 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.13-amd64-nightly-vsphere-upi-disc-sdn-workers-rhcos-rhel8-f60 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.20-amd64-nightly-aws-c2s-ipi-disc-priv-fips-f14 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.20-amd64-nightly-ibmcloud-ipi-disc-priv-oc-mirror-f28-destructive N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.21-multi-nightly-azure-ipi-arm-mixarch-disc-fullypriv-f14-day2-64k-pagesize N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.19-amd64-nightly-4.19-upgrade-from-stable-4.18-gcp-ipi-disc-priv-oidc-fips-mini-perm-f28 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.16-amd64-nightly-metal-ds-hypershift-agent-mce-disconnected-guest-f14-des N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.13-amd64-nightly-aws-ipi-disc-priv-workers-rhcos-rhel8-f60-destructive N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.12-amd64-nightly-gcp-ipi-disc-workers-rhel8-f60-destructive N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.21-amd64-nightly-aws-sc2s-ipi-disc-priv-fips-f14 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-gcp-ipi-disc-priv-oidc-fips-mini-perm-f28 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.20-amd64-nightly-4.20-upgrade-from-stable-4.20-aws-ipi-disc-priv-sts-ep-fips-f60 N/A periodic Registry content changed
periodic-ci-openshift-hypershift-release-4.17-periodics-mce-e2e-agent-disconnected-ovn-ipv6-metal-conformance N/A periodic Registry content changed

A total of 1149 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

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.

@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/step-registry/mco/conf/day2/pintargetrelease/mco-conf-day2-pintargetrelease-commands.sh`:
- Around line 24-32: Parse the upgrade-edge contents once into a validated
target value before assigning TARGET. Update the validation around upgrade-edge
to reject blank entries, malformed comma-separated values, and multiple targets;
then assign TARGET from that parsed value so the later oc adm release info
lookup never receives an empty or invalid target.
🪄 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: Pro Plus

Run ID: 2708fa34-91b7-4446-8215-cf85842df794

📥 Commits

Reviewing files that changed from the base of the PR and between 88012b1 and bfaef47.

📒 Files selected for processing (1)
  • ci-operator/step-registry/mco/conf/day2/pintargetrelease/mco-conf-day2-pintargetrelease-commands.sh

Comment on lines +24 to 32
# If those file exists with multiple releases we fail the execution since serial upgrades are not supported in this step
if [[ -f "${SHARED_DIR}/upgrade-edge" ]]; then
echo "ERROR: Serial upgrades are not supported!!"
exit 255
edge_count=$(tr ',' '\n' < "${SHARED_DIR}/upgrade-edge" | grep -c .)
if (( edge_count > 1 )); then
echo "ERROR: Serial upgrades are not supported!!"
exit 255
fi
echo "Single upgrade target override found in upgrade-edge, continuing..."
fi

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Files:"
fd -a 'mco-conf-day2-pintargetrelease|pintargetrelease|commands\.sh' . | sed 's#^\./##' | sort

main="ci-operator/step-registry/mco/conf/day2/pintargetrelease/mco-conf-day2-pintargetrelease-commands.sh"
ref="ci-operator/step-registry/mco/conf/day2/pintargetrelease/mco-conf-day2-pintargetrelease-ref.yaml"

if [[ -f "$main" ]]; then
  echo
  echo "Commands outline/size:"
  wc -l "$main"
  echo
  echo "Line-numbers 1-120:"
  cat -n "$main" | sed -n '1,120p'
fi

echo
if [[ -f "$ref" ]]; then
  wc -l "$ref"
  cat -n "$ref" | sed -n '1,180p'
else
  echo "ref missing"
fi

echo
echo "Search upgrade-edge/OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE:"
rg -n "upgrade-edge|OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE|TARGET|SERIAL|Serial" ci-operator/step-registry/mco/conf/day2/pintargetrelease ci-operator/step-registry 2>/dev/null | head -n 200

Repository: openshift/release

Length of output: 50374


🏁 Script executed:

#!/bin/bash
set -euo pipefail

target_file="ci-operator/step-registry/mco/conf/day2/pintargetrelease/mco-conf-day2-pintargetrelease-commands.sh"

echo "Candidate command file exists:"
ls -l "$target_file" || true

echo
echo "Line-numbers 1-80:"
cat -n "$target_file" | sed -n '1,80p' || true

echo
echo "Target file references:"
rg -n "OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE|upgrade-edge|TARGET|Serial|serial" "$target_file" || true

echo
echo "Behavioral probe for current parsing logic:"
python3 - <<'PY'
cases = ["release-image", ",release-image", "release-image,", ",,", "release-image,2", "  ,release-image  "]
for c in cases:
    edge_count = len([x for x in c.split(",") if x])
    target = c.split(",")[0]
    print(f"input={c!r} -> edge_count={edge_count} target={target!r}")
PY

Repository: openshift/release

Length of output: 5415


Parse and validate upgrade-edge once before overriding TARGET.

At lines 24-37, empty or malformed entries are accepted by the count check but can still be assigned to TARGET; for example, ,release-image passes validation, then TARGET="" and the later oc adm release info "${TARGET}" lookup fails. Reject blank/malformed input and assign TARGET from the same parsed value.

🤖 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/step-registry/mco/conf/day2/pintargetrelease/mco-conf-day2-pintargetrelease-commands.sh`
around lines 24 - 32, Parse the upgrade-edge contents once into a validated
target value before assigning TARGET. Update the validation around upgrade-edge
to reject blank entries, malformed comma-separated values, and multiple targets;
then assign TARGET from that parsed value so the later oc adm release info
lookup never receives an empty or invalid target.

@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@sergiordlr: 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/rehearse/periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco bfaef47 link unknown /pj-rehearse periodic-ci-openshift-machine-config-operator-release-4.23-periodics-e2e-aws-ipi-disc-priv-tp-pin-mco

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant