Repository navigation
Conversation
The unit job measures coverage without Postgres, so Codecov reported every line that only a Postgres test reaches as uncovered, however well the integration job tested it. The photo readers of #1297 are one case: 26 lines exercised against a real Postgres in this job, shown as missing. The integration job now runs the suite with --cov and uploads its report with the same action and tolerance as the unit job. Codecov merges the uploads of a commit, so the Postgres-only lines count where they run.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1298 +/- ##
===========================================
+ Coverage 85.66% 89.08% +3.42%
===========================================
Files 472 472
Lines 37463 37463
===========================================
+ Hits 32091 33373 +1282
+ Misses 5372 4090 -1282 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Why
Coverage is collected only by the unit job (
test.yml), which runs without Postgres. Every line that only a Postgres test reaches is therefore reported as uncovered on Codecov, even though the integration job (integration.yml, a required check) exercises it against a real Postgres and a broker.#1297 shows it clearly. Codecov reported 53.6 % patch coverage, with 26 lines missing in
_photo_sequences.py,export_evaluation_targets.py,_batch_op_feature.pyandtransitions_export/_queries.py. Those 26 lines are the photo branches, andtests/test_a_photo_run_reads_the_cut_inputs.pyruns them in this job. The same gap is the likely reasoncodecov/project/core(85 % overprotea/core/) is red on unrelated pull requests, including documentation-only ones.What
integration.ymlnow:pytest --with-postgres --cov=protea --cov-report=xml -q;coverage.xmlwithcodecov/codecov-action@v5andfail_ci_if_error: false, the same action and tolerance as the unit job.Codecov merges the uploads of a commit, so the Postgres-only lines count where they actually run. Nothing gates on this upload. The coverage floor stays in the unit job (
--cov-fail-under=65), and the required checks do not change.How to check it
codecov/project/corereads the merged coverage ofprotea/core/.