Fix MicroShift build problems caused by OKD version disperancy and downstream changes#217
Conversation
📝 WalkthroughWalkthroughThe PR extends the Makefile's help text with additional sub-target descriptions and reorders the copr.mk include. It also adds skopeo to the SRPM container, introduces per-architecture OKD version detection via get_version.sh, and updates prebuild scripts to use architecture-specific version tags instead of a shared global tag. ChangesMakefile Help & Include Ordering
Multi-Architecture OKD Version Detection
Sequence DiagramsequenceDiagram
participant Build as Container Build
participant Script as get_version.sh
participant Files as Version Files
participant Prebuild as prebuild.sh
Build->>Script: Execute to detect OKD versions
Script->>Script: Detect arch-specific versions
Script->>Files: Write x86_64 version to /tmp/okd_version_x86_64
Script->>Files: Write aarch64 version to /tmp/okd_version_aarch64
Files-->>Prebuild: Read per-arch versions
Prebuild->>Prebuild: Replace OKD/kindnet/multus refs with correct arch-specific tags
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packaging/srpm.Containerfile`:
- Around line 32-43: The RUN step calls the OKD_GET_VERSION_SCRIPT (which uses
skopeo list-tags) without retries and can fail transiently; add a shell retry
helper function (e.g., retry()) defined once before the conditional in the same
Dockerfile/RUN context and wrap both invocations of "${OKD_GET_VERSION_SCRIPT}"
(the two uses that produce /tmp/okd_version_x86_64 and /tmp/okd_version_aarch64)
with that retry helper so each cross-arch lookup is retried (matching the
existing curl --retry pattern) before writing the tmp files and continuing the
echo logging.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 0af485a5-2a5d-4be0-a1a7-ccf972c64278
📒 Files selected for processing (2)
Makefilepackaging/srpm.Containerfile
Resolves #216
See #218 for a follow-up on cleaning up the TODO item introducted in this PR.
Summary by CodeRabbit