fix(onboard): explain Docker Desktop WSL integration gaps (Fixes #4301)#4330
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)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughplanHostRemediation() now detects when Docker is missing or unreachable on WSL hosts and returns early with a blocking ChangesWSL Docker Desktop Integration
🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly Related PRs
Suggested Labels
Suggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/onboard/preflight.ts`:
- Around line 701-715: After pushing the WSL-specific blocking remediation
object (when assessment.isWsl) — the action with id
"enable_docker_desktop_wsl_integration" — add an early return so execution stops
and no further actions (e.g., those added under likelyGroupIssue) are appended;
locate the conditional that checks assessment.isWsl in the onboard preflight
flow and return (or break out) immediately after pushing that action to keep the
WSL daemon-unreachable path isolated.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 48724679-0135-4474-a9f1-ba699998ff52
📒 Files selected for processing (2)
src/lib/onboard/preflight.test.tssrc/lib/onboard/preflight.ts
|
✨ Thanks for submitting this detailed PR that explains Docker Desktop WSL integration gaps and proposes a fix for the issue reported in #4301. This PR adds WSL-specific remediations for Docker integration and updates the onboard preflight checks to handle these cases. Related open issues: |
Fixes NVIDIA#4301 Signed-off-by: Deepak Jain <deepujain@gmail.com>
1d5c2d0 to
bef2c9b
Compare
|
Rebased on current main and kept the WSL Docker Desktop remediation isolated with an early return. The preflight suite passes. |
|
The new WSL branch in the unreachable case already includes |
prekshivyas
left a comment
There was a problem hiding this comment.
LGTM — WSL-specific remediation branches with explicit return actions; early returns, tests cover both new WSL paths. CodeRabbit thread resolved (the early-return suggestion is already in the code at both call sites).
Substantive CI verified on the actual code commit bef2c9b: CodeQL (js/ts + python), cli-parity, macos-e2e all passed. The checks cancellations on subsequent merge SHAs are concurrency replays from my "Update branch" pushes — no code change between 99d64b1 and 8a05145 beyond doc files from main.
Summary
Fixes #4301.
On Windows/WSL, a fresh Ubuntu handoff can leave Docker Desktop WSL integration disabled for that distro. The installer/onboard preflight then printed generic Linux Docker advice, which sent users toward Docker Engine instead of the Docker Desktop toggle that actually fixes the failure.
Changes
src/lib/onboard/preflight.test.ts.Testing
npm run build:clinpm run typecheck:clinpx vitest run src/lib/onboard/preflight.test.ts -t 'planHostRemediation'npx vitest run src/lib/onboard/preflight.test.tsnpx vitest run test/install-preflight.test.ts -t 'skips onboarding when shared host preflight detects Docker is missing'Signed-off-by: Deepak Jain deepujain@gmail.com
Summary by CodeRabbit
Improvements
Tests