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

[PLAT-6482] Internal error reporting #1089

Merged
merged 6 commits into from
May 10, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented May 7, 2021

Goal

Enables errors within the notifier to be reported to Bugsnag for further investigation.

Implements sending an internal error if crash reports fail to parse correctly.

Design

See engineering design document.

Changeset

BSGInternalErrorReporter implements the formatting and sending of internal error event.

BSGEventUploadKSCrashReportOperation has been updated to send error events for various different parsing errors.

Testing

Tested manually using a sample app and creating an invalid JSON file in the KSCrashReports directory. Reported errors look like this in the dashboard:

Screenshot 2021-05-07 at 08 58 37

Unit tests have been added to verify the BugsnagEvent and NSURLRequest objects are populated as expected.

Added E2E scenario to verify that an internal error is reported if an invalid KSCrashReport is encountered (results).

@github-actions
Copy link

github-actions bot commented May 7, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 5,432 bytes from 1,125,144 to 1,130,576

Generated by 🚫 Danger

@nickdowell nickdowell requested a review from kstenerud May 10, 2021 08:27
@nickdowell nickdowell merged commit f58f253 into next May 10, 2021
@nickdowell nickdowell deleted the nickdowell/internal-error-reporting branch May 10, 2021 13:23
@nickdowell nickdowell mentioned this pull request May 19, 2021
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