Skip to content

Replace custom coverage script with py-cov-action#1901

Merged
benflexcompute merged 4 commits intoBenY/CentralizedSchemafrom
BenY/UnifyCoverageReport
Mar 17, 2026
Merged

Replace custom coverage script with py-cov-action#1901
benflexcompute merged 4 commits intoBenY/CentralizedSchemafrom
BenY/UnifyCoverageReport

Conversation

@benflexcompute
Copy link
Collaborator

@benflexcompute benflexcompute commented Mar 17, 2026

Summary

  • Replace custom coverage_summary.py (235 lines) + marocchino/sticky-pull-request-comment with standard py-cov-action/python-coverage-comment-action@v3.40
  • Add [tool.coverage.run] relative_files = true to pyproject.toml (required by py-cov-action)
  • Upload .coverage artifact instead of generating XML
  • Aligns Python client coverage reporting with flow360-schema package

Test plan

  • Verify CI passes on this PR
  • Verify coverage comment appears on PR

🤖 Generated with Claude Code


Note

Medium Risk
Modifies CI coverage collection and PR commenting flow; main risk is broken or missing coverage reporting due to artifact/coverage configuration changes.

Overview
Replaces the custom PR coverage reporting pipeline with py-cov-action/python-coverage-comment-action: the bespoke .github/scripts/coverage_summary.py and its diff/full markdown generation are removed, and the workflow no longer fetches the base branch or posts via sticky-pull-request-comment.

CI now uploads the raw .coverage file as an artifact from the coverage test run and adds a separate coverage job to download that artifact and post the coverage comment. Adds [tool.coverage.run] relative_files = true in pyproject.toml to align file paths for the new action.

Written by Cursor Bugbot for commit 361fadc. This will update automatically on new commits. Configure here.

…-schema)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e71d333b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

py-cov-action runs coverage commands internally that need source files
to resolve line numbers. Without checkout, it silently fails.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Without always(), GitHub Actions skips dependent jobs when any
upstream matrix combination fails. This prevented coverage comments
from appearing when e.g. Python 3.13/Windows failed, even though
the 3.10/ubuntu coverage data was successfully uploaded.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

If 3.10/ubuntu fails before uploading, the artifact won't exist.
Download step now uses continue-on-error with an id, and the
post-comment step only runs on successful download.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@benflexcompute benflexcompute merged commit bfbb7b4 into BenY/CentralizedSchema Mar 17, 2026
6 of 7 checks passed
@benflexcompute benflexcompute deleted the BenY/UnifyCoverageReport branch March 17, 2026 15:45
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.

1 participant