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

Attempt to deflake TestDynamicClientReuse #49050

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Nov 15, 2024

The test was only waiting for a subset of services to be ready, proceeding with the test, and then closing the process. This caused a few problems that contributed to the flakiness. First, not calling process.Wait resulted in some services still being active and writing to the data directory while the testing framework was cleaning up the temp directory. Second, adding the Wait alone, would cause deadlocks because the test did not wait for all services to be initialized and ready before shutting down.

In addition to making both of the changes above, the test was also modified to reduce the number of services being launched to slightly speed up the test.

Closes #46958.

@gravitational gravitational deleted a comment from aws-amplify-us-west-2 bot Nov 15, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-49050.d3pp5qlev8mo18.amplifyapp.com

The test was only waiting for a subset of services to be ready,
proceeding with the test, and then closing the process. This caused
a few problems that contributed to the flakiness. First, not calling
`process.Wait` resulted in some services still being active and
writing to the data directory while the testing framework was cleaning
up the temp directory. Second, adding the Wait alone, would cause
deadlocks because the test did not wait for all services to be
initialized and ready before shutting down.

In addition to making both of th changes above, the test was also
modified to reduce the number of services being launched to slightly
speed up the test.

Closes #46958.
@rosstimothy rosstimothy force-pushed the tross/TestDynamicClientReuse branch from dbf0e39 to a6da504 Compare November 15, 2024 15:44
@rosstimothy rosstimothy added this pull request to the merge queue Nov 15, 2024
Merged via the queue into master with commit 5ff37d2 Nov 15, 2024
44 of 45 checks passed
@rosstimothy rosstimothy deleted the tross/TestDynamicClientReuse branch November 15, 2024 17:59
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

Branch Result
branch/v14 Create PR
branch/v15 Create PR
branch/v16 Create PR
branch/v17 Create PR

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.

TestDynamicClientReuse flakiness
3 participants