fix(e2e): restore backup directories file-by-file#3619
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PR refactors the workspace backup script's directory restoration to upload files individually rather than bulk-uploading directories. It adds ChangesDirectory Restoration Refactor
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@scripts/backup-workspace.sh`:
- Around line 58-59: The call to dirname when computing rel_parent can
misinterpret filenames beginning with - as options; update the invocation that
sets rel_parent to pass a double-dash separator so the filename is treated as an
operand (i.e. use dirname -- "$rel"). Modify the assignment that references
rel_parent/rel and ensure the unique symbols mentioned (rel_parent, rel,
dirname) are updated accordingly.
🪄 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: Enterprise
Run ID: a5058eed-95e8-4166-894d-570e2fe3d597
📒 Files selected for processing (1)
scripts/backup-workspace.sh
Selective E2E Results — ✅ All requested jobs passedRun: 25936478345
|
Summary
memory/2026-04-20.mdinstead of relying on ambiguousopenshell sandbox uploaddirectory semanticsValidation
bash -n scripts/backup-workspace.shnpm test -- --run test/snapshot.test.tsopenshellrestore verified nested files land under/sandbox/.openclaw/workspace/memory/...Context
Addresses nightly
state-backup-restore-e2efailure where backup capturedmemory/2026-04-20.mdbut restore dropped the nested directory.Summary by CodeRabbit
Bug Fixes
Chores