Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block PR Merge if coverage is below threshold (Currently 40%) #1640

Merged
merged 2 commits into from
Mar 1, 2022
Merged

Block PR Merge if coverage is below threshold (Currently 40%) #1640

merged 2 commits into from
Mar 1, 2022

Conversation

cniackz
Copy link
Collaborator

@cniackz cniackz commented Mar 1, 2022

Fixes https://github.com/miniohq/engineering/issues/555

Based on the documentation in this place:
https://docs.google.com/document/d/1tEBMSmpoCftvtgUYjCSzAGqWM1T-1OsHk7AxvUoq0VM/edit
Let's make this automatically, in the way that you can actually calculated the coverage of every PR in the repo.
That way if the coverage of all the test is below the threshold then we can reject the PR and cannot be merged.
Otherwise, if the PR's coverage is above the threshold then you can merge

I will be doing this as the next step to force the increment of the coverage by the developers.

Inspired by: https://blog.cloudflare.com/go-coverage-with-external-tests/

@cniackz cniackz added the WIP This PR is WIP and cannot be merged yet label Mar 1, 2022
@cniackz cniackz self-assigned this Mar 1, 2022
@cniackz cniackz changed the title [WIP] - Get coverage limit Block PR Merge if coverage is below threshold (Currently 40%) Mar 1, 2022
@cniackz cniackz removed the WIP This PR is WIP and cannot be merged yet label Mar 1, 2022
@bexsoft bexsoft merged commit 57e995f into minio:master Mar 1, 2022
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.

None yet

4 participants