Skip to content

Allow codecov patch check to pass when no coverage is uploaded#3681

Open
varadarajan-tw wants to merge 2 commits intomainfrom
fix/codecov-workflow-only-prs-clean
Open

Allow codecov patch check to pass when no coverage is uploaded#3681
varadarajan-tw wants to merge 2 commits intomainfrom
fix/codecov-workflow-only-prs-clean

Conversation

@varadarajan-tw
Copy link
Copy Markdown
Contributor

@varadarajan-tw varadarajan-tw commented Mar 23, 2026

Summary

  • Adds if_no_uploads: success to the codecov patch status configuration
  • Workflow-only PRs (e.g. fixing CI/YAML files) trigger no affected tests via NX, so no coverage is uploaded — without this, the required codecov patch check blocks the PR indefinitely
  • The 80% patch coverage target remains enforced for PRs that do include code changes

Test plan

Testing will be done via a follow up PR. These changes have to be in main for testing.

Workflow-only PRs trigger no affected tests via NX, so no coverage is
uploaded. With informational: false, the patch status check would block
the PR indefinitely. if_no_uploads: success passes the check when there
is nothing to report.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants