fix(onboard): bind final handoff to replacement id - #10053
Conversation
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
|
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)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughGPU patch finalization now corroborates replacement containers by exact full ID and OpenShell management label. Sandbox-name metadata no longer affects validation. Tests cover Error and Deleting lifecycle states, including stale name metadata. ChangesGPU replacement validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This localized change binds final handoff verification to the transaction-owned replacement ID, preventing stale sandbox-name metadata from delaying recovery. No actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant LifecycleRelease
participant isExactOpenShellReplacement
participant Docker
LifecycleRelease->>isExactOpenShellReplacement: verify full replacement ID
isExactOpenShellReplacement->>Docker: query managed containers by exact ID
Docker-->>isExactOpenShellReplacement: return matching containers
isExactOpenShellReplacement-->>LifecycleRelease: return corroboration result
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 5ac680c in the TypeScript / code-coverage/cliThe overall line coverage in commit 5ac680c in the Show a line coverage summary of the most impacted files.
Updated |
PR Review Advisor — Blocking findings reportedAdvisor assessment: Blockers require maintainer review E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: None Manual-only E2E: Blockers
|
Summary
Legacy v0.0.55 sandbox recovery reached Ready, deliberately stopped the replacement for final handoff, and then waited 900 seconds because lifecycle corroboration required the replacement's copied sandbox-name label to match the restored name. This change binds corroboration to the transaction-owned full container ID and the OpenShell managed-by label, so the replacement can restart without trusting mutable legacy name metadata.
Related Issue
Related to #9844
Changes
Type of Change
Quality Gates
DGX Station Hardware Evidence
scripts/prepare-dgx-station-host.shis unchanged.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 unavailablenpm exec -- vitest run --project cli src/lib/onboard/docker-gpu-patch-finalize.test.ts src/lib/onboard/docker-gpu-sandbox-create-lifecycle.test.ts src/lib/onboard/docker-gpu-supervisor-reconnect.test.tspassed 65 tests;npm run typecheck:cli,npm run checks:repository, andgit diff --checkpassed.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: Not run; this is a focused handoff predicate correction with the owning tests and repository checks passing.npm run docsbuilds without warnings (doc changes only)E2E failure evidence
5ee38b5d555e5d59fce9570e623d2f09071075c1)Signed-off-by: Julie Yaunches jyaunches@nvidia.com
Summary by CodeRabbit
Bug Fixes
Documentation