OCPBUGS-83693: Fix rhel10 rhocp repo configuration in RPM install#6606
Conversation
|
@ggiguash: This pull request references Jira Issue OCPBUGS-83693, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (agullon+dev1@redhat.com), skipping review request. The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this: 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. |
WalkthroughModified an RHEL 10 boot container test script to replace Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/scenarios-bootc/el10/presubmits/el102-src`@rpm-install.sh:
- Line 77: The arch variable is currently defaulting to the test runner's uname
-m (local) which can differ from the VM/host1; change the default for local -r
arch=${4:-$(uname -m)} (and the similar uses at the other occurrences around
lines 131-141 and 143-146) to resolve architecture by querying host1 instead
(e.g., replace the local uname -m with the project’s remote-exec helper or an
ssh to host1 to run uname -m) so CDN URLs use the VM's architecture; update
every reference that falls back to $(uname -m) to use the host1-resolved
architecture variable.
- Around line 52-53: The current selection picks cert and key independently and
can choose different entitlement IDs; change the logic so you first determine a
single entitlement basename/ID (e.g., via run_command_on_vm used to list
/etc/pki/entitlement/[0-9]*.pem and pick one entry), then derive both cert and
key paths from that same basename/ID (construct cert as "<basename>.pem" and key
as "<basename>-key.pem") so variables cert and key refer to a matching pair;
update the code that sets local -r cert and local -r key to use that single
derived basename instead of two separate ls/grep calls.
🪄 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: a38969e3-0e53-44ad-b5c0-8a559490828b
📒 Files selected for processing (1)
test/scenarios-bootc/el10/presubmits/el102-src@rpm-install.sh
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: agullon, ggiguash The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified by ci |
|
@ggiguash: This PR has been marked as verified by DetailsIn response to this:
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. |
|
@ggiguash: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
@ggiguash: Jira Issue OCPBUGS-83693: All pull requests linked via external trackers have merged: All linked pull requests have the DetailsIn response to this:
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. |
Summary by CodeRabbit