fix: remove os data as part of reset#1983
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe ChangesFactory Reset opensearch-data Cleanup
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
This comment has been minimized.
This comment has been minimized.
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Makefile`:
- Around line 624-628: The factory-reset confirmation summary is missing the new
opensearch-data deletion, so update the warning text shown before confirmation
to include that directory alongside the existing local data paths. Make this
change in the Makefile target that drives the reset flow, keeping the summary
aligned with the destructive actions performed by the reset logic that removes
opensearch-data.
- Around line 624-627: The opensearch-data cleanup block in the Makefile always
reports success even if rm -rf fails, so adjust that cleanup path to surface
failures instead of unconditionally printing the removed message. Update the
opensearch-data removal logic to check the return status of the cleanup command
and only emit the success message when deletion actually succeeds, using the
existing opensearch-data cleanup block as the target for the fix.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a0623e60-6d26-4f89-bf42-b0670cc988a4
📒 Files selected for processing (3)
CONTRIBUTING.mdMakefiledocs/docs/_partial-factory-reset-warning.mdx
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Build successful! ✅ |
fix: remove os data as part of reset
Summary by CodeRabbit
Documentation
Bug Fixes
opensearch-datadirectory, helping prevent old index files from remaining after cleanup.