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 possible crash in the OOM bootstrapper #442

Merged
merged 3 commits into from
Apr 22, 2021

Conversation

imjoehaines
Copy link
Member

Goal

This PR fixes a possible crash in OomBootstrapper, which happens when Bugsnag is not in the DI container. This would typically only be in situations where the container that's being used doesn't contain every service, i.e. when running unit tests

I've added some simple tests that check specifically for this crash — the functionality of the OomBootstrapper is already tested with MazeRunner

This can happen when the DI container isn't totally setup, which is
very common when running unit tests

See #440
The OomBootstrapper is tested in our MazeRunner suite, so I've not
replicated that here as it'd take a fair amount of setup to get
running. Instead, these tests run the OomBootstrapper and will fail
if it crashes
@imjoehaines imjoehaines changed the base branch from master to next April 22, 2021 13:48
@imjoehaines imjoehaines merged commit ea1bec5 into next Apr 22, 2021
@imjoehaines imjoehaines deleted the fix-crash-in-oom-bootstrapper branch April 22, 2021 14:44
@imjoehaines imjoehaines mentioned this pull request Apr 28, 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