-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: improve adjusted base comparison #484
Conversation
ticket: codecov/internal-issues#204 Let me preface this by saying that the latest comment in the ticket doesn't seem an accurate complain cause looking in the logs the adjusted base coverage is 91.30752 and the head covereage is 91.24169. That being said, it's still possible that for a decent sized code base the change is less than what we display as a "change" (that is, the change is smaller than 0.01), but it's still a change (might be 0.0001) Realistically no one would care. So this change protects us by having a little wiggle room. The check would only fail if the difference is more than 0.01 (so the numbers in the comment would look different).
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #484 +/- ##
=======================================
Coverage 97.26% 97.26%
=======================================
Files 412 412
Lines 34150 34150
=======================================
Hits 33217 33217
Misses 933 933
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #484 +/- ##
=======================================
Coverage 97.26% 97.26%
=======================================
Files 412 412
Lines 34150 34150
=======================================
Hits 33217 33217
Misses 933 933
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found @@ Coverage Diff @@
## main #484 +/- ##
=======================================
Coverage 97.26% 97.26%
=======================================
Files 412 412
Lines 34150 34150
=======================================
Hits 33217 33217
Misses 933 933
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #484 +/- ##
=======================================
Coverage 97.29% 97.29%
=======================================
Files 443 443
Lines 34879 34879
=======================================
Hits 33936 33936
Misses 943 943
Flags with carried forward coverage won't be shown. Click here to find out more.
|
ticket: https://github.com/codecov/internal-issues/issues/204
Let me preface this by saying that the latest comment in the ticket doesn't seem an accurate complain
cause looking in the logs the adjusted base coverage is 91.30752 and the head covereage is 91.24169.
That being said, it's still possible that for a decent sized code base the change is less than what we
display as a "change" (that is, the change is smaller than 0.01), but it's still a change (might be 0.0001)
Realistically no one would care.
So this change protects us by having a little wiggle room. The check would only fail if the difference is
more than 0.01 (so the numbers in the comment would look different).
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.