Code coverage uploads no longer fail CI for new branches on GitHub
- GitHub Code Quality
- GitHub Enterprise Cloud
- GitHub Enterprise Team
- GitHub Enterprise Server
AI Summary
GitHub has updated the Code Quality upload-code-coverage action so that code coverage uploads no longer fail CI when pushed to a branch without an open pull request. Previously, the coverage API required a pull request number, causing failures for new branches before PR creation. Now, the action gracefully skips the upload and logs an explanatory notice and step summary instead of failing. This improvement affects pushes to non-default branches lacking a PR and subsequent pushes until a PR is opened, while default branch and existing PR behaviors remain unchanged. The feature is currently available on GitHub Enterprise Cloud and GitHub Team, but is not supported on GitHub Enterprise Server.
Key Takeaways
- The upload-code-coverage action now skips uploads instead of failing when no PR is associated with the branch.
- An Actions notice and step summary explain why the upload was skipped.
- Available on GitHub Enterprise Cloud and GitHub Team, but not GitHub Enterprise Server.
Why it matters
This change removes a common friction point in CI/CD workflows for developers using GitHub Code Quality code coverage actions by preventing false build failures on newly created branches.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.