Fix verify-packages.sh to dynamically read repo filenames#3898
Fix verify-packages.sh to dynamically read repo filenames#3898skitt merged 2 commits intosubmariner-io:develfrom
Conversation
|
🤖 Created branch: z_pr3898/dfarrell07/fix-verify-packages-dynamic-repo |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughScript .rpm-lockfiles/verify-packages.sh now reads the repository filename from each component's Changes
Sequence Diagram(s)sequenceDiagram
participant VerifyScript as "verify-packages.sh"
participant yq as "yq (CLI)"
participant Git as "Git repo (git show)"
participant LockDir as "lockfile dir"
Note over VerifyScript: Start per-component verification
VerifyScript->>yq: read .rpm-lockfiles/.../rpms.in.yaml -> .contentOrigin.repofiles[0]
alt repo filename present
VerifyScript->>Git: git show <GIT_REF>:.<repo_file>
Git-->>VerifyScript: repo file content
VerifyScript->>LockDir: write .$repo_file into lockfile dir
else no repo filename
VerifyScript-->>VerifyScript: skip repo fetch
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
The script was hardcoded to fetch "submariner-rhel-10.repo" from git, which silently failed (|| true) when verifying older branches that use submariner-rhel-9.repo. This caused the script to verify packages against the wrong RHEL version. Changes: - Extract repo filename from rpms.in.yaml for each component - Remove || true to fail fast when repo file is missing - Makes the script version-agnostic (works with RHEL 9 and 10) Verified: - release-0.22 (RHEL 9) correctly shows rhel-9 repos - release-0.23 (RHEL 10) correctly shows rhel-10 repos Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
c727eab to
14a8358
Compare
|
🤖 Closed branches: [z_pr3898/dfarrell07/fix-verify-packages-dynamic-repo] |
The script was hardcoded to fetch "submariner-rhel-10.repo" from git, which silently failed (|| true) when verifying older branches that use submariner-rhel-9.repo. This caused the script to verify packages against the wrong RHEL version.
Changes:
Verified:
Summary by CodeRabbit