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 MultiThreadedStartupScenario #1641

Merged
merged 3 commits into from
Mar 30, 2022
Merged

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Mar 30, 2022

Goal

Stop MultiThreadedStartupScenario from flaking.

Design

Add a 1ms delay into the "leaveBreadcrumb" thread, simulating a small workload without being enough time for Bugsnag.start to have completed. This should stop the "leaveBreadcrumb" thread from acquiring the lock before start can.

Testing

Will rerun the full test suite.

…n the non-startup thread, to simulate some typical startup work-load (but not long enough for `Bugsnag.start` to complete)
@lemnik lemnik requested a review from kstenerud March 30, 2022 10:43
@bugsnagbot
Copy link
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1853.16 1606.38
arm64_v8a 647.56 401.8
armeabi_v7a 586.13 340.37
x86 721.27 479.61
x86_64 692.61 446.85

Generated by 🚫 Danger

@lemnik lemnik merged commit 450e931 into next Mar 30, 2022
@lemnik lemnik deleted the PLAT_8247/fix-bugsnag-start-threading branch March 30, 2022 14:43
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.

3 participants