fix(onboard): limit gateway GPU inspect to legacy gateways#3479
Conversation
Signed-off-by: zyang-dev <267119621+zyang-dev@users.noreply.github.com>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
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 skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds two platform-detection helpers and a predicate that centralizes legacy gateway GPU-passthrough inspection logic; integrates these into ChangesLegacy gateway GPU passthrough and platform detection
🎯 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 docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
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.ts`:
- Around line 1323-1337: The helper function
shouldInspectLegacyGatewayGpuPassthrough and its preceding comment are adding
net lines to onboard.ts; move the function (and the comment if still relevant)
into an existing onboarding submodule (e.g., the module that groups gateway
helpers), export it from there with the same name, and replace the
implementation in src/lib/onboard.ts with a thin import and re-export (or an
export { shouldInspectLegacyGatewayGpuPassthrough } from "./path/to/submodule")
so the public API is unchanged while reducing onboard.ts's line count.
🪄 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: 0d280037-927e-4d54-a5e3-585b4e1e5f09
📒 Files selected for processing (2)
src/lib/onboard.tstest/onboard.test.ts
|
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. |
Signed-off-by: zyang-dev <267119621+zyang-dev@users.noreply.github.com>
Signed-off-by: zyang-dev <267119621+zyang-dev@users.noreply.github.com>
…hrough-check Signed-off-by: Carlos Villela <cvillela@nvidia.com> # Conflicts: # src/lib/onboard.ts # test/onboard.test.ts
Selective E2E Results —
|
| Job | Result |
|---|---|
| gpu-double-onboard-e2e | ⏭️ skipped |
| gpu-e2e | ⏭️ skipped |
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
…hrough-check Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Summary
Limit the reused gateway GPU passthrough check to legacy OpenShell gateway containers. This avoids falsely aborting Docker-driver/package-managed gateway reuse because
openshell-cluster-*HostConfig.DeviceRequestsis not a reliable GPU signal on that path.Changes
openshell-cluster-nemoclawDockerDeviceRequestscheck for Docker-driver/package-managed gateways.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesmake docsbuilds without warnings (doc changes only)Signed-off-by: zyang-dev 267119621+zyang-dev@users.noreply.github.com
Summary by CodeRabbit
New Features
Tests