Fix OKD image build procedure - #224
Conversation
📝 WalkthroughWalkthroughSeveral curl commands now use Changescurl Flag Hardening
OKD build image rewrite
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/copr/cni/build.sh (1)
52-53: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick winAdd
--retryfor consistency and resilience. These release-tarball downloads gate the build but lack--retry, unlikecurlat Line 18 and the other hardened calls in this PR. Since the PR aims for consistent curl options, align them.♻️ Proposed change
-curl -fsSL -o amd64.tgz "https://github.com/containernetworking/plugins/releases/download/v${version}/cni-plugins-linux-amd64-v${version}.tgz" -curl -fsSL -o arm64.tgz "https://github.com/containernetworking/plugins/releases/download/v${version}/cni-plugins-linux-arm64-v${version}.tgz" +curl -fsSL --retry 3 -o amd64.tgz "https://github.com/containernetworking/plugins/releases/download/v${version}/cni-plugins-linux-amd64-v${version}.tgz" +curl -fsSL --retry 3 -o arm64.tgz "https://github.com/containernetworking/plugins/releases/download/v${version}/cni-plugins-linux-arm64-v${version}.tgz"🤖 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 `@src/copr/cni/build.sh` around lines 52 - 53, The release-tarball download commands in the cni build script are missing the same retry behavior used elsewhere, so update the amd64.tgz and arm64.tgz curl calls to include --retry for consistency and resilience. Make the change in the build.sh download block alongside the existing curl options, matching the hardened pattern already used by the other curl invocations in this script.
🤖 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.
Nitpick comments:
In `@src/copr/cni/build.sh`:
- Around line 52-53: The release-tarball download commands in the cni build
script are missing the same retry behavior used elsewhere, so update the
amd64.tgz and arm64.tgz curl calls to include --retry for consistency and
resilience. Make the change in the build.sh download block alongside the
existing curl options, matching the hardened pattern already used by the other
curl invocations in this script.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: d1211d41-accf-4bc4-88fc-fa24e3dee42d
📒 Files selected for processing (8)
.github/actions/prebuild/action.yaml.github/workflows/cncf-conformance.yamlpackaging/srpm.Containerfilesrc/copr/cni/build.shsrc/kindnet/generate_manifests.shsrc/quickrpm.shsrc/quickstart.shsrc/rpm/postinstall.sh
Closes #223
Summary by CodeRabbit
Bug Fixes
Chores