-
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 zinnia sentry grouping #446
Conversation
This doesn't sound right to me. IIUC, with your change in place, we will report module exits to Sentry, even in situations when the exit was expected because it was triggered by us. IMO, we should implement the following behaviour:
I think the following change would achieve that: - if (!signal.aborted) {
+ if (signal.aborted) {
+ Object.assign(err, { reportedToSentry: true })
+ } else { WDYT? In this case, your original name, |
Great catch! Implemented as suggested, and made the detection for abort errors more robust (we want to know where this caught error is from an abort, not whether an abort has happened in general). Also, don't worry about the |
The problem was
if (!signal.aborted)
: We only performed the special Sentry error transformation when a child process exited on its own. When the AbortController was triggered (say because there was a module update), thensignal.aborted
was alwaystrue
, and therefore the special Sentry code didn't run.This condition was a mistake, and is now removed in this PR. We want to run the code block on every child process exit.