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

Lower log severity level to remove Sentry noise #576

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented May 21, 2024

Purpose/Motivation

fixes: https://github.com/codecov/internal-issues/issues/463

Change the severity level from log.exception to log.info, showing on exception level doesn't offer much as there's no actionable things for when fetching a non existent path on GH (we always return null when that happens), instead it would only spawn a Sentry error. Downgrading the severity level removes the Sentry noise.

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.

@@ -21,7 +21,7 @@ async def get_file_from_service(self, commit, path):
return content.get("content").decode("utf-8")
# TODO raise this to the API so we can handle it.
except Exception:
log.exception(
log.info(
"GetFileContentInteractor - exception raised",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the message change from "exception raised" as well?

@codecov-notifications
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.35%. Comparing base (7fe50b4) to head (9537964).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #576   +/-   ##
=======================================
  Coverage   91.35%   91.35%           
=======================================
  Files         599      599           
  Lines       15972    15972           
=======================================
  Hits        14592    14592           
  Misses       1380     1380           
Flag Coverage Δ
unit 91.35% <100.00%> (ø)
unit-latest-uploader 91.35% <100.00%> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.35%. Comparing base (7fe50b4) to head (9537964).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #576   +/-   ##
=======================================
  Coverage   91.35%   91.35%           
=======================================
  Files         599      599           
  Lines       15972    15972           
=======================================
  Hits        14592    14592           
  Misses       1380     1380           
Flag Coverage Δ
unit 91.35% <100.00%> (ø)
unit-latest-uploader 91.35% <100.00%> (ø)

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

Files Coverage Δ
...re/commands/commit/interactors/get_file_content.py 100.00% <100.00%> (ø)

Impacted file tree graph

@JerrySentry JerrySentry added this pull request to the merge queue May 21, 2024
Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.84%. Comparing base (7fe50b4) to head (9537964).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #576   +/-   ##
=====================================
  Coverage   95.84   95.84           
=====================================
  Files        777     777           
  Lines      17290   17290           
=====================================
  Hits       16571   16571           
  Misses       719     719           
Flag Coverage Δ
unit 91.35% <100.00%> (ø)
unit-latest-uploader 91.35% <100.00%> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Merged via the queue into main with commit 62f64f3 May 21, 2024
35 of 37 checks passed
@JerrySentry JerrySentry deleted the may_21_noise branch May 21, 2024 17:50
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.

2 participants