Skip to content

fix(onboard): stage blueprint scripts in sandbox build context - #2772

Merged
ericksoa merged 1 commit into
mainfrom
hotfix/stage-blueprint-scripts-build-context
Apr 30, 2026
Merged

ericksoa merged 1 commit into
mainfrom
hotfix/stage-blueprint-scripts-build-context

Conversation

@ericksoa

@ericksoa ericksoa commented Apr 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Root Cause

PR #2729 / commit 8dd84372 added a Dockerfile COPY for ws-proxy-fix.js, but the optimized build context only staged blueprint.yaml and policies/ from nemoclaw-blueprint. Docker received a temp context without nemoclaw-blueprint/scripts/ and failed before e2e bodies ran.

Validation

  • npm run build:cli
  • npm test -- test/sandbox-build-context.test.ts

Note: local pre-commit and pre-push broad CLI coverage hooks were stopped after they expanded into unrelated sandbox/connect/rebuild paths; the targeted validation above passed.

Summary by CodeRabbit

  • Bug Fixes

    • Build staging process now properly includes blueprint-level scripts during optimization.
  • Tests

    • Updated test suite to verify scripts are correctly included in the staging process.

@coderabbitai

coderabbitai Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c74059b4-ccb6-4ea3-b5e5-1c6025bc650a

📥 Commits

Reviewing files that changed from the base of the PR and between fa32fdb and a900509.

📒 Files selected for processing (2)
  • src/lib/sandbox-build-context.ts
  • test/sandbox-build-context.test.ts

📝 Walkthrough

Walkthrough

The sandbox build context staging process is enhanced to recursively copy blueprint-level scripts from the nemoclaw-blueprint directory into the build context. A corresponding test assertion verifies the new staging behavior.

Changes

Cohort / File(s) Summary
Blueprint Scripts Staging
src/lib/sandbox-build-context.ts, test/sandbox-build-context.test.ts
Added recursive copying of nemoclaw-blueprint/scripts directory during sandbox build staging, with test verification that nemoclaw-blueprint/scripts/ws-proxy-fix.js is included in the staged output.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 With whiskers twitching, hopping with cheer,
Scripts tucked in blueprints now appear!
Staged with care in the sandbox so deep,
Every proxy fix safe and ready to keep! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: staging blueprint scripts in the sandbox build context. It is specific, concise, and clearly summarizes the primary fix.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hotfix/stage-blueprint-scripts-build-context

Review rate limit: 9/10 reviews remaining, refill in 6 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@ericksoa
ericksoa merged commit a37bc1a into main Apr 30, 2026
45 of 52 checks passed
@wscurran wscurran added the bug-fix PR fixes a bug or regression label Jun 8, 2026
@cv
cv deleted the hotfix/stage-blueprint-scripts-build-context branch June 28, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PR fixes a bug or regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants