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

BackgroundHelper: avoid leaking threads #475

Merged
merged 3 commits into from
Feb 13, 2023

Conversation

casperisfine
Copy link
Contributor

@casperisfine casperisfine commented Feb 13, 2023

Closes: #471

Many test cases would define teardown without calling super so we were never killing threads...

It's better to use before_teardown anyway, and it's less popular so less likely to be overriden without a super.

This is very likely to be the cause of the crash we've seen at https://github.com/Shopify/semian/actions/runs/4122969863/jobs/7120418231

Co-Authored-By: @adrianna-chang-shopify

@adrianna-chang-shopify adrianna-chang-shopify force-pushed the avoid-leaking-threads branch 2 times, most recently from 25a9030 to 798071a Compare February 13, 2023 16:45
Many test cases would define `teardown` without calling super
so we were never killing threads...

It's better to use `before_teardown` anyway, and it's less popular
so less likely to be overriden without a super.

This is very likely to be the cause of the crash we've seen
at https://github.com/Shopify/semian/actions/runs/4122969863/jobs/7120418231

Co-Authored-By: Adrianna Chang <adrianna.chang@shopify.com>
@adrianna-chang-shopify adrianna-chang-shopify merged commit 154f31b into master Feb 13, 2023
@adrianna-chang-shopify adrianna-chang-shopify deleted the avoid-leaking-threads branch February 13, 2023 20:09
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.

Investigate in Segmetation fault for AR Trilogy
4 participants