According to the GitHub Changelog, code coverage uploads utilizing the GitHub Code Quality upload-code-coverage action have been updated. Specifically, these uploads will no longer cause continuous integration pipelines to fail when a developer pushes a branch that does not yet possess an open pull request.
Understanding Continuous Integration and Code Coverage
Continuous integration systems routinely run automated checks every time code is pushed to a repository. Code coverage tools measure the percentage of source code executed during testing to help teams spot untested areas. Previously, enforcing these coverage checks on brand new branches without active pull requests often blocked development workflows if baseline metrics were missing or unestablished.
Unanswered Questions and What to Watch
The announcement did not specify how baseline metrics for these new branches are calculated, nor did it detail whether developers can re-enable strict failure rules via configuration settings if they prefer traditional behavior. It remains to be seen if similar adjustments will roll out to other related code quality and testing actions across the platform.
Developers using the upload-code-coverage action should check their current continuous integration pipelines to observe how new branches are handled moving forward.
Lead image: Bibek ghosh / Pexels