fix(e2e): prepare dashboard remote bind during onboard - #7851
Conversation
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
📝 WalkthroughWalkthroughAdds reusable helpers for constructing remote dashboard E2E environments and detecting dashboard port-forward startup, updates the live dashboard bind test to use them, and adds coverage for environment overrides and connection output handling. ChangesDashboard remote bind
Estimated code review effort: 3 (Moderate) | ~15 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage in commit 6f999c4 in the TypeScript / code-coverage/cliThe overall coverage in commit 6f999c4 in the Show a code coverage summary of the most impacted files.
Updated |
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 `@test/e2e/live/dashboard-remote-bind-env.ts`:
- Around line 13-14: Update the environment overlay around
buildAvailabilityProbeEnv() so PATH is derived from that helper’s returned
environment rather than raw process.env.PATH, preserving all fixture and child
PATH entries while prepending the local bin directories.
🪄 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: 70623481-fe0f-4d58-bf46-ff09ec39b7bc
📒 Files selected for processing (3)
test/e2e/live/dashboard-remote-bind-env.tstest/e2e/live/dashboard-remote-bind.test.tstest/e2e/support/dashboard-remote-bind-env.test.ts
PR Review Advisor — No blocking findings reportedAdvisor assessment: No blocking advisor findings reported Model lanes
Nemotron output stays in workflow artifacts and does not change the assessment above. E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Signed-off-by: Julie Yaunches <jyaunches@nvidia.com>
Summary
PR #7632 moved dashboard remote-bind coverage into unified E2E, but the target supplied
NEMOCLAW_DASHBOARD_BINDonly when reconnecting, after install and onboarding had generated loopback-only configuration. This change enforces the remote-bind opt-in in the target command environment so onboarding prepares remote exposure beforeconnect.The first exact-head replay then reached
connectand re-established the dashboard forward, but the test recognized only the older background-forward message. The test now accepts the current recovery proof before its existing forward-list assertions verify the actual all-interface bind.Changes
PATHand keepsNEMOCLAW_DASHBOARD_BIND=0.0.0.0fixed after command overlays.Dashboard port forward re-established.as proof whenconnecthas no numeric exit code; the following assertions still require an actual forward for the sandbox and port bound to0.0.0.0.dashboard-remote-bindlive target; an install-only inline change would leave reconnect and future target commands free to drift.Type of Change
Quality Gates
dashboard-remote-bindtarget, command overlays cannot weaken it, secrets remain scoped to the install step, and no production path changes.Documentation Writer Review
no-docs-neededtest/e2e/live/dashboard-remote-bind.test.ts,test/e2e/live/dashboard-remote-bind-env.ts, andtest/e2e/support/dashboard-remote-bind-env.test.tsagainst the writing contract and controlled word list; final review approved with no findings.DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run validate:prpassed after refreshingorigin/mainwhen hooks were skipped or unavailablenpm run test:changedpassed 4 tests; Biome andgit diff --checkpassed.npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — not applicable to this target-scoped live E2E environment fix.npm run docsbuilds without warnings (doc changes only)Signed-off-by: Julie Yaunches jyaunches@nvidia.com
Summary by CodeRabbit