Skip to content

test(cli): cover json alias across query actions - #2367

Merged
Sinity merged 1 commit into
masterfrom
feature/intake/cloud-patch-batch-20260624
Jun 24, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/intake/cloud-patch-batch-20260624

Conversation

@Sinity

@Sinity Sinity commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Summary

Adds regression coverage proving the query-action parser treats post-verb --json as the natural alias for --format json across all query actions and nested action paths that expose JSON format output.

Problem

The live dogfood fix for polylogue read <session> --json was implemented generically, but the regression test only covered direct read refs. That left the broader product grammar under-specified for find QUERY then ACTION workflows.

Solution

Added a parametrized CLI contract test covering read, continue, delete, mark, mark candidates list, analyze usage, and analyze insights profiles. The existing test still proves root filters such as --origin remain 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, run 20260624T125000Z-quick-2585034-420da621.
  • pre-push devtools verify --quick -> passed, run 20260624T125034Z-quick-2585547-2da69d3f.

Ref #2006
Ref #2317

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
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: b238dd3e-b470-4bd8-8d53-5fcfe154a9af

📥 Commits

Reviewing files that changed from the base of the PR and between ea58cf0 and 506e58e.

📒 Files selected for processing (1)
  • tests/unit/cli/test_cli_action_contracts.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/intake/cloud-patch-batch-20260624

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 727ef40 into master Jun 24, 2026
12 checks passed
@Sinity
Sinity deleted the feature/intake/cloud-patch-batch-20260624 branch June 24, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant