Fleet stats support#38
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 40 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: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughAdds Fleet Stats Validation & Config-Applied Detection
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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 `@internal/runner/runner.go`:
- Around line 3940-3964: Restrict the RestartMidRun flow in runner.go so it only
runs for the stats scenario, since fc.RestartMidRun is documented as stats-only
but this block currently executes before the scenario switch. Update the
RestartMidRun handling to check fc.Scenario against "stats" before calling
orch.StopServices, orch.UpServices, and the reconnect/config redelivery logic,
or otherwise reject unsupported fc.RestartMidRun + scenario combinations up
front with a clear failure.
- Around line 3902-3928: The config delivery flow is not failing the run when
`rep.config` is missing or returns without `executed:true`, which can produce
false success later; update the director config check in `runner.go` to use the
same hard-fail behavior as the existing `config_update` path. In the code around
`fleetWaitCount`, `fleetSimStatus`, and the restart/setup branch that uses
`fleetSimSend`, treat any missing acknowledgment or non-executed reply as a
fatal setup failure instead of printing a success line, so both delivery paths
stop immediately when the delivered config was not applied.
🪄 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: CHILL
Plan: Pro
Run ID: 8cf513c9-9fb6-4e0a-ab44-085fb982855b
📒 Files selected for processing (2)
internal/config/case.gointernal/runner/runner.go
Deploying pipebench with
|
| Latest commit: |
eb3f1e1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://db646c8a.pipebench.pages.dev |
| Branch Preview URL: | https://dev-agent-stats.pipebench.pages.dev |
Support for VirtualMetric Agent statistics
Summary by CodeRabbit
New Features
Bug Fixes