refactor(onboard): extract sandbox launch envelope#5140
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 (3)
📝 WalkthroughWalkthroughThis PR extracts sandbox creation command and environment construction from ChangesSandbox launch extraction and refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
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)
Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Auto-dispatched E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
Vitest E2E Scenario RecommendationRequired Vitest E2E scenarios: Dispatch required Vitest E2E scenarios:
Full Vitest E2E advisor summaryVitest E2E Scenario AdvisorBase: Required Vitest E2E scenarios
Optional Vitest E2E scenarios
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 0 worth checking, 0 nice ideas Consider writing more tests for
This is an automated advisory review. A human maintainer must make the final merge decision. |
Selective E2E Results — ✅ All requested jobs passedRun: 27281412301
|
|
✨ Related open issues: |
# Conflicts: # src/lib/onboard.ts
# Conflicts: # src/lib/onboard.ts
Selective E2E Results — ✅ All requested jobs passedRun: 27337978811
|
Summary
Extracts the createSandbox runtime launch envelope into a focused helper. This keeps sandbox runtime env assembly, dashboard/runtime proxy propagation, host credential stripping, and
openshell sandbox create -- env ... nemoclaw-startcommand construction in one testable module while preserving the existing create flow.Related Issue
Refs #3802
Changes
prepareSandboxCreateLaunchinsrc/lib/onboard/sandbox-create-launch.ts.createSandboxwith the new helper.KUBECONFIG/SSH_AUTH_SOCKfrom the sandbox subprocess env, and preserving argv boundaries through the production shell renderer.Type of Change
Verification
Targeted local checks run:
GitHub validation on head
d2c9122c67bcdd9790cb5fbd05f27e874ee2afd8:d2c9122c6.cloud-onboard-e2e,messaging-providers-e2e,telegram-injection-e2e, plus optionalhermes-dashboard-e2e.ubuntu-repo-cloud-openclaw.Local broad-hook note:
Full
npx prek run --all-filesremains blocked locally by the unrelatedtest/release-latest-tag.test.tsfixture commit signing failure (/home/cvillela/.ssh/git-signing-key.pubmissing private key). This PR does not touch that release test file.npx prek run --all-filespassesnpm testpassesTests added or updated for new or changed behavior
No secrets, API keys, or credentials committed
Docs updated for user-facing behavior changes
npm run docsbuilds without warnings (doc changes only)Doc pages follow the style guide (doc changes only)
New doc pages include SPDX header and frontmatter (new pages only)
Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit
Refactor
Tests