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

Revert "Stop build if coverage is lower than main" #5473

Merged
merged 3 commits into from
Apr 24, 2023

Conversation

sylvainsf
Copy link
Contributor

Reverts enforcement of coverage blocker on builds per discussion with @nicolejms

@sylvainsf sylvainsf requested a review from a team as a code owner April 21, 2023 18:10

> The coverage result does not include the functional test coverage.
- name: Stop build if PR branch coverage is lower than main branch.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@github-actions
Copy link

61.1

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 61.1 %
  • main branch coverage: 61.1 %

The coverage result does not include the functional test coverage.

@nicolejms
Copy link
Contributor

Thanks for the quick turnaround

@shalabhms shalabhms self-requested a review April 21, 2023 18:46
@github-actions
Copy link

61.5

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 61.5 %
  • main branch coverage: 61.5 %
  • diff coverage: %

The coverage result does not include the functional test coverage.

Comment on lines 116 to 118
DIFF_RATE=$(echo "$UT_COVERAGE-$MAIN_COVERAGE" | bc -l)
echo "diff_coverage=$DIFF_RATE" >> $GITHUB_ENV

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to be reverted back.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is what sets env.diff_coverage

adding diff rate back to report
@github-actions
Copy link

61.5

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 61.5 %
  • main branch coverage: 61.5 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@sylvainsf sylvainsf merged commit 7df35f4 into main Apr 24, 2023
@sylvainsf sylvainsf deleted the revert-5300-youngp/stop-build-cov branch April 24, 2023 21:13
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.

8 participants