Skip to content

code added to skip rhcl install on s390x#2985

Merged
bdattoma merged 3 commits into
red-hat-data-services:masterfrom
diwsharm:skip_rhcl_install
Jul 14, 2026
Merged

code added to skip rhcl install on s390x#2985
bdattoma merged 3 commits into
red-hat-data-services:masterfrom
diwsharm:skip_rhcl_install

Conversation

@diwakarsharma2

@diwakarsharma2 diwakarsharma2 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor
Screenshot 2026-07-08 at 11 10 40 AM Screenshot 2026-07-08 at 11 10 09 AM

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: c6f21d8b-dec8-4724-b954-355298fe9c81

📥 Commits

Reviewing files that changed from the base of the PR and between 62f3dcb and fff9291.

📒 Files selected for processing (1)
  • ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot

📝 Walkthrough

Walkthrough

Adds an early architecture check in a Robot Framework keyword for connectivity link installation. On s390x, it logs skip messages for the Red Hat Connectivity Link and Authorino operators and returns before namespace creation, operator installation, CSV waits, or configuration steps.

Changes

Architecture Guard for Operator Installation

Layer / File(s) Summary
s390x skip guard
ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot
Adds a conditional check on ARCH_TYPE; if s390x, logs skip messages for connectivity link and Authorino operators and returns early instead of proceeding with installation.

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

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: skipping RHCL installation on s390x.
Description check ✅ Passed The description is related to the PR and shows Jenkins output for the install flow and passing results.
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.
✨ 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 commented Jul 9, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bdattoma, diwakarsharma2, kobihk

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-ci openshift-ci Bot removed the lgtm label Jul 9, 2026
@openshift-ci

openshift-ci Bot commented Jul 9, 2026

Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

@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 `@ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot`:
- Around line 1081-1094: Remove the redundant s390x guard in the Connectivity
Link setup flow because the earlier ARCH_TYPE check already returns for s390x,
making the later IF/ELSE in oc_install.robot unreachable. Simplify the block
around Run And Return Rc And Output and Configure Authorino so the configuration
steps run unconditionally there, and delete the dead ELSE logging for s390x.
Keep the existing processLogger-style error handling intact for the command
failure path.
🪄 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: Enterprise

Run ID: c6f21d8b-dec8-4724-b954-355298fe9c81

📥 Commits

Reviewing files that changed from the base of the PR and between 62f3dcb and fff9291.

📒 Files selected for processing (1)
  • ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot

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

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

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 `@ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot`:
- Around line 1081-1094: Remove the redundant s390x guard in the Connectivity
Link setup flow because the earlier ARCH_TYPE check already returns for s390x,
making the later IF/ELSE in oc_install.robot unreachable. Simplify the block
around Run And Return Rc And Output and Configure Authorino so the configuration
steps run unconditionally there, and delete the dead ELSE logging for s390x.
Keep the existing processLogger-style error handling intact for the command
failure path.
🪄 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: Enterprise

Run ID: c6f21d8b-dec8-4724-b954-355298fe9c81

📥 Commits

Reviewing files that changed from the base of the PR and between 62f3dcb and fff9291.

📒 Files selected for processing (1)
  • ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot
🛑 Comments failed to post (1)
ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot (1)

1081-1094: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Remove the now-dead s390x configuration check.

The early guard at lines 1048–1052 already RETURNs when ${ARCH_TYPE} is s390x, so the second check at line 1083 and its ELSE branch (lines 1092–1094) are unreachable dead code. ${ARCH_TYPE} is not modified between the two checks, so the condition at line 1083 will always be true. This should be simplified to unconditionally run the configuration steps.

♻️ Proposed cleanup
         # Wait for authorino-operator to be ready (installed by rhcl-operator as OLM dependency)
         Wait Until Csv Is Ready    display_name=${AUTHORINO_CSV_NAME}
             ...    operators_namespace=${CONNECTIVITY_LINK_NS}    timeout=5m
-        # Skip configure_connectivity_link_operator.sh for s390x architecture
-        ${arch_type} =    Get Variable Value    ${ARCH_TYPE}    amd64
-        IF    '${arch_type}' != 's390x'
-            ${rc}    ${output} =    Run And Return Rc And Output    sh tasks/Resources/RHODS_OLM/install/configure_connectivity_link_operator.sh
-            Log    ${output}    console=yes
-            IF    ${rc} != ${0}
-                Log    Unable to configure Connectivity Link.\nCheck the cluster please    console=yes
-                ...    level=ERROR
-                FAIL    Unable to configure Connectivity Link
-            END
-            Configure Authorino
-        ELSE
-            Log    Skipping configure_connectivity_link_operator.sh for s390x architecture    console=yes
-            Log    Skipping Authorino configuration for s390x architecture    console=yes
-        END
+        ${rc}    ${output} =    Run And Return Rc And Output    sh tasks/Resources/RHODS_OLM/install/configure_connectivity_link_operator.sh
+        Log    ${output}    console=yes
+        IF    ${rc} != ${0}
+            Log    Unable to configure Connectivity Link.\nCheck the cluster please    console=yes
+            ...    level=ERROR
+            FAIL    Unable to configure Connectivity Link
+        END
+        Configure Authorino
     END
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

        # Wait for authorino-operator to be ready (installed by rhcl-operator as OLM dependency)
        Wait Until Csv Is Ready    display_name=${AUTHORINO_CSV_NAME}
            ...    operators_namespace=${CONNECTIVITY_LINK_NS}    timeout=5m
        ${rc}    ${output} =    Run And Return Rc And Output    sh tasks/Resources/RHODS_OLM/install/configure_connectivity_link_operator.sh
        Log    ${output}    console=yes
        IF    ${rc} != ${0}
            Log    Unable to configure Connectivity Link.\nCheck the cluster please    console=yes
            ...    level=ERROR
            FAIL    Unable to configure Connectivity Link
        END
        Configure Authorino
🤖 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 `@ods_ci/tasks/Resources/RHODS_OLM/install/oc_install.robot` around lines 1081
- 1094, Remove the redundant s390x guard in the Connectivity Link setup flow
because the earlier ARCH_TYPE check already returns for s390x, making the later
IF/ELSE in oc_install.robot unreachable. Simplify the block around Run And
Return Rc And Output and Configure Authorino so the configuration steps run
unconditionally there, and delete the dead ELSE logging for s390x. Keep the
existing processLogger-style error handling intact for the command failure path.

@sonarqubecloud

Copy link
Copy Markdown

@bdattoma
bdattoma merged commit fc256f8 into red-hat-data-services:master Jul 14, 2026
9 of 10 checks passed
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.

5 participants