Repository navigation
test: ratchet coverage floor to 87 - #385
Conversation
Problem The next #197 coverage tranche needed to retire some of the worst remaining blind spots in the CLI control plane. Several operator-facing helper modules were still at 0% or near-0% coverage despite sitting on active rendering and workflow paths. What changed Add direct unit coverage for product helper surfaces, query verb adapters, run display/watch helpers, schema privacy-config support, and schema explain/result renderers. The new tests exercise both machine and human output paths instead of relying on incidental higher-level command coverage. Verification Focused pytest, strict mypy, and the full coverage gate all passed with this slice in place. Ref #197
Problem #197 still needed the next measured coverage raise after the 86% tranche, but the floor should only move once the full suite clears with the new operator-helper coverage in place. What changed Raise the coverage fail_under threshold from 86 to 87. Verification devtools coverage-gate passed at 87.33% total coverage with 5434 passing tests, and devtools verify --quick passed afterward. Ref #197
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughCoverage minimum threshold increased from 86% to 87% in configuration. Four new CLI unit test modules added covering product helpers, query verbs, run display workflows, and schema helpers with comprehensive runtime behavior validation across approximately 930 lines of test code. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Suggested labels
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
## Summary Raise the coverage floor from 86 to 87 with a focused CLI operator-helper tranche that directly covers the rendering and workflow helpers that were still sitting at 0% or near-0% coverage. ## Problem Ref #197 is now in the part of the climb where the remaining gap is not about broad package averages so much as real blind spots in active control-plane code. Several CLI helper modules in rendering, workflow, and schema/operator surfaces were effectively untested despite being on daily operator paths. ## Solution - add direct unit tests for: - `polylogue/cli/products_rendering.py` - `polylogue/cli/products_workflow.py` - `polylogue/cli/run_display_workflow.py` - `polylogue/cli/run_watch_workflow.py` - `polylogue/cli/schema_command_support.py` - `polylogue/cli/schema_rendering_explain.py` - `polylogue/cli/schema_rendering_results.py` - `polylogue/cli/query_verbs.py` - cover both human and machine-output branches instead of relying on incidental higher-level command coverage - raise `fail_under` from 86 to 87 after the full suite cleared at 87.33% Targeted module movement from the full coverage run: - `products_rendering.py`: 100% - `products_workflow.py`: 100% - `query_verbs.py`: 100% - `run_watch_workflow.py`: 100% - `run_display_workflow.py`: 92% - `schema_command_support.py`: 96% - `schema_rendering_explain.py`: 92% - `schema_rendering_results.py`: 87% ## Verification - `ruff check tests/unit/cli/test_products_helper_runtime.py tests/unit/cli/test_run_display_workflow_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/cli/test_query_verbs_runtime.py` - `mypy --strict tests/unit/cli/test_products_helper_runtime.py tests/unit/cli/test_run_display_workflow_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/cli/test_query_verbs_runtime.py` - `pytest -q tests/unit/cli/test_products_helper_runtime.py tests/unit/cli/test_run_display_workflow_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/cli/test_query_verbs_runtime.py` - `devtools coverage-gate` - `5434 passed in 262.51s (0:04:22)` - `Required test coverage of 87% reached. Total coverage: 87.33%` - `devtools verify --quick` Ref #197
Summary
Raise the coverage floor from 86 to 87 with a focused CLI operator-helper tranche that directly covers the rendering and workflow helpers that were still sitting at 0% or near-0% coverage.
Problem
Ref #197 is now in the part of the climb where the remaining gap is not about broad package averages so much as real blind spots in active control-plane code. Several CLI helper modules in rendering, workflow, and schema/operator surfaces were effectively untested despite being on daily operator paths.
Solution
polylogue/cli/products_rendering.pypolylogue/cli/products_workflow.pypolylogue/cli/run_display_workflow.pypolylogue/cli/run_watch_workflow.pypolylogue/cli/schema_command_support.pypolylogue/cli/schema_rendering_explain.pypolylogue/cli/schema_rendering_results.pypolylogue/cli/query_verbs.pyfail_underfrom 86 to 87 after the full suite cleared at 87.33%Targeted module movement from the full coverage run:
products_rendering.py: 100%products_workflow.py: 100%query_verbs.py: 100%run_watch_workflow.py: 100%run_display_workflow.py: 92%schema_command_support.py: 96%schema_rendering_explain.py: 92%schema_rendering_results.py: 87%Verification
ruff check tests/unit/cli/test_products_helper_runtime.py tests/unit/cli/test_run_display_workflow_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/cli/test_query_verbs_runtime.pymypy --strict tests/unit/cli/test_products_helper_runtime.py tests/unit/cli/test_run_display_workflow_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/cli/test_query_verbs_runtime.pypytest -q tests/unit/cli/test_products_helper_runtime.py tests/unit/cli/test_run_display_workflow_runtime.py tests/unit/cli/test_schema_helper_runtime.py tests/unit/cli/test_query_verbs_runtime.pydevtools coverage-gate5434 passed in 262.51s (0:04:22)Required test coverage of 87% reached. Total coverage: 87.33%devtools verify --quickRef #197
Summary by CodeRabbit
Tests
Chores