OCPBUGS-8251: fix misleading --to-multi-arch messages #2339
Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.
For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.
This repository is configured in: LGTM mode
@savio87: This pull request references Jira Issue OCPBUGS-8251, which is invalid:
- expected the bug to target the "5.0.0" version, but no target version was set
Comment <code>/jira refresh</code> to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
The bug has been updated to refer to the pull request using the external bug tracker.
<details>
In response to this:
>## Summary
>Theoc adm upgrade --to-multi-archcommand used the phrase "multi cluster architecture" in its success and error messages, which is misleading. Updated all three message strings to use the correct term "multi-architecture", consistent with the wording used inoc adm upgrade status.
>Bug: https://redhat.atlassian.net/browse/OCPBUGS-8251
>## Changes
>- Flag help: "multi architecture" -> "multi-architecture"
>- Already-requested error: "info: Update to multi cluster architecture has already been requested" -> "Cluster has already been requested to update to multi-architecture"
>- Success message: "Requested update to multi cluster architecture" -> "Requested update to multi-architecture"
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.
</details>
Hi @savio87. Thanks for your PR.
I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.
Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.
<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.
</details>
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
No actionable comments were generated in the recent review. 🎉
<details>
<summary>ℹ️ Recent review info</summary>
<details>
<summary>⚙️ Run configuration</summary>
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: 65b0c042-533a-43d2-ae75-8a1063644be6
</details>
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between be748e325b615a70ca78603904a85d6e3efd7b5f and 4ec0c86957741bb004efe215e43aea5c5b762d09.
</details>
<details>
<summary>📒 Files selected for processing (1)</summary>
pkg/cli/admin/upgrade/upgrade.go
</details>
<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary>
pkg/cli/admin/upgrade/upgrade.go
</details>
</details>
---
<!-- walkthrough_start -->
Walkthrough
The upgrade command updates its multi-architecture flag help text and status messages. The changes only revise terminology. Functional behavior remains unchanged.
Changes
Multi-architecture upgrade messaging
|Layer / File(s)|Summary|
|---|---|
|Upgrade message terminology <br> pkg/cli/admin/upgrade/upgrade.go|The --to-multi-arch help text and multi-architecture request messages now use consistent hyphenated terminology.|
Estimated code review effort: 1 (Trivial) | ~2 minutes
Suggested reviewers: ardaguclu
<!-- walkthrough_end -->
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary>🚥 Pre-merge checks | ✅ 15</summary>
<details>
<summary>✅ Passed checks (15 passed)</summary>
| Check name | Status | Explanation |
| :----------------------------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly identifies the issue and summarizes the changes to misleading --to-multi-arch messages. |
| 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 changes only three user-facing strings in upgrade.go and adds no test files or Ginkgo test-title calls. |
| Test Structure And Quality | ✅ Passed | The pull request changes only production message text in upgrade.go; it adds no Ginkgo tests, cluster operations, waits, or assertions to review. |
| Microshift Test Compatibility | ✅ Passed | The pull request changes one production string in upgrade.go and adds no Ginkgo e2e tests, so MicroShift test compatibility does not apply. |
| Single Node Openshift (Sno) Test Compatibility | ✅ Passed | The pull request changes only one message string in upgrade.go and adds no Ginkgo e2e tests or other test files, so the SNO check is not applicable. |
| Topology-Aware Scheduling Compatibility | ✅ Passed | The commit modifies only one output string in pkg/cli/admin/upgrade/upgrade.go; it adds no manifests, controllers, operators, or scheduling constraints. |
| Ote Binary Stdout Contract | ✅ Passed | The PR changes only a message in Options.Run, using injected o.Out; it does not modify OTE main or suite setup, and no process-level stdout write was introduced. |
| Ipv6 And Disconnected Network Test Compatibility | ✅ Passed | The patch changes only one CLI message in upgrade.go; it adds no Ginkgo e2e tests, IPv4 assumptions, or external connectivity. |
| No-Weak-Crypto | ✅ Passed | The PR patch changes only one user-facing string in upgrade.go; it adds no crypto imports, algorithms, secret comparisons, or weak-crypto constructs. |
| Container-Privileges | ✅ Passed | The full PR diff changes only upgrade.go message strings; it adds no manifests or privilege settings such as privileged, hostPID, hostNetwork, SYS_ADMIN, or allowPrivilegeEscalation. |
| No-Sensitive-Data-In-Logs | ✅ Passed | The added log message contains only fixed upgrade-status text; it includes no passwords, tokens, keys, PII, hostnames, session IDs, or customer data. |
</details>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- finishing_touch_checkbox_start -->
<details>
<summary>✨ Finishing Touches</summary>
<details>
<summary>🧪 Generate unit tests (beta)</summary>
</details>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->
---
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.
<details>
<summary>❤️ Share</summary>
</details>
<sub>Comment @coderabbitai help to get the list of available commands.</sub>
<!-- tips_end -->
<!-- internal state start -->
<!-- N4IgzgxgFgpgtgQwGowE5gJYHsB2IBcAjADTgAuqArhGZajACYDKZCZMBoYF1t9K6bHiKkADqgDyAIwBWMGhgBuMMARABidQAIACgCUtYSnESoAngB0cVgKqiGbFVoAGWCFoQM4Wyq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QygIQUybACAIQRSIQr0CypZoJqR4JlZWRHusuMJa2PYUweQGJrQhhThD6p+/+A0PYS2IQ3MzkOsLRuJOQaU4qT+qc+wU8621wEQ3YwZWg3YZgQuy5xIa53ApSr4QB4I4KK5VhNYP5XQroCAT5wgKBr5RxJxfh1xb2mZriryZA+gwKJytJeqCIYMX4BkE4rg7g/EWJtkfqqs3k5kqQ+ePZHwao7cmYUAgQNGFgqBasuE6UXQSCfk9AblEegu9qQI4IMeRxrZ7q/OvQ8JXGFQVQNQPqNo8sdI52o2MA5QxRhgshHqKE36mQqaesQUWgblAa8U9sblBhD6FW00cwGYfYTFIYDlEexlse3gS2mV6qd4BkPIlAfgW0UAZAZAogYA+AoYoY9ADAKY/GbArymAfw0IKkZAoYUguwaQsSoYJEfIgoIoEohABkCIqW7qBkuKAAYvZFrFtMVR5T5dlDAP5SEAAHxFXuVWVrC+W3UgBWC4pyS3DxU9z+Z8Y9hHEXUgA5BERbRJUp4limSeVc7XX2xaApgHDyhdyzDKhoi+59x3WPVuWIh4QZSI2dy/XlTo2oLzglgbhhEFAlV2ybBuWfUA7UBwThUwDA0fIBZ0gU2Q2ggeWc4ZRw200gChDY0gBs0A32WQSU1Q1qyDxvVuUvJtgaV6CKrVAabcibXkQ7VbRgQDSepxW1DugWXU3M3IakCqgRA6DUYwDlLsBsTqUW0OVyRkAfK0L0ICFkDIiBjZb4AWhVKS6VDtqgBpDLEwAhzrwWiEA4zKJSCeAiiCIWghAEzijWIhA4zCjGKHTigwBGK7QR02ICKfQfQfRAA= -->
<!-- internal state end -->
Small messaging fix — updates "multi cluster architecture" to "multi-architecture" to match the wording in oc adm upgrade status. Could a maintainer update the target version on OCPBUGS-8251 and run /ok-to-test? Thanks!
Requested update to multi-architecture cluster sounds a bit more complete, thanks.
Thanks @tchap! Updated the success message to "Requested update to multi-architecture cluster".
/jira refresh
@tchap: This pull request references Jira Issue OCPBUGS-8251, which is valid. The bug has been moved to the POST state.
<details><summary>3 validation(s) were run on this bug</summary>
bug is open, matching expected state (open)
bug target version (5.0.0) matches configured target version for branch (5.0.0)
No GitHub users were found matching the public email listed for the QA contact in Jira (jianl@redhat.com), skipping review request.
<details>
In response to this:
>/jira refresh
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.
</details>
/ok-to-test
/lgtm
Scheduling required tests:
/test e2e-agnostic-ovn-cmd
/test e2e-aws-ovn
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-aws-ovn-upgrade
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: <a href="https://github.com/openshift/oc/pull/2339#" title="Author self-approved">savio87</a>, <a href="https://github.com/openshift/oc/pull/2339#issuecomment-5219280937" title="LGTM">tchap</a>
Once this PR has been reviewed and has the lgtm label, please assign wking for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
<details open>
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
</details>
<!-- META={"approvers":["wking"]} -->
@savio87: 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.
</details>
<!-- test report -->
Hi @wking , this PR has lgtm from @tchap and all tests passed. Would appreciate an approval when you get a chance. Thanks!
/jira refresh
@savio87: This pull request references Jira Issue OCPBUGS-8251, which is valid.
<details><summary>3 validation(s) were run on this bug</summary>
bug is open, matching expected state (open)
bug target version (5.1.0) matches configured target version for branch (5.1.0)
No GitHub users were found matching the public email listed for the QA contact in Jira (jianl@redhat.com), skipping review request.
<details>
In response to this:
>/jira refresh
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.
</details>
Hi @wking — gentle ping. This PR has lgtm from @tchap and all CI (including e2e) passed. Could you please /approve when you have a moment?
Also still needs /verified (or verified-later) for Tide. Thanks!
tchap
savio87
Summary
The
oc adm upgrade --to-multi-archcommand used the phrase "multi cluster architecture" in its success and error messages, which is misleading. Updated all three message strings to use the correct term "multi-architecture", consistent with the wording used inoc adm upgrade status.Bug: https://redhat.atlassian.net/browse/OCPBUGS-8251
Changes
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Documentation
Updated upgrade command flags and status messages to consistently use “multi-architecture” terminology.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->