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

fix: improve adjusted base comparison #484

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

giovanni-guidini
Copy link
Contributor

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.

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).
@giovanni-guidini giovanni-guidini requested a review from a team June 3, 2024 15:12
@codecov-notifications
Copy link

codecov-notifications bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #484   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files         412      412           
  Lines       34150    34150           
=======================================
  Hits        33217    33217           
  Misses        933      933           
Flag Coverage Δ
integration 97.26% <100.00%> (ø)
latest-uploader-overall 97.26% <100.00%> (ø)
unit 97.26% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.37% <100.00%> (ø)
OutsideTasks 97.52% <100.00%> (ø)
Files Coverage Δ
services/notification/notifiers/mixins/status.py 98.22% <100.00%> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.26%. Comparing base (2ff1c1d) to head (4743947).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #484   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files         412      412           
  Lines       34150    34150           
=======================================
  Hits        33217    33217           
  Misses        933      933           
Flag Coverage Δ
integration 97.26% <100.00%> (ø)
latest-uploader-overall 97.26% <100.00%> (ø)
unit 97.26% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.37% <100.00%> (ø)
OutsideTasks 97.52% <100.00%> (ø)
Files Coverage Δ
services/notification/notifiers/mixins/status.py 98.22% <100.00%> (ø)

Copy link

codecov-public-qa bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.26%. Comparing base (2ff1c1d) to head (4743947).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #484   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files         412      412           
  Lines       34150    34150           
=======================================
  Hits        33217    33217           
  Misses        933      933           
Flag Coverage Δ
integration 97.26% <100.00%> (ø)
latest-uploader-overall 97.26% <100.00%> (ø)
unit 97.26% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.37% <100.00%> (ø)
OutsideTasks 97.52% <100.00%> (ø)
Files Coverage Δ
services/notification/notifiers/mixins/status.py 98.22% <100.00%> (ø)

Copy link

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.29%. Comparing base (2ff1c1d) to head (4743947).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #484   +/-   ##
=======================================
  Coverage   97.29%   97.29%           
=======================================
  Files         443      443           
  Lines       34879    34879           
=======================================
  Hits        33936    33936           
  Misses        943      943           
Flag Coverage Δ
integration 97.26% <100.00%> (ø)
latest-uploader-overall 97.26% <100.00%> (ø)
unit 97.26% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.43% <100.00%> (ø)
OutsideTasks 97.52% <100.00%> (ø)
Files Coverage Δ
services/notification/notifiers/mixins/status.py 99.40% <100.00%> (ø)
Related Entrypoints
run/app.tasks.notify.Notify

@giovanni-guidini giovanni-guidini added this pull request to the merge queue Jun 3, 2024
Merged via the queue into main with commit 338d1c6 Jun 3, 2024
29 of 30 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/improve-adjusted-base branch June 3, 2024 15:31
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

2 participants