fix(uninstall): scope Docker cleanup fields - #8976
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 (2)
📝 WalkthroughWalkthroughDocker uninstall cleanup now parses container and image fields, applies normalized NemoClaw/OpenShell ownership checks, and preserves unrelated registry or tag-matching resources. Tests cover exclusion of unrelated resources and removal of a managed OpenClaw sandbox image. ChangesDocker cleanup scope
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to The change narrows uninstall cleanup to owned Docker container names and image repositories while adding regression coverage for third-party matches; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests. E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: None This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Summary
Uninstall Docker cleanup now scopes broad cleanup to parsed Docker inventory fields instead of matching the whole output line. This keeps cleanup for NemoClaw/OpenShell-owned container names and image repositories, while avoiding third-party containers or images whose registry path or tag merely contains
nemoclaw.Related Issue
Fixes #8496
Changes
docker psinventory into ID, image, and container-name fields before selecting broad uninstall cleanup targets.docker imagesinventory into ID and image-reference fields, then match only the repository portion instead of tags or registry path substrings.openshell-*andnemoclaw-*container names,nemoclaw-*local repositories,openshell/*sandbox images, andghcr.io/nvidia/nemoclawmanaged images.nemoclawbut are not NemoClaw-owned cleanup targets.Type of Change
Quality Gates
Documentation Writer Review
no-docs-neededsrc/lib/actions/uninstall/run-plan.ts,src/lib/actions/uninstall/run-plan-docker-scope.test.ts; existing uninstall docs already describe scoped NemoClaw/OpenShell Docker cleanup and preservation of separate OpenClaw resources.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-docker-scope.test.ts src/lib/actions/uninstall/run-plan.test.tspassed 46 tests;npx tsc -p tsconfig.cli.json --noEmitpassed.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: danielpolimac danielpolimac@gmail.com
Summary by CodeRabbit