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

[Regression Fix] Braze Segment Integration Crash #1785

Merged
merged 9 commits into from Feb 2, 2023

Conversation

msadoon
Copy link
Contributor

@msadoon msadoon commented Feb 1, 2023

Briefly, the issue here is one of our dependencies appboy-segment-ios.

The discussion is currently open as an issue on their repository.

This PR addresses the temporary crash, but it sounds like it might occur in the future.
With no immediate timeline for a fix, there is a workaround that's basically the same as what we have in production now.

Workaround:
Previously we relied on appboy-segment-ios 4.6.0 on SPM to download it's own dependency for braze-ios-sdk AKA AppboyKit_iOS-SDK. Which at time of this writing is 4.5.3.

However as noted in the issue, we are experiencing a crash with 4.5.3, so this temporary fix is to pin 4.5.1, because it's currently used in production. This should get us through regression testing and be production safe because our production version of this SDK is 4.5.1 and has been for many months.

As soon as this issue is in a release from Braze, we can retest the scenario (checkout with Apple Pay on the production Kickstarter app) and remove pinned braze-ios-sdk, instead relying on the dependency from appboy-segment-ios.

)

* updated marketing version to 5.6.1 from 5.6.0

* need to set the provisioning profiles in pbxproj files to allow fastlane to match them with ios-certificates.

* updated pp from development to appstore in pbxproj
…Kit and BrazeUI are not yet added. Test for crash first.
dependency `braze-ios-sdk` was crashing beyond version 4.5.1. So pinned version 4.5.1, and using `appboy-segment-ios` latest `4.6.0`
@msadoon msadoon added this to the release-5.6.1 milestone Feb 1, 2023
@msadoon msadoon self-assigned this Feb 1, 2023
@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Merging #1785 (608eb51) into release-5.6.1 (01b4f0e) will decrease coverage by 3.83%.
The diff coverage is n/a.

@@                Coverage Diff                @@
##           release-5.6.1    #1785      +/-   ##
=================================================
- Coverage          89.06%   85.23%   -3.83%     
=================================================
  Files                882     1277     +395     
  Lines              80651   116666   +36015     
  Branches           21169    30794    +9625     
=================================================
+ Hits               71833    99445   +27612     
- Misses              8060    16148    +8088     
- Partials             758     1073     +315     
Impacted Files Coverage Δ
Library/Tracking/MockTrackingClient.swift 85.71% <0.00%> (-9.03%) ⬇️
...OS/Features/Update/ViewModel/UpdateViewModel.swift 96.62% <0.00%> (ø)
...OS/Features/Messages/Views/Cells/BackingCell.swift 0.00% <0.00%> (ø)
Kickstarter-iOS/Library/NSBundle-Framework.swift 100.00% <0.00%> (ø)
...s/Dashboard/Views/Cells/DashboardContextCell.swift 100.00% <0.00%> (ø)
...il/Controller/ChangeEmailViewControllerTests.swift 95.45% <0.00%> (ø)
...res/Comments/Views/Cells/ViewMoreRepliesCell.swift 94.28% <0.00%> (ø)
...Activities/Views/Cells/FindFriendsHeaderCell.swift 86.36% <0.00%> (ø)
...tivities/Controller/ActivitiesViewController.swift 53.84% <0.00%> (ø)
Kickstarter-iOS/Library/ContentSizeTableView.swift 100.00% <0.00%> (ø)
... and 390 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@msadoon msadoon merged commit 1e1c01d into release-5.6.1 Feb 2, 2023
@msadoon msadoon deleted the fix/braze-apple-pay-crash branch February 2, 2023 01:44
msadoon added a commit that referenced this pull request Feb 2, 2023
* updated marketing version to 5.6.1 from 5.6.0

* need to set the provisioning profiles in pbxproj files to allow fastlane to match them with ios-certificates.

* updated pp from development to appstore in pbxproj

* commented out fb password reset screen because the functionality didn't make sense at time of writing.

* formatting

* [Regression Fix] Braze Segment Integration Crash (#1785)

* quick fix, missed saving launchOptions to Appboy shared instance.
msadoon added a commit that referenced this pull request Feb 2, 2023
* updated marketing version to 5.6.1 from 5.6.0

* need to set the provisioning profiles in pbxproj files to allow fastlane to match them with ios-certificates.

* updated pp from development to appstore in pbxproj

* commented out fb password reset screen because the functionality didn't make sense at time of writing.

* formatting

* [Regression Fix] Braze Segment Integration Crash (#1785)

* quick fix, missed saving launchOptions to Appboy shared instance.

* added provisioning profiles to pbx file to trigger build.

* updated the main target to contain the manual provisioning profiles
msadoon added a commit that referenced this pull request Feb 2, 2023
* updated marketing version to 5.6.1 from 5.6.0

* need to set the provisioning profiles in pbxproj files to allow fastlane to match them with ios-certificates.

* updated pp from development to appstore in pbxproj

* commented out fb password reset screen because the functionality didn't make sense at time of writing.

* formatting

* [Regression Fix] Braze Segment Integration Crash (#1785)

* quick fix, missed saving launchOptions to Appboy shared instance.

* added provisioning profiles to pbx file to trigger build.

* updated the main target to contain the manual provisioning profiles

* added individual certs based on 5.6.0 release branch to individual targets, this may be the actual solution to the failing ci builds.
msadoon added a commit that referenced this pull request Feb 2, 2023
* updated marketing version to 5.6.1 from 5.6.0

* need to set the provisioning profiles in pbxproj files to allow fastlane to match them with ios-certificates.

* updated pp from development to appstore in pbxproj

* commented out fb password reset screen because the functionality didn't make sense at time of writing.

* formatting

* [Regression Fix] Braze Segment Integration Crash (#1785)

* quick fix, missed saving launchOptions to Appboy shared instance.

* added provisioning profiles to pbx file to trigger build.

* updated the main target to contain the manual provisioning profiles

* added individual certs based on 5.6.0 release branch to individual targets, this may be the actual solution to the failing ci builds.

* after merging main something got reset in the pbx file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant