Repository navigation
Reject pull requests that reduce coverage - #16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The existing coverage check only enforces fixed minimums, allowing a PR to reduce coverage while remaining above them. Compare each PR’s tested merge revision with its base SHA and fail on any decrease in line, branch, or function coverage. Compare exact covered/total ratios so rounding cannot hide a small regression; retain the 97.8% line and 93.3% branch floors, including on pushes to main.
Collect both revisions using the same Docker image, test suite entry point, and filters in fresh build directories. Instrument C as well as C++, exclude generated CMake files and test helpers, and publish the comparison in the job summary. Upload both revisions’ HTML, text, JSON, and test logs even when the check fails. Keep the existing Build job/check name and use read-only repository permissions.
Validation: