Repository navigation
test(cli): cover json alias across query actions - #2367
Conversation
Problem: The live dogfood fix for post-verb --json was generic in the parser, but the regression coverage only exercised direct read refs. That left the query-action contract under-specified for the other verbs and nested action commands that expose --format json. What changed: Added a parametrized CLI contract test proving post-verb --json normalizes to --format json for read, continue, delete, mark, mark candidates, analyze usage, and analyze insights profiles while retaining the existing root-filter rejection coverage. Verification: devtools test tests/unit/cli/test_cli_action_contracts.py -k 'post_verb_json_alias' devtools verify --quick Ref #2006 Ref #2317
|
Warning Review limit reached
More reviews will be available in 42 minutes and 36 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?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 credits. 🚦 How do rate 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 see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
Summary
Adds regression coverage proving the query-action parser treats post-verb
--jsonas the natural alias for--format jsonacross all query actions and nested action paths that expose JSON format output.Problem
The live dogfood fix for
polylogue read <session> --jsonwas implemented generically, but the regression test only covered directreadrefs. That left the broader product grammar under-specified forfind QUERY then ACTIONworkflows.Solution
Added a parametrized CLI contract test covering
read,continue,delete,mark,mark candidates list,analyze usage, andanalyze insights profiles. The existing test still proves root filters such as--originremain rejected after the verb.Verification
devtools test tests/unit/cli/test_cli_action_contracts.py -k 'post_verb_json_alias'-> 8 passed, 29 deselected.devtools verify --quick-> passed, run20260624T125000Z-quick-2585034-420da621.devtools verify --quick-> passed, run20260624T125034Z-quick-2585547-2da69d3f.Ref #2006
Ref #2317