OCPBUGS-83863: Remove rhel8 build stage, strip debug info#113
Conversation
|
Skipping CI for Draft Pull Request. |
|
@sdodson: This pull request references Jira Issue OCPBUGS-83863, which is valid. 3 validation(s) were run on this bug
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. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughDockerfile.openshift consolidates the final image to one /bondcni/bond (with rhel9/rhel10 symlinks) and switches the base to ocp/4.21:base-rhel9. build.sh now builds bond with linker flags -ldflags '-s -w' to produce a stripped ./bin/bond. ChangesImage + build changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 `@Dockerfile.openshift`:
- Around line 12-14: Combine the two hardlink commands into a single RUN layer
so the links share the same inode instead of being duplicated across layers:
update the Dockerfile so one RUN creates both directories and performs both ln
operations (referencing the existing /bondcni/bond and target paths
/bondcni/rhel9/bond and /bondcni/rhel10/bond) in the same shell invocation,
ensuring mkdir -p for /bondcni/rhel9 and /bondcni/rhel10 and then creating both
hardlinks with ln so deduplication is preserved.
🪄 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: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 9cf49389-60f4-4f6e-bb06-203698fa1129
📒 Files selected for processing (1)
Dockerfile.openshift
a9cdb0a to
eb88af1
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sdodson The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
eb88af1 to
ea654ce
Compare
|
/retest-required |
ea654ce to
fc59adb
Compare
The rhel8 builder stage and its corresponding COPY are no longer needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
86f475b to
652cff7
Compare
Pass -ldflags '-s -w' to go build to strip the symbol table and DWARF debug information, reducing the binary size. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
652cff7 to
2ba8bc5
Compare
|
@sdodson: 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. |
karampok
left a comment
There was a problem hiding this comment.
thanks! Can you please have a single commit that starts with "Openshift Only".
|
|
||
| export GO111MODULE=on | ||
| go build --mod=vendor -o ./bin/bond ./bond/ | ||
| go build --mod=vendor -ldflags '-s -w' -o ./bin/bond ./bond/ |
There was a problem hiding this comment.
The build.sh is planned to be removed since is single line and if changed we should be change upstream (https://github.com/k8snetworkplumbingwg/bond-cni).
So for this PR can you make no changes here and simply replace the RUN ./build.sh in the Dockerfile.openshift instead?
Remove the rhel8 build stage and strip debug symbols from binaries.
The rhel9/rhel10 version-specific subdirectories are no longer needed
since openshift/cluster-network-operator#2967 removed the OS detection
logic and now copies binaries directly from the base directory.
Summary by CodeRabbit