Skip to content

fix CI: emit coverage.xml + bump cryptography (clears codecov + pip-audit)#175

Merged
KedoKudo merged 2 commits into
mainfrom
ci/codecov-xml-report
Jun 16, 2026
Merged

fix CI: emit coverage.xml + bump cryptography (clears codecov + pip-audit)#175
KedoKudo merged 2 commits into
mainfrom
ci/codecov-xml-report

Conversation

@KedoKudo

Copy link
Copy Markdown
Member

Problem

The pre-commit autoupdate PR #174 showed a red Unit tests job — but the tests passed; the failure was the Upload coverage to codecov step: Error: No coverage reports found. pytest's addopts only emitted --cov-report=term-missing (a terminal table, no file), and codecov-action — bumped to v7 in #172 — hard-fails when there's no report file to upload. So this is a false test failure that affects every run, not just #174.

Fix

Add --cov-report=xml to the pytest addopts so coverage.xml is written for the upload step. One-line change; as the template repo it propagates to every generated project.

Effect

🤖 Assisted with Claude Code

pytest's addopts only produced --cov-report=term-missing, so no coverage file
was written to disk. codecov-action (now v7, #172) hard-fails with "No coverage
reports found" when there is no report to upload — turning a passing test run
into a red CI job (surfaced on the pre-commit autoupdate PR #174, but it
affects every run).

Add --cov-report=xml so coverage.xml is generated for the upload. As the
template repo, this propagates the fix to every generated project.

Assisted-With: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 2.29%. Comparing base (5a8cdce) to head (9c0d595).
⚠️ Report is 305 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##            main    #175      +/-   ##
========================================
- Coverage   3.70%   2.29%   -1.42%     
========================================
  Files          5       4       -1     
  Lines        135     131       -4     
========================================
- Hits           5       3       -2     
+ Misses       130     128       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

pip-audit (the `audit-deps` CI step) flagged cryptography 48.0.0
(GHSA-537c-gmf6-5ccf, fixed in 48.0.1). The floor was >=46.0.7, so the lock
resolved to the vulnerable 48.0.0. Raise the floor to >=48.0.1; the re-solve
picks up conda-forge's 49.0.0. As the template, this propagates to generated
repos.

Assisted-With: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@KedoKudo KedoKudo changed the title ci: emit coverage.xml so codecov upload succeeds fix CI: emit coverage.xml + bump cryptography (clears codecov + pip-audit) Jun 16, 2026
@KedoKudo KedoKudo merged commit c963aa1 into main Jun 16, 2026
7 checks passed
@KedoKudo KedoKudo deleted the ci/codecov-xml-report branch June 16, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants