Expand cost pricing regression coverage - #249
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ceiling | 68fb46a | Commit Preview URL Branch Preview URL |
Aug 10 2026, 12:19 AM |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 44 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 Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughChangesPricing Test Coverage
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 `@rust/src/core/cost_pricing_tests.rs`:
- Around line 56-61: In rust/src/core/cost_pricing_tests.rs:56-61, extend the
Codex validation around the existing rate loop to validate every rate in
pricing.long_context when present, requiring finite and nonnegative values. In
rust/src/core/cost_pricing_tests.rs:76-85, before comparing Claude aliases,
validate every base and above-threshold rate for finiteness and nonnegativity,
and require threshold_tokens to be nonnegative; cover optional above-threshold
rates when present.
🪄 Autofix
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 Plus
Run ID: bb196281-04fd-45e6-b84f-eb1584bd0726
📒 Files selected for processing (1)
rust/src/core/cost_pricing_tests.rs
Automated reviewFound 7 issues:
Also noted:
For coding agents: fix high findings and quick-win mediums now; batch involved mediums into at most one fix round; low notes are informational, do not fix them unless already editing that file; never exceed one CodeRev fix round per PR, decline remaining findings with a reason instead. Advisory. Findings generated by |
Summary
gpt-5.1-codex-miniovercharge fix separate in SBS-710Closes SBS-557.
Validation
cargo test --manifest-path rust/Cargo.toml core::cost_pricing::tests(29 passed)cargo test --manifest-path rust/Cargo.toml cli::cost::tests(2 passed)cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warningscargo fmt --all --manifest-path rust/Cargo.tomlSummary by CodeRabbit