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 flaky test TestTSHConfigConnectWithOpenSSHClient #35861

Merged

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Dec 18, 2023

Closes #13623

@github-actions github-actions bot requested review from avatus and greedy52 December 18, 2023 19:53
@github-actions github-actions bot added size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Dec 18, 2023
Copy link

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@Joerger Joerger added the no-changelog Indicates that a PR does not require a changelog entry label Dec 18, 2023
tool/tsh/common/proxy_test.go Outdated Show resolved Hide resolved
@Joerger Joerger requested a review from zmb3 December 19, 2023 20:16
tool/tsh/common/proxy_test.go Show resolved Hide resolved
assert.NoError(t, err)

for _, e := range es {
if e.GetCode() == events.AuthAttemptFailureCode && e.(*apievents.AuthAttempt).Login == nodeLogin {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The semantics here are slightly different than what we had before - is this intentional?

Before, if there was an AuthAttempt failure, the test would fail if the login was incorrect.

After, we just ignore these events if the login is incorrect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, fixed

@Joerger Joerger disabled auto-merge December 21, 2023 03:19
@Joerger Joerger requested a review from zmb3 December 21, 2023 03:23
@zmb3 zmb3 enabled auto-merge December 23, 2023 16:21
@zmb3 zmb3 added this pull request to the merge queue Dec 23, 2023
Merged via the queue into master with commit 781c870 Dec 23, 2023
33 checks passed
@zmb3 zmb3 deleted the joerger/fix-flaky-test-TestTSHConfigConnectWithOpenSSHClient branch December 23, 2023 16:40
@public-teleport-github-review-bot

@Joerger See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Create PR
branch/v14 Create PR

@nklaassen
Copy link
Contributor

I went ahead and opened the backports since Brian is still OOO and I just hit this on branch/v14

github-merge-queue bot pushed a commit that referenced this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v13 backport/branch/v14 no-changelog Indicates that a PR does not require a changelog entry size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestTSHConfigConnectWithOpenSSHClient flakiness
5 participants