Fix Docker version extraction when prefixed with 'v' (on some systems / distributions)#20670
Fix Docker version extraction when prefixed with 'v' (on some systems / distributions)#20670reta merged 1 commit intoopensearch-project:mainfrom
Conversation
… / distributions) Signed-off-by: Andriy Redko <drreta@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ 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). (19)
🔇 Additional comments (1)
📝 WalkthroughWalkthroughThe change adjusts Docker version parsing in the DockerSupportService to handle optional leading 'v' characters in server version strings. The version string is now trimmed and any leading 'v' is stripped before creating the Version object, improving parsing robustness across different Docker CLI output formats. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
^ I just ran into this issue. Thanks for the fix @reta ! |
|
❌ Gradle check result for b8273aa: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
On me |
|
❌ Gradle check result for b8273aa: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for b8273aa: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20670 +/- ##
============================================
- Coverage 73.19% 73.15% -0.05%
- Complexity 71924 71947 +23
============================================
Files 5781 5781
Lines 329292 329396 +104
Branches 47514 47525 +11
============================================
- Hits 241026 240960 -66
- Misses 68925 69058 +133
- Partials 19341 19378 +37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
On some systems, Docker reports version prefixed with 'v', on some without, for example:
Related Issues
The build fails with:
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.