ENH: Disable AI running --run-slow tests since take too long - #116
Conversation
|
Warning Review limit reached
Next review available in: 38 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. 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 (2)
WalkthroughThe agent guidance files now prohibit agents from running ChangesAgent testing guidance
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Updates agent-facing contributor documentation to discourage running slow pytest buckets interactively, aligning expected AI-agent behavior with practical session time constraints.
Changes:
- Adds guidance in
CLAUDE.mdto avoid runningpytestwith--run-slow/--run-allduring interactive sessions. - Adds a similar rule in
AGENTS.mdfor agents to avoid slow/all test buckets in interactive sessions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| CLAUDE.md | Adds a testing guideline discouraging --run-slow / --run-all during interactive sessions. |
| AGENTS.md | Adds an agent rule discouraging --run-slow / --run-all during interactive sessions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #116 +/- ##
=======================================
Coverage 36.60% 36.60%
=======================================
Files 72 72
Lines 8510 8510
=======================================
Hits 3115 3115
Misses 5395 5395
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (1)
CLAUDE.md:141
- In this doc you state the Python launcher should be
py(and other examples usepy -m pytest), but this new guidance calls outpytest --run-slow. To avoid mixed guidance (and to work reliably with the active venv), consider phrasing this as “running pytest with--run-slow/--run-all” rather than a barepytestinvocation.
- **Avoid `pytest --run-slow` (or `--run-all`) unless the user explicitly
requests it.** Those runs take far too long for an interactive session.
Default to the fast suite and let the user invoke the slow buckets.
Summary by CodeRabbit