Repository navigation
fix(ci): bump wsl-e2e NEMOCLAW_EXEC_TIMEOUT to 60s (Fixes #2204) - #2205
Conversation
Signed-off-by: Prekshi Vyas <[email protected]> Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA GitHub Actions workflow configuration update that increases the CLI execution timeout from 30000ms to 60000ms for WSL compatibility tests, aligning it with the test timeout value and accounting for process-spawn overhead. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Fixes the lingering
sandbox-stuck-recovery.test.ts > connect times out with guidance when sandbox is stuck in Provisioningfailure onwsl-e2ethat has been red onmainsince #466 merged. My earlier #2198 fixed the sibling tests but this one kept hitting the CI test-budget ceiling.Fixes #2204.
Root cause
Not a mock-script bug — the mocks for
sandbox listalready return the phase string thatparseSandboxStatusexpects, and the tests pass cleanly on macOS and the Linuxchecksjob.The failure is WSL-specific timing:
NEMOCLAW_EXEC_TIMEOUT=30000caps each outerspawnSyncto the CLI at 30 seconds.openshellinvocation is a fresh Node.js child process, and the CLI makes 4+ of these (sandbox get,policy get --full,inference get, firstsandbox list) before the readiness poll loop from fix(connect): add readiness poll with timeout before connecting (Fixes #430) #466 starts.sandbox-stuck-recovery.test.tsthat skip the poll loop were passing at 26–28s on WSL — already within a few seconds of the ceiling.NEMOCLAW_CONNECT_TIMEOUT=3, so it actually enters the poll loop (pre-poll + 3s sleep + final poll + "Timed out" print). That pushes total runtime past 30s on WSL runners, so the outerspawnSynckills the CLI before the "Timed out" guidance prints.The
Status: unknownartifact mentioned in #2204 is the CLI's display fallbackparseSandboxStatus(poll, ...) || "unknown"kicking in after the child was killed mid-poll — not a missing subcommand in the mocks.Changes
.github/workflows/wsl-e2e.yaml: bumpNEMOCLAW_EXEC_TIMEOUTfrom30000to60000, aligned with the existingNEMOCLAW_TEST_TIMEOUT=60000. Short comment explains why WSL needs the larger ceiling.Why this is the right fix
Considered and rejected
policy get --fullon connect). Out of scope, risks regressing real behavior.NEMOCLAW_CONNECT_TIMEOUTfrom the test. The test asserts timeout behavior — it must enter the poll.macos-e2e. Not needed; those jobs pass comfortably.Type of Change
Verification
AI Disclosure
🤖 Generated with Claude Code
Summary by CodeRabbit