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 tctl test timeouts #24101

Merged
merged 10 commits into from
Apr 6, 2023
Merged

Fix tctl test timeouts #24101

merged 10 commits into from
Apr 6, 2023

Conversation

r0mant
Copy link
Collaborator

@r0mant r0mant commented Apr 5, 2023

Fixes #24100 and fixes #24005.

After a bunch of attempts and log investigations, I came to conclusion that there may be some race between auth and proxy startup and shutdown if it happens very quickly (as it does in tests).

I used flaky tests detector to troubleshoot my "guinea pig" test (TestAppResource) and it failed every single time (see the history of my attempts below lol). After adding the wait for the proxy init event the flakiness check hasn't failed once on it (after 5-6 retries).

@r0mant r0mant changed the title Enable verbose logging in unit tests Fix tctl test timeouts Apr 6, 2023
@r0mant r0mant marked this pull request as ready for review April 6, 2023 01:57
@github-actions github-actions bot added size/sm tctl tctl - Teleport admin tool labels Apr 6, 2023
@github-actions github-actions bot requested review from greedy52 and smallinsky April 6, 2023 01:58
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from greedy52 April 6, 2023 08:12
@r0mant r0mant added this pull request to the merge queue Apr 6, 2023
Merged via the queue into master with commit 2370355 Apr 6, 2023
@r0mant r0mant deleted the roman/apptest branch April 6, 2023 15:05
@public-teleport-github-review-bot

@r0mant See the table below for backport results.

Branch Result
branch/v10 Failed
branch/v11 Failed
branch/v12 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/sm tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestAppResource and other tctl tests are timing out TestCreateLock flakiness
3 participants