fix: show partial code suggestion coverage - #2863
Conversation
PR Summary by QodoShow partial coverage for /improve suggestions
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
|
Addressed the automated review findings in
Validation: |
|
Code review by qodo was updated up to the latest commit def3814 |
def3814 to
9e293c4
Compare
|
Code review by qodo was updated up to the latest commit 9e293c4 |
| return data | ||
|
|
||
| async def push_inline_code_suggestions(self, data): | ||
| async def push_inline_code_suggestions(self, data, include_coverage_footer: bool = True): |
IsmaelMartinez
left a comment
There was a problem hiding this comment.
Merging this, and it is a good first PR. It does what #2855 asked, and you avoided the trap the issue warned about: getattr on both counters plus a regression test for it. I broke it deliberately to check, and bare attribute access fails 27 tests across seven files.
The coverage line matches /review's footer on naming, default and placement, which is exactly what I was hoping for.
CI is green now that the first-run workflow approval has gone through, so this is ready.
Summary
/improveanalysis chunksTesting
PYTHONPATH=. ./.venv/bin/pytest tests/unittest/test_pr_code_suggestions_core.py -qPYTHONPATH=. ./.venv/bin/pytest -q tests/unittest/test_pr_code_suggestions_core.py tests/unittest/test_pr_code_suggestions_rendering.py tests/unittest/test_pr_code_suggestions_filtering.py tests/unittest/test_code_suggestions_comment_identity.py tests/unittest/test_run_details_wiring.py tests/unittest/test_self_reflect_fallback.py./.venv/bin/pre-commit run --files pr_agent/tools/pr_code_suggestions.py pr_agent/settings/configuration.toml tests/unittest/test_pr_code_suggestions_core.pyCloses #2855