fix(installer): re-run chown warns instead of aborting on partial failure - #1843
Conversation
…lly fails Under set -euo pipefail a bare chown -R hard-aborts the whole installer on a partial failure (immutable file, read-only mount). Warn and proceed instead, matching the sibling set_data_dir_ownership; the git reset that follows will surface any real ownership problem.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe installer’s existing-repository update path now treats recursive ownership normalization failures as warnings, allowing subsequent unprivileged Git fetch and reset operations to continue. ChangesInstaller update recovery
Estimated code review effort: 2 (Simple) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by hy3:free · Input: 35.5K · Output: 1.4K · Cached: 96.6K |
Audit follow-up to #1839. The re-run ownership
chown -Rruns underset -euo pipefail, so a partial failure (immutable file, read-only mount) aborts the whole installer. Wrap it in awarnlike the siblingset_data_dir_ownershipdoes, and let the subsequent git reset surface any real ownership problem. bash -n clean.Summary by CodeRabbit