Repository navigation
test: enforce 100% coverage - #163
Merged
Merged
Conversation
Set fail_under = 100, so that coverage report and coverage xml (CI) fail below 100%, and add a codecov.yml with project and patch targets of 100%. Describe the enforcement in the contributing guide. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Templates will come from an organization-wide .github repository, which repository templates would override. The contributing guide now says what a pull request describes instead of linking the template. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideThis PR makes 100% coverage an enforced quality gate by configuring coverage.py and Codecov, documents the requirement, and removes the repository-local pull request template in favor of concise general guidance for describing changes and verification. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #163 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 880 880
=========================================
Hits 880 880 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 21, 2026 22:41
Member
Author
|
@sourcery-ai review |
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="pyproject.toml" line_range="79" />
<code_context>
exclude_also = ['if __name__ == "__main__":']
+# `coverage report` and `coverage xml` (CI) fail below 100%; Codecov's
+# targets are the same (`codecov.yml`)
+fail_under = 100
[project]
</code_context>
<issue_to_address>
**Uncovered code passes coverage gate**
When actual coverage is below 100% but rounds to 100% at the default zero-decimal precision, `coverage report` and `coverage xml` compare the rounded total with `fail_under`, so CI succeeds despite uncovered statements.
Configure coverage.py to use sufficient report precision so sub-100% coverage does not round up to the threshold.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: pyproject.toml:79
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR combines two small issues, per the user's rule for tiny issues.
fail_under = 100in[tool.coverage.report], socoverage reportandcoverage xml(which CI runs) fail below 100%.codecov.ymlwithprojectandpatchtargets of 100%.PULL_REQUEST_TEMPLATE.mdis deleted, since templates will come from an organization-wide.githubrepository. The contributing guide no longer links it; it says what a pull request should describe. It doesn't linkelixir-cloud-aai/.github, because that repository doesn't exist yet. Nothing else referred to the template, and the repo has no issue templates.Closes #150
Closes #151
Light lane: the PR changes configuration and docs and removes a file, so the reviewer subagents are skipped (I reviewed the diff myself), per the user's rule.
Verification
coverage run -m pytest -p no:warnings(with Helm): 877 passed;coverage reportandcoverage xmlexit 0 at 100%tests/test_utils.pyonly, 24%):coverage reportandcoverage xmlexit 2 ("total of 24 is less than fail-under=100")codecov.ymlparses as YAML;ruff check .andmkdocs build --strictpassgit grep -i pull_request_template: no matchesDeclined review findings
fail_under = 100(should_fail_under(): "it must really be 100"), so no rounding applies.Open questions
None.
🤖 Generated with Claude Code