fix(e2e): stabilize double onboard route probe - #3620
Conversation
|
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:
📝 WalkthroughWalkthroughAdds bounded retry and delay options to sandbox inference-route probing, applies the mechanism to multiple post-repair/reset verification points, and enhances E2E diagnostics and probe-only recovery with configurable retries. ChangesSandbox Probe Retry and Resilience
Sequence DiagramsequenceDiagram
participant RepairFlow as Repair/Reset Flow
participant Probe as probeSandboxInferenceRoute
participant Inference as inference.local
RepairFlow->>Probe: call with InferenceRouteProbeOptions (attempts, delayMs)
loop up to N attempts
Probe->>Inference: HTTP probe /v1/models
alt Healthy (2xx/3xx)
Inference-->>Probe: OK <status>
Probe-->>RepairFlow: return OK result
else Broken (other)
Inference-->>Probe: BROKEN <status>
Probe->>Probe: sleep delayMs
end
end
Probe-->>RepairFlow: return final probe result
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 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 unit tests (beta)
Comment |
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/test-double-onboard.sh`:
- Around line 658-665: The probe-only connect loop currently calls run_nemoclaw
without a per-attempt timeout, so if run_nemoclaw hangs the loop stalls; modify
the loop around run_nemoclaw (the call in the for loop that writes to
"$PROBE_LOG" and sets probe_exit/probe_output) to invoke the command with a
per-attempt timeout (e.g., using the timeout utility or a background+wait+kill
pattern) so each attempt is bounded, capture the timeout exit code into
probe_exit as before, and preserve writing stdout/stderr to "$PROBE_LOG" and the
existing break-on-success logic.
🪄 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: 8ed00d9b-909f-4eb5-8f3e-516959ab9fef
📒 Files selected for processing (2)
src/lib/actions/sandbox/connect.tstest/e2e/test-double-onboard.sh
d31372d to
c1abdb4
Compare
c1abdb4 to
c8666c3
Compare
Summary
Nightly failure
Addresses flaky
double-onboard-e2efailure from run 25931606052:Validation
npm run build:clibash -n test/e2e/test-double-onboard.shSummary by CodeRabbit
Bug Fixes
Tests
Documentation