-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix OpenSearchNode working directory to avoid executing in immutable Gradle cache directory #20229
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
WalkthroughAdjusted OpenSearchNode's script execution so the binary is resolved from the distribution's bin directory and the process runs from the node's working directory instead of the distro/Gradle cache directory, preventing writes into the immutable Gradle transform cache. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ 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). (20)
Comment |
…ble Gradle cache directory Signed-off-by: Daniel Widdis <[email protected]>
0c0e7db to
35c5865
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20229 +/- ##
============================================
+ Coverage 72.82% 73.18% +0.35%
- Complexity 71315 71771 +456
============================================
Files 5795 5795
Lines 328297 328306 +9
Branches 47282 47283 +1
============================================
+ Hits 239089 240276 +1187
+ Misses 69893 68787 -1106
+ Partials 19315 19243 -72 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Modified OpenSearchNode binary execution directory from
getDistroDir()toworkingDir.toFile()so that all OpenSearch bin scripts run from the node's working directory instead of the Gradle cache directory.Changed the Unix executable to use absolute paths since we changed the working directory.
Related Issues
Check List
[ ] API changes companion pull request created, if applicable.[ ] Public documentation issue/PR created, if applicable.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.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.