Fix tsh/common test timeout by sharing kube cluster fixtures - #69625
Draft
jakealti wants to merge 5 commits into
Draft
Fix tsh/common test timeout by sharing kube cluster fixtures#69625jakealti wants to merge 5 commits into
jakealti wants to merge 5 commits into
Conversation
jakealti
force-pushed
the
jakealti/fix-tsh-test-timeout
branch
from
August 14, 2026 01:47
3cf0fac to
64d72d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The tests in
tool/tsh/commonwere timing out in CI.When a test changes, CI runs it 100 times to check for flakiness, and that job has
a 10 minute limit.
TestKubeandTestKubeLoginstart three Teleport clustersbetween them, and they did it on every one of the 100 runs.
Now the clusters are started once and reused. That in turn made every run share
one proxy, which then hit the rate limit on
/webapi/ping/:connector, so theproxy also takes an optional rate limiter config that the fixture sets to empty.
When the field is nil the proxy behaves exactly as before.
The flaky test job used to time out at 10 minutes. It now finishes in 136s.
Each commit stands on its own, so this is easier to review commit by commit.