refactor(onboard): extract build context staging#5136
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)
📝 WalkthroughWalkthroughExtracts Docker build-context staging logic from ChangesBuild context staging refactoring
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested labels
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 |
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. |
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
|
Selective E2E Results — ✅ All requested jobs passedRun: 27278528343
|
✨Related open issues: |
# Conflicts: # src/lib/onboard.ts
# Conflicts: # src/lib/onboard.ts
# Conflicts: # src/lib/onboard.ts
Selective E2E Results — ✅ All requested jobs passedRun: 27336788635
|
Summary
Extracts createSandbox build-context staging into a focused helper. This keeps custom Dockerfile validation/copying, agent build-context delegation, default optimized staging, and temp-dir cleanup behavior in one testable module while preserving the existing onboard control flow.
Related Issue
Refs #3802
Changes
stageCreateSandboxBuildContextinsrc/lib/onboard/build-context-stage.ts.createSandboxwith the new helper.Type of Change
Verification
Targeted checks run:
GitHub validation:
a928abd80ubuntu-repo-cloud-openclawpassed in https://github.com/NVIDIA/NemoClaw/actions/runs/27278528126cloud-onboard-e2eand optionalonboard-negative-paths-e2epassed in https://github.com/NVIDIA/NemoClaw/actions/runs/27278528343openclaw-plugin-runtime-exdev-e2ereached and passed the relevant--from "$REPO/Dockerfile"fresh onboard path on PR head, then failed its downstream synthetic EXDEV runtime-deps guard in https://github.com/NVIDIA/NemoClaw/actions/runs/27278528354. The same job fails the same way on the parent branchcodex/onboard-messaging-prep-flowin https://github.com/NVIDIA/NemoClaw/actions/runs/27279411964, so this is inherited from the stack base rather than introduced by this PR.Local broad-hook note:
npx prek run --all-files was attempted before the test follow-up; static hooks passed, then
test/release-latest-tag.test.tsfailed because local fixture commits inherit the machine's missing git signing key (/home/cvillela/.ssh/git-signing-key.pub). This unrelated release test file was not modified.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