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(sentry): Do not report to sentry if service is not found #169

Merged

Conversation

hubertdeng123
Copy link
Member

This adds additional noise, so let's not report to sentry if ServiceNotFound error is raised

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.44%. Comparing base (95674ff) to head (e46c2f7).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #169      +/-   ##
==========================================
+ Coverage   90.66%   91.44%   +0.77%     
==========================================
  Files          21       22       +1     
  Lines        1253     1297      +44     
==========================================
+ Hits         1136     1186      +50     
+ Misses        117      111       -6     

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

Copy link

sentry-io bot commented Dec 2, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: devservices/commands/up.py

Function Unhandled Issue
up AttributeError: 'str' object has no attribute 'keys' ...
Event Count: 1

Did you find this useful? React with a 👍 or 👎

@@ -32,10 +32,13 @@ def list_dependencies(args: Namespace) -> None:

try:
service = find_matching_service(service_name)
except (ConfigError, ServiceNotFoundError) as e:
except ConfigError as e:
Copy link
Member Author

@hubertdeng123 hubertdeng123 Dec 2, 2024

Choose a reason for hiding this comment

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

I also think we want to avoid reporting ConfigNotFoundError too, thoughts?

Copy link
Member

@IanWoodard IanWoodard left a comment

Choose a reason for hiding this comment

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

Could you add some quick tests for this?

@hubertdeng123 hubertdeng123 merged commit b20b733 into main Dec 3, 2024
14 checks passed
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/do-not-report-error-service-not-found branch December 3, 2024 23:11
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