fix(onboard): pre-pull sandbox GPU image - #10124
Conversation
Pull the exact managed image before Docker Desktop WSL GPU mode selection so bounded create probes never absorb registry latency. Fixes #10105 Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
|
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 (4)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughDocker Desktop WSL managed bootstrap now prepares the sandbox image before GPU probing. GPU probes can disable image pulls after preparation. Tests cover cached and uncached images, non-WSL behavior, probe execution, and pull failures. ChangesDocker GPU bootstrap
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: 🟡 Moderate · up to This change separates managed GPU image preparation from capability probing on Docker Desktop WSL, which should avoid first-install registry latency during mode detection. Targeted validation is reported as passing, but the required sensitive-path maintainer review or waiver and related quality-gate completion are still pending, so the PR is not merge-ready until they are recorded. Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant runCreate
participant DockerImageInspection
participant DockerWatchdogPull
participant selectDockerGpuPatchMode
runCreate->>DockerImageInspection: Inspect managed sandbox image
DockerImageInspection-->>runCreate: Report image availability
runCreate->>DockerWatchdogPull: Pull image when unavailable
DockerWatchdogPull-->>runCreate: Return pull result or error
runCreate->>selectDockerGpuPatchMode: Select GPU mode with pullPolicy "never"
selectDockerGpuPatchMode-->>runCreate: Return selected GPU mode
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported E2E guidanceAdvisory only. A maintainer can dispatch the default E2E suite for the commit under review. Recommended E2E: Manual-only E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Summary
On Docker Desktop WSL, managed bootstrap now inspects and explicitly pulls the exact managed sandbox image before GPU mode selection. Docker mode probes then use
--pull never, so their 30-second capability timeout no longer includes first-install registry latency.Related Issue
Fixes #10105
Changes
docker-runtime.test.tsprotects the separate pull and probe sequence.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 clion four GPU onboarding files passed 4 files and 90 tests; CLI build, strict CLI typecheck, formatting, targeted Oxlint, and repository checks also passed.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — command/result: Not applicable; scope is limited to Docker Desktop WSL managed-bootstrap image preparation and its targeted test seams.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Tinson Lai tinsonl@nvidia.com
Summary by CodeRabbit