Skip to content

Prevent flakiness in TestKube/Join#61693

Merged
rosstimothy merged 1 commit intomasterfrom
tross/test_kube_join
Nov 22, 2025
Merged

Prevent flakiness in TestKube/Join#61693
rosstimothy merged 1 commit intomasterfrom
tross/test_kube_join

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

The test was reliant on all the output of a session being replicated to all parties before a 5s timer closed the session. To make the test more resiliant it was rewritten such that it validates the expected output from one of the parties output, then exits the session, then when all parties have been closed, it examines the entire output of the other parties to validate their output.

Fixes #55044

The test was reliant on all the output of a session being
replicated to all parties before a 5s timer closed the session.
To make the test more resiliant it was rewritten such that
it validates the expected output from one of the parties output,
then exits the session, then when all parties have been closed,
it examines the entire output of the other parties to validate
their output.

Fixes #55044
@rosstimothy rosstimothy added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v17 backport/branch/v18 labels Nov 21, 2025
}
}

func waitForOutput(ctx context.Context, r ReaderWithDeadline, expected string) error {
Copy link
Copy Markdown
Contributor Author

@rosstimothy rosstimothy Nov 21, 2025

Choose a reason for hiding this comment

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

This was taken from lib/web/apiserver_test.go with a slight modification.

@rosstimothy rosstimothy marked this pull request as ready for review November 22, 2025 00:20
@github-actions github-actions bot requested review from kshi36 and ravicious November 22, 2025 00:20
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from ravicious November 22, 2025 14:59
@rosstimothy rosstimothy added this pull request to the merge queue Nov 22, 2025
Merged via the queue into master with commit fdbd386 Nov 22, 2025
52 of 54 checks passed
@rosstimothy rosstimothy deleted the tross/test_kube_join branch November 22, 2025 16:54
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@rosstimothy See the table below for backport results.

Branch Result
branch/v17 Create PR
branch/v18 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v17 backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestKube/Join flakiness

3 participants