test: diagnose restart startup cascades - #175
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 33 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe test suite adds execution-stage, filesystem-marker, start-count, timeout, and health-state diagnostics to audit recovery, lazy upstream discovery, and multi-upstream restart scenarios. ChangesTest diagnostics and lifecycle coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 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 `@tests/audit-outcomes.test.ts`:
- Around line 150-153: Consolidate the duplicated countStarts helper and
health-mapping logic used by audit-outcomes tests with the existing shared
implementations in multi-upstream.test.ts or upstream-manager.test.ts. Remove
the local duplicates and reuse the established symbols while preserving the
current test behavior.
- Around line 159-187: Update the catch around client.listTools() to bind the
original error and include its details in the diagnostic error alongside the
existing marker deltas and health data. Preserve the current lazy discovery
diagnostics while ensuring the underlying RPC/transport failure is not
discarded.
In `@tests/multi-upstream.test.ts`:
- Around line 1465-1468: Remove the duplicated countStarts helper and
health-mapping logic from the multi-upstream tests, and reuse the corresponding
shared implementations from audit-outcomes.test.ts. Update the affected tests
around countStarts and the health mapper to call the reused symbols while
preserving their existing assertions and behavior.
- Around line 1477-1514: Update the try/catch around the readiness expect.poll
in the restart test to bind the caught error and preserve its original failure
details in the diagnostic error, alongside marker deltas and health. Keep the
existing readiness polling and diagnostic collection unchanged.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: e17168cf-87e9-4e0e-82ef-afe3b27b1c34
📒 Files selected for processing (3)
tests/audit-integrity.test.tstests/audit-outcomes.test.tstests/multi-upstream.test.ts
|
Addressed the four current review threads in 7c63120.
Validated with the focused helper/audit/multi-upstream suite, typecheck, lint, diff check, and an independent review. The new exact-head CI run is pending. |
Summary
Validation
Refs #122
Summary by CodeRabbit