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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift fatal error improvements #1186

Merged
merged 3 commits into from Sep 16, 2021
Merged

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Sep 15, 2021

Goal

Improve parsing of Swift fatal error messages.

One of our E2E tests was failing on certain OS / Swift versions because the "Unexpectedly found nil while unwrapping an Optional value" message did not contain file name and line information, which BugsnagError was expecting.

Changeset

  • Adds matching patterns for Swift fatal error message variants with no file name / line number info.
  • Adjusts tests to be more tolerant of slight differences between Swift versions - the class name can be __SwiftNativeNSError or _SwiftNativeNSError, and the name of internal methods can vary.

Testing

Added macOS 10.13 barebones tests (which were failing) to the standard pipeline. Tests now pass 馃帀

@nickdowell nickdowell changed the title Nickdowell/swift fatal error fixes Swift fatal error improvements Sep 15, 2021
@github-actions
Copy link

github-actions bot commented Sep 15, 2021

Infer: No issues found 馃帀

OCLint: No issues found 馃帀

Bugsnag.framework binary size did not change - 1,156,600 bytes

Generated by 馃毇 Danger

@nickdowell nickdowell changed the base branch from master to next September 15, 2021 15:54
@nickdowell nickdowell merged commit 7385b24 into next Sep 16, 2021
@nickdowell nickdowell deleted the nickdowell/swift-fatal-error-fixes branch September 16, 2021 08:44
@nickdowell nickdowell mentioned this pull request Sep 22, 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.

None yet

2 participants