fix(onboard): remove stale Hermes volumes on recreation - #10452
fix(onboard): remove stale Hermes volumes on recreation#10452prekshivyas wants to merge 1 commit into
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 (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughManaged Hermes state-volume onboarding now returns ChangesHermes state-volume lifecycle
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change removes stale Hermes state for replacements that do not use managed Hermes while preserving it for managed targets; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit f546035 in the TypeScript / code-coverage/cliThe overall line coverage in commit f546035 in the Show a line coverage summary of the most impacted files.
Updated |
|
Superseded by #10450. The consolidated PR now includes the managed Hermes recreation ownership fix, failed-create compensation, lifecycle documentation, and owned/reused/foreign-volume regression coverage. |
Summary
Remove a recreated sandbox's stale Hermes state volume when the replacement target does not use managed Hermes state. Previously, the lifecycle wrapper was truthy even when volume preparation returned no lifecycle, so recreation incorrectly retained the old volume for OpenClaw, custom-Dockerfile, and non-Docker targets.
Changes
nullfrom the managed Hermes state lifecycle wrapper when no managed volume is prepared.Type of Change
Quality Gates
DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpx vitest run --project cli src/lib/onboard/sandbox-create/orchestration.test.ts src/lib/onboard/managed-workload/onboard-orchestration.test.ts src/lib/onboard/managed-workload/hermes-state-volume.test.ts(54 passed)npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result:npm run docsbuilds without warnings (doc changes only)Signed-off-by: Prekshi Vyas prekshiv@nvidia.com
Summary by CodeRabbit
Bug Fixes
Tests
Documentation