Skip to content

Fix Codecov v7 coverage file input - #38

Merged
konard merged 3 commits into
mainfrom
issue-34-0c62870eba13
Jul 22, 2026
Merged

Fix Codecov v7 coverage file input#38
konard merged 3 commits into
mainfrom
issue-34-0c62870eba13

Conversation

@konard

@konard konard commented Jul 22, 2026

Copy link
Copy Markdown
Member

Fixes #34.

Summary

  • Keep the release workflow on codecov/codecov-action@v7.
  • Complete the v4-to-v7 migration by renaming the deprecated singular file input to v7's files input.
  • Strengthen the workflow regression test to require files and reject the legacy singular input.
  • Add a changelog fragment and remove the autogenerated branch placeholder.

Root cause and reproduction

The Codecov action tag had already been upgraded to v7 by #36, but its configuration still used the v4-era file input. The focused regression test reproduces the partial migration by failing with:

assert "files: ${{ steps.python_layout.outputs.root }}/coverage.xml" in upload_step

This means a straight major-version bump could silently stop selecting the generated coverage.xml report.

Verification

  • .venv/bin/python -m pytest tests/test_workflows.py::test_release_workflow_gates_codecov_upload_on_token -q
  • .venv/bin/python -m pytest --cov=src --cov-report=term (45 passed, 100% package coverage)
  • .venv/bin/ruff check .
  • .venv/bin/ruff format --check .
  • .venv/bin/mypy src/
  • .venv/bin/python scripts/check_file_size.py
  • .venv/bin/pre-commit run check-yaml --files .github/workflows/release.yml
  • git diff --check

mypy passed with the repository's existing Python 3.9 support and strict_concatenate deprecation warnings.

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #34
@konard konard self-assigned this Jul 22, 2026
@konard konard changed the title [WIP] codecov/codecov-action pinned to deprecated @v4 (current is v7) Fix Codecov v7 coverage file input Jul 22, 2026
@konard
konard marked this pull request as ready for review July 22, 2026 21:22
@konard

konard commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

Working session summary

Implemented and pushed the Codecov v7 migration fix.

  • Changed the legacy file input to v7’s files input.
  • Added regression coverage rejecting the legacy input.
  • Added a changelog fragment.
  • Merged current main.
  • Updated PR title/description and marked it ready.
  • Local checks pass: 45 tests, 100% coverage, Ruff, mypy, YAML, and file-size checks.
  • Worktree is clean.

PR: #38

GitHub Actions run is created but remains pending with zero jobs scheduled: https://github.com/link-foundation/python-ai-driven-development-pipeline-template/actions/runs/29958895118


This summary was automatically extracted from the AI working session output.

@konard

konard commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.6 Sol
  • Provider: OpenAI
  • Public pricing estimate: $2.590481

📊 Context and tokens usage:

  • 73.9K / 200K (37%) input tokens, 7.0K / 128K (5%) output tokens

Total: (73.9K + 1.5M cached) input tokens, 7.0K output tokens, $2.590481 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.6-sol
  • Thinking level: off (disabled)
  • Model: GPT-5.6 Sol (gpt-5.6-sol)

📎 Log file uploaded as Gist (1035KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
konard merged commit f1031bd into main Jul 22, 2026
7 checks passed
@konard

konard commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

🎉 Auto-merged

This pull request has been automatically merged by hive-mind.

  • All CI checks have passed

Auto-merged by hive-mind with --auto-merge flag

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.

codecov/codecov-action pinned to deprecated @v4 (current is v7)

1 participant