Skip to content

Conversation

@ShakutaiGit
Copy link
Collaborator

@ShakutaiGit ShakutaiGit commented Nov 24, 2025

Change Description

This PR introduces two improvements to our CI coverage workflow:

  • Per-component coverage comments on every PR
    Each pipeline run posts a comment that shows the coverage of the specific component being tested.
    The action updates the existing comment instead of creating new ones on every run.

Example:
image

  • Strict PR diff-coverage enforcement using diff-cover
    We now verify coverage only for the lines changed in the PR.
    If the PR reduces diff-coverage below 80%, the CI step fails.
    Example of failure:
image

Additionally, a COVERAGE_THRESHOLD env variable was added so the required percentage can be easily raised in the future.

@ShakutaiGit ShakutaiGit self-assigned this Nov 24, 2025
@github-actions
Copy link

Coverage report (presidio-anonymizer)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

Coverage report (presidio-structured)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

Coverage report (presidio-cli)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

📊 Coverage Report

Component Coverage
presidio-analyzer 91.6%
presidio-anonymizer 84.3%
presidio-cli 93.0%
presidio-image-redactor 92.0%
presidio-structured 91.9%

Threshold: 70% minimum

@github-actions
Copy link

📊 Coverage Report

Component Coverage Lines Covered
presidio-analyzer 91.6% 5316/5803
presidio-anonymizer 84.3% 1914/2270
presidio-cli 93.0% 411/442
presidio-image-redactor 92.0% 2023/2200
presidio-structured 91.9% 444/483

This shows total coverage for each component.
Threshold: 70% minimum | Changes: Check test logs for modified files

@github-actions
Copy link

📊 Coverage Report

Component Total Coverage PR Diff Coverage
presidio-analyzer 91.6%
presidio-anonymizer 84.3%
presidio-cli 93.0%
presidio-image-redactor 92.0%
presidio-structured 91.9%

Total Coverage: All code in component
PR Diff Coverage: Only lines changed in this PR

Threshold: 70% minimum

@github-actions
Copy link

📊 Coverage Report

Component Total Coverage PR Diff Coverage
presidio-analyzer 91.6% N/A%
presidio-anonymizer 84.3% N/A%
presidio-cli 93.0% N/A%
presidio-image-redactor 92.0% N/A%
presidio-structured 91.9% N/A%

Total Coverage: All code in component
PR Diff Coverage: Only lines changed in this PR

Threshold: 70% minimum

@github-actions
Copy link

Coverage report (Anonymizer)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

Coverage report (CLI)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

Coverage report (Structured)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

Coverage report (Image Redactor)

This PR does not seem to contain any modification to coverable code.

@github-actions
Copy link

Coverage report (Analyzer)

This PR does not seem to contain any modification to coverable code.

@ShakutaiGit ShakutaiGit marked this pull request as ready for review November 25, 2025 13:04
@ShakutaiGit ShakutaiGit requested a review from a team as a code owner November 25, 2025 13:04
omri374
omri374 previously approved these changes Nov 30, 2025
SharonHart
SharonHart previously approved these changes Nov 30, 2025
@ShakutaiGit ShakutaiGit dismissed stale reviews from SharonHart and omri374 via fdce3c6 November 30, 2025 11:19
@ShakutaiGit ShakutaiGit merged commit 633fff2 into main Nov 30, 2025
35 checks passed
@ShakutaiGit ShakutaiGit deleted the ci/add-coverage-check branch November 30, 2025 11:31
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.

4 participants