Conversation
package managers may not have any version of the desired tool installed
WalkthroughThis PR refines the native package installation flow in clang-tools-manager to handle version-check failures gracefully and improve diagnostic logging. When version verification fails (executable path unavailable or version capture unsuccessful), the installation now proceeds rather than erroring out immediately. Enhanced logging provides visibility into executed commands and apt installation failures. ChangesPackage installation flow improvements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #345 +/- ##
==========================================
+ Coverage 91.14% 92.88% +1.74%
==========================================
Files 22 22
Lines 3354 3361 +7
==========================================
+ Hits 3057 3122 +65
+ Misses 297 239 -58 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
I added some debug logs and ran the
clang-toolsbinary in a docker container. I found that theaptpackage manager support was failing because the check for any existing clang tool failed when the tool was not installed.I converted the check for a clang tool's presence into a soft check. Meaning, if it somehow fails then just fall back to installing the clang tool as if doing a fresh/normal install.
Note
The container I used seemed to be too new; the LLVM install script does not yet support Ubuntu "resolute". But at least the
clang-toolsbinary was able to fall back to static binaries. Plus, the debug and error logs are explanatory enough.Summary by CodeRabbit
Bug Fixes
Chores