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 apps): Catch all errors so components doesn't blow up #84204

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

Christinarlong
Copy link
Contributor

Currently, because we only catch APIError errors in SentryAppComponents if we trigger some other error during the component process, the endpoint blows up and no ui components are shown. For now let's catch all of them whilst we wait for #84187

@Christinarlong Christinarlong requested review from a team as code owners January 28, 2025 22:18
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 28, 2025
Copy link
Member

@cathteng cathteng left a comment

Choose a reason for hiding this comment

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

looks good as a temp fix

@@ -196,3 +197,42 @@ def test_component_prep_errors_are_isolated(self, run):
]

assert response.data == expected

@patch("sentry.sentry_apps.components.SentryAppComponentPreparer.run")
def test_component_prep_errors_dont_bring_down_everything(self, run):
Copy link
Member

Choose a reason for hiding this comment

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

lol

@Christinarlong Christinarlong merged commit 6e6ed59 into master Jan 29, 2025
50 checks passed
@Christinarlong Christinarlong deleted the crl/backstop-to-handle-new-errors-incomponents branch January 29, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants