Repository navigation
test: ratchet coverage floor to 88 - #386
Conversation
Problem The remaining post-87 coverage debt was concentrated in branch-heavy CLI support modules and root/runtime seams that still had little or no direct ownership-level coverage. What changed Add focused runtime tests for check workflow validation, picker and shell completion helpers, query progress and query support helpers, command rendering paths, root entrypoints, and structured logging delegation. The new tests target the hard branches directly instead of relying on incidental command-surface execution. Ref #197
Problem The new coverage tranche raises the full measured suite above the old 87 floor, and the repository should record that stricter baseline in the single source of truth. What changed Raise `tool.coverage.report.fail_under` from 87 to 88 in `pyproject.toml`. Verification - `devtools coverage-gate` -> total coverage 88.24% - `devtools verify --quick` 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 (7)
📝 WalkthroughWalkthroughThis PR adds 1,331 lines of new unit tests across 6 test modules, covering CLI check/maintenance workflows, query progress/runtime helpers, command auxiliary functions, logging configuration, and module entrypoints. The pyproject.toml coverage threshold is raised from 87 to 88. 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 |
Problem The coverage floor still sat at 88 after #386. The next raise needed to cover more than a few leftover helpers: the remaining active operator surface still had thin direct coverage in showcase QA workflow/control seams, sync and read wrappers, registry/runtime helpers, and small MCP/UI operator modules. What changed This tranche broadened #197 before implementation and then added direct runtime tests across showcase QA workflow/catalog/invariants/reporting, sync conversation and product wrappers, repository product/raw reads, product registry and facade-product seams, CLI/MCP operator helpers, plain-console rendering, and version/runtime metadata paths. Once the full gate measured 89.46% total coverage, `fail_under` moved from 88 to 89. Verification - `devtools coverage-gate` -> `5583 passed in 311.67s`, `TOTAL ... 89.46%` - `devtools verify --quick` -> `verify: all checks passed` Ref #197
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ 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 repository coverage floor from 87 to 88 after a direct test tranche over CLI control-plane helpers, root entrypoints, and structured logging/runtime seams. ## Problem `#197` was still carrying large ownership-level blind spots in the CLI/query control plane and a few root/runtime modules. The previous tranche justified 87, but several operator-facing helpers and entrypoints still had little or no direct coverage, so the next honest ratchet boundary had to be measured rather than assumed. ## Solution Add focused runtime tests for: - check workflow option validation and maintenance wiring - picker and shell-completion helpers - query progress and query helper error/formatting paths - `tags` / `neighbors` helper surfaces - root entrypoints (`polylogue.__main__`, `polylogue.cli.__main__`) - structured logging proxy/configuration behavior Then raise `tool.coverage.report.fail_under` to 88 in `pyproject.toml`. This branch intentionally stops at 88. The measured full-suite result is 88.24%, which justifies ratcheting to 88 cleanly but does not honestly justify 89 yet. ## Verification - `pytest -q tests/unit/cli/test_command_aux_runtime.py tests/unit/cli/test_check_support_runtime.py tests/unit/cli/test_query_progress_runtime.py tests/unit/cli/test_query_support_runtime.py tests/unit/test_entrypoints_runtime.py tests/unit/test_logging_runtime.py` - targeted module probe over the affected CLI helpers -> direct coverage in the high 90s for the intended tranche modules - `devtools coverage-gate` -> `5483 passed`, total coverage `88.24%` - `devtools verify --quick` Ref #197
Problem The coverage floor still sat at 88 after #386. The next raise needed to cover more than a few leftover helpers: the remaining active operator surface still had thin direct coverage in showcase QA workflow/control seams, sync and read wrappers, registry/runtime helpers, and small MCP/UI operator modules. What changed This tranche broadened #197 before implementation and then added direct runtime tests across showcase QA workflow/catalog/invariants/reporting, sync conversation and product wrappers, repository product/raw reads, product registry and facade-product seams, CLI/MCP operator helpers, plain-console rendering, and version/runtime metadata paths. Once the full gate measured 89.46% total coverage, `fail_under` moved from 88 to 89. Verification - `devtools coverage-gate` -> `5583 passed in 311.67s`, `TOTAL ... 89.46%` - `devtools verify --quick` -> `verify: all checks passed` Ref #197
Summary
Raise the repository coverage floor from 87 to 88 after a direct test tranche over CLI control-plane helpers, root entrypoints, and structured logging/runtime seams.
Problem
#197was still carrying large ownership-level blind spots in the CLI/query control plane and a few root/runtime modules. The previous tranche justified 87, but several operator-facing helpers and entrypoints still had little or no direct coverage, so the next honest ratchet boundary had to be measured rather than assumed.Solution
Add focused runtime tests for:
tags/neighborshelper surfacespolylogue.__main__,polylogue.cli.__main__)Then raise
tool.coverage.report.fail_underto 88 inpyproject.toml.This branch intentionally stops at 88. The measured full-suite result is 88.24%, which justifies ratcheting to 88 cleanly but does not honestly justify 89 yet.
Verification
pytest -q tests/unit/cli/test_command_aux_runtime.py tests/unit/cli/test_check_support_runtime.py tests/unit/cli/test_query_progress_runtime.py tests/unit/cli/test_query_support_runtime.py tests/unit/test_entrypoints_runtime.py tests/unit/test_logging_runtime.pydevtools coverage-gate->5483 passed, total coverage88.24%devtools verify --quickRef #197
Summary by CodeRabbit
Tests
Chores