Skip to content

Fix tool.tsh.common.TestKube/list_kube flaky test#29993

Merged
tigrato merged 1 commit intomasterfrom
tigrato/fix-flaky-kube-test
Aug 3, 2023
Merged

Fix tool.tsh.common.TestKube/list_kube flaky test#29993
tigrato merged 1 commit intomasterfrom
tigrato/fix-flaky-kube-test

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Aug 3, 2023

Tests under tool.tsh.common.TestKube/list_kube were picking the leftovers of another test which defined the $HONE/.kube/config file. This caused the test to be flaky because depending on the tests runnning order, some kube clusters appeared as selected when running tsh kube ls.

@github-actions github-actions Bot added size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Aug 3, 2023
Copy link
Copy Markdown
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

Comment thread tool/tsh/common/proxy_test.go Outdated
@codingllama
Copy link
Copy Markdown
Contributor

Should we backport this too?

@tigrato tigrato enabled auto-merge August 3, 2023 19:22
Tests under `tool.tsh.common.TestKube/list_kube` were picking the leftovers of another test which defined the `$HONE/.kube/config` file. This caused the test to be flaky because depending on the tests runnning order, some kube clusters appeared as selected when running `tsh kube ls`.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato force-pushed the tigrato/fix-flaky-kube-test branch from c19db9c to f596040 Compare August 3, 2023 19:41
@tigrato tigrato added this pull request to the merge queue Aug 3, 2023
Merged via the queue into master with commit f31ef3f Aug 3, 2023
@tigrato tigrato deleted the tigrato/fix-flaky-kube-test branch August 3, 2023 20:14
@public-teleport-github-review-bot
Copy link
Copy Markdown

@tigrato See the table below for backport results.

Branch Result
branch/v11 Create PR
branch/v12 Create PR
branch/v13 Create PR

tigrato added a commit that referenced this pull request Aug 4, 2023
PR #29993 tried to deflake this test but only fixed it partially during
login.
This prevents the kubeconfig in `$HOME/.kube/config` to be used
everywhere

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato mentioned this pull request Aug 4, 2023
github-merge-queue Bot pushed a commit that referenced this pull request Aug 4, 2023
* Deflake `TestListKube`

PR #29993 tried to deflake this test but only fixed it partially during
login.
This prevents the kubeconfig in `$HOME/.kube/config` to be used
everywhere

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* Plumbing through custom kube config path

* Update kube.go

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: Trent Clarke <trent@goteleport.com>
GavinFrazar pushed a commit that referenced this pull request Sep 16, 2023
backports #30024 to branch/v13.

* Deflake `TestListKube`
* Plumbing through custom kube config path

PR #29993 tried to deflake this test but only fixed it partially during
login.
This prevents the kubeconfig in `$HOME/.kube/config` to be used
everywhere
GavinFrazar pushed a commit that referenced this pull request Sep 18, 2023
backports #30024 to branch/v13.

* Deflake `TestListKube`
* Plumbing through custom kube config path

PR #29993 tried to deflake this test but only fixed it partially during
login.
This prevents the kubeconfig in `$HOME/.kube/config` to be used
everywhere
github-merge-queue Bot pushed a commit that referenced this pull request Sep 18, 2023
backports #30024 to branch/v13.

* Deflake `TestListKube`
* Plumbing through custom kube config path

PR #29993 tried to deflake this test but only fixed it partially during
login.
This prevents the kubeconfig in `$HOME/.kube/config` to be used
everywhere

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
github-merge-queue Bot pushed a commit that referenced this pull request Sep 18, 2023
#32083)

* [v13] Deflake `TestListKube`

backports #30024 to branch/v13.

* Deflake `TestListKube`
* Plumbing through custom kube config path

PR #29993 tried to deflake this test but only fixed it partially during
login.
This prevents the kubeconfig in `$HOME/.kube/config` to be used
everywhere

* [v13] handle discovery renaming when listing resource in `tctl` text format

backports #29887 to branch/v13.

* display discovered resource name in tctl output
* display the discovered name from label in non-verbose text format for
  db, db_server, kube_cluster, kube_server resources.
* support labels, predicate, search in tctl kube ls
* avoid type conversion in tctl db ls
* sort kube and db objects in tctl text tables
* test kube/database collection text format output
* check column indices are in range

---------

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants