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

[Flaky test] terminate background thread #90

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

bmansoob
Copy link
Contributor

@bmansoob bmansoob commented Sep 19, 2023

This was a tricky one.

If AppProfiler::Storage::GoogleCloudStorageTest#test_process_queue_thread_is_alive_after_first_upload is the first test which runs in AppProfiler::Storage::GoogleCloudStorageTest and AppProfiler::MiddlewareTest#test_profiles_are_not_uploaded_synchronously_when_async_is_requested ran previously,
then this will fail:

Queue and the thread gets reset in GoogleCloudStorageTest#teardown, but I forgot to do in MiddlewareTest.

@bmansoob bmansoob force-pushed the flaky-test-reset-queue branch from 6bb2e4d to 74afcb3 Compare September 19, 2023 16:44
@bmansoob bmansoob requested a review from dalehamel September 19, 2023 16:44
Copy link
Member

@dalehamel dalehamel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for digging in and maintaining the stability of the test suite

@bmansoob bmansoob merged commit 2b34936 into main Sep 19, 2023
@bmansoob bmansoob deleted the flaky-test-reset-queue branch September 19, 2023 16:51
@shopify-shipit shopify-shipit bot temporarily deployed to production September 20, 2023 09:33 Inactive
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.

2 participants