Skip to content

Add Codecov test-analytics upload - #8

Merged
cjunius merged 2 commits into
mainfrom
ci/codecov-test-analytics
Aug 30, 2026
Merged

cjunius merged 2 commits into
mainfrom
ci/codecov-test-analytics

Conversation

@cjunius

@cjunius cjunius commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

Adds Codecov's failed-test reporting (Test Analytics) alongside the coverage
upload already in CI.

  • pytest now also writes a legacy-format JUnit XML (--junitxml=junit.xml -o junit_family=legacy)
  • new codecov/test-results-action step (SHA-pinned to v1.2.1) uploads it, gated on !cancelled() so it runs even when tests fail
  • junit.xml gitignored; CHANGELOG.md note updated

Uses the existing CODECOV_TOKEN secret. No behaviour change to the engine.

Testing

  • ruff check ., ruff format --check ., mypy — clean
  • pytest --cov-report=xml --junitxml=junit.xml -o junit_family=legacy — 80 passing, 91% coverage, valid JUnit XML produced
  • ci.yml YAML validated

Checklist

  • ruff check . and ruff format --check . pass
  • mypy passes (strict on src/)
  • pytest passes; coverage stays >= 85%
  • Tests added or updated for the change — n/a (CI-only)
  • CHANGELOG.md updated under ## [Unreleased]
  • README.md / docs/*.md updated if behaviour or structure changed — n/a
  • docs/performance.md refreshed if search speed changed — n/a

🤖 Generated with Claude Code

CI now emits a legacy-format JUnit XML from pytest and uploads it with
codecov/test-results-action (SHA-pinned v1.2.1), alongside the existing
coverage upload. Enables Codecov's failed-test reporting in PR comments.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 30, 2026 13:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The CI changes are scoped, SHA-pinned, and correctly configured to produce and upload JUnit results alongside coverage.

Pull request overview

Adds Codecov Test Analytics (failed-test reporting) uploads to the existing CI pipeline by generating and uploading JUnit XML results alongside coverage, without changing engine/runtime behavior.

Changes:

  • Update CI pytest invocation to also emit junit.xml in legacy JUnit format.
  • Add a SHA-pinned codecov/test-results-action step to upload JUnit results, gated with !cancelled() so it runs even if tests fail.
  • Ignore junit.xml and note the additional CI uploads in the changelog.
File summaries
File Description
CHANGELOG.md Documents the CI addition of Codecov coverage + test-analytics uploads.
.gitignore Prevents committed CI-generated junit.xml.
.github/workflows/ci.yml Generates JUnit XML during tests and uploads results to Codecov via a pinned action.
Review details
  • Files reviewed: 2/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cjunius
cjunius disabled auto-merge August 30, 2026 13:25
@cjunius
cjunius merged commit 3276936 into main Aug 30, 2026
4 checks passed
@cjunius
cjunius deleted the ci/codecov-test-analytics branch August 30, 2026 13:25
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