test(cli): trim remaining subprocess waits#4914
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 (2)
📝 WalkthroughWalkthroughThis PR optimizes test execution time for the sandbox connect path by skipping artificial sleep delays in test environments and reducing the timeout override in a specific readiness test, while preserving the polling and error-guidance behavior being tested. ChangesSandbox connect test performance
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 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 docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Auto-dispatched E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 2 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Consider writing more tests for
Since last review detailsCurrent findings:
This is an automated advisory review. A human maintainer must make the final merge decision. |
Selective E2E Results — ✅ All requested jobs passedRun: 27097648858
|
Selective E2E Results — ✅ All requested jobs passedRun: 27104357446
|
Summary
This PR trims the next slow subprocess-heavy CLI target after #4913 by removing avoidable test-time waits from sandbox connect route repair and the stuck-sandbox timeout fixture. In the profiled six-file slow bucket, wall-clock runtime dropped from 28.07s to 12.14s locally.
Related Issue
Part of #4892
Changes
sleepSyncroute-repair backoff waits when CLI subprocesses run under Vitest orNEMOCLAW_TEST_NO_SLEEP=1, matching the existing inference probe test-wait convention.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit