-
Notifications
You must be signed in to change notification settings - Fork 82
fix(docker): Ignore errors from clp-package dev image removal (fixes #1370). #1372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughUpdates tools/docker-images/clp-package/build.sh to guard image removal: exit early if the previous image is absent; if present, print a message and attempt removal. The removal command tolerates failure (using “|| true”) to prevent the script from stopping on errors. Changes
Sequence Diagram(s)sequenceDiagram
participant S as build.sh
participant D as Docker Daemon
S->>D: Check if previous image exists
alt Image exists
S->>D: docker rmi <prev-image>
note right of S: Removal is tolerant (|| true)
D-->>S: Success or failure (ignored)
else No image
S-->>S: Return early (skip removal)
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings
📚 Learning: 2025-07-01T14:52:02.418Z
Applied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
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 |
Description
This change updates the Docker cleanup logic to ignore errors that may occur when attempting to remove the
clp-package
development image. The adjustment prevents the build process from failing if the image cannot be removed, addressing issue #1370.Checklist
breaking change.
Validation performed
task
to build the CLP package and the docker image.cd build/clp-package/; ./sbin/start-clp.sh
task
again and observe the build was able to complete successfully, although warnings were printing about the build cannot be removed:Summary by CodeRabbit
Bug Fixes
Chores