Repository navigation
fix(cli): remove stopped sandbox before Hermes volume - #10374
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
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)
🚧 Files skipped from review as they are similar to previous changes (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe uninstall flow removes owned Hermes containers before eligible managed Hermes state volumes. Tests model owned and foreign containers and verify cleanup ordering and blocked volume removal. ChangesHermes uninstall cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The uninstall flow now removes owned stopped sandbox containers before the managed Hermes volume, preserving retry state when foreign containers remain. No actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant UninstallPlan
participant Docker
participant HermesVolumes
UninstallPlan->>Docker: Remove owned Hermes containers
Docker-->>UninstallPlan: Return removal result
UninstallPlan->>HermesVolumes: Remove managed Hermes state volumes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
PR review advisory complete for commit |
<!-- markdownlint-disable MD041 --> ## Summary Restore exact-source managed-image catalog selection during ordinary onboarding. Before this change, exact source installs ignored the installed build revision and requested the release alias `v0.1.0`, which is unavailable for the tested PR commit. This restores the behavior accepted in #10320 after #10332 removed the orchestration call and its regression test while leaving the revision resolver in place. ## Changes - Pass the installed source revision to managed-image catalog resolution for ordinary exact-source onboarding. - Preserve live E2E revision, live catalog, temporary catalog, and rebuild authority. - Restore an orchestration test that fails if exact-source revision selection is removed again. - Trigger the main managed-image publisher when the catalog selector changes, so the merged source revision receives a matching immutable catalog. - Extend the workflow boundary contract to protect that exact trigger path. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Quality Gates - [x] Tests added or updated for changed behavior - [ ] Existing tests cover changed behavior — justification: - [ ] Tests not applicable — justification: - [x] Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging) - [x] Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: This restores the exact selection path accepted in #10320 without changing the build-identity resolver or precedence. Prior sensitive-path approval: #10320 (review) - [ ] Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue: ## DGX Station Hardware Evidence - [ ] Tested on DGX Station - Tested commit: Not applicable; `scripts/prepare-dgx-station-host.sh` is unchanged. - Station profile/scenario: Not applicable. - Result: Not applicable. - Supporting evidence: Not applicable. ## Verification - [x] PR description includes a `Signed-off-by:` line and every commit appears as `Verified` in GitHub - [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or `npm run validate:pr` passed after refreshing `origin/main` when hooks were skipped or unavailable - [x] Targeted behavior tests pass for the current change set, or tests are marked not applicable above — `npx vitest run --project cli src/lib/onboard/managed-workload/onboard-orchestration.test.ts src/lib/onboard/sandbox-workload-preparation.test.ts` passed 47 tests; base-image publication E2E-support tests passed 99 tests; the managed-image publication workflow integration test passed 35 tests; `npm run typecheck:cli` passed - [ ] Applicable broad gate passed — not applicable to this focused catalog-selection and publication-trigger regression fix; targeted tests and all normal hooks passed - [x] Quality Gates section completed with required justifications or waivers - [x] No secrets, API keys, or credentials committed - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) ### Physical Brev reproduction A clean Ubuntu 22.04 L40S instance installed PR #10374 commit `9621bb06da4ddb2e382f780eaf862154f48fa80e`. Standard Hermes onboarding stopped before sandbox creation because it requested managed image catalog `v0.1.0`; the GHCR manifest returned HTTP 404. The installed source revision was exact and the onboarding registry recorded one partial row. No credential, IP address, or raw log is attached to this PR. --- Signed-off-by: Senthil Ravichandran <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved managed workload onboarding to reliably use the installed catalog revision when no newer configuration or rebuild handoff is available. * Prevented conflicting live revision and catalog settings from being accepted simultaneously. * Preserved the exact installation reference during onboarding outside GitHub Actions. * Updated managed image publishing to respond when onboarding orchestration changes, helping keep published images aligned with the latest behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Senthil Ravichandran <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Prekshi Vyas <[email protected]>
Summary
Uninstall now removes NemoClaw-owned stopped Docker sandbox containers before it removes a managed Hermes state volume. Previously, an unreachable OpenShell gateway could leave a stopped container attached to the volume, which stopped
nemoclaw uninstall --yes --destroy-user-databefore CLI and state cleanup.Changes
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/actions/uninstall/run-plan-hermes-state-volume.test.ts src/lib/actions/uninstall/run-plan-docker-scope.test.ts— 2 files and 12 tests 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: Senthil Ravichandran [email protected]
Summary by CodeRabbit