From 1f301abb46618b8b19cc3538f6f8782efdb8ac25 Mon Sep 17 00:00:00 2001 From: Al Berez Date: Tue, 21 May 2024 23:28:39 +0000 Subject: [PATCH] Retry flaky ssh test on mac worker - Simplified CLI SSH Suit execution to run togetheer with other non-plugin tests https://onsi.github.io/ginkgo/#repeating-spec-runs-and-managing-flaky-specs --- Makefile | 6 ++---- util/clissh/ssh_test.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 5350c48500b..2566efea2fa 100644 --- a/Makefile +++ b/Makefile @@ -206,15 +206,13 @@ units-non-plugin: install-test-deps @rm -f $(wildcard fixtures/plugins/*.exe) @ginkgo version CF_HOME=$(CURDIR)/fixtures CF_USERNAME="" CF_PASSWORD="" $(ginkgo_units) \ - -skip-package integration,cf\ssh,plugin,cf\actors\plugin,cf\commands\plugin,cf\actors\plugin,util\randomword - CF_HOME=$(CURDIR)/fixtures $(ginkgo_units) -flake-attempts 3 cf/ssh + -skip-package integration,plugin,cf\actors\plugin,cf\commands\plugin,cf\actors\plugin,util\randomword else units-non-plugin: install-test-deps @rm -f $(wildcard fixtures/plugins/*.exe) @ginkgo version CF_HOME=$(CURDIR)/fixtures CF_USERNAME="" CF_PASSWORD="" $(ginkgo_units) \ - -skip-package integration,cf/ssh,plugin,cf/actors/plugin,cf/commands/plugin,cf/actors/plugin,util/randomword - CF_HOME=$(CURDIR)/fixtures $(ginkgo_units) -flake-attempts 3 cf/ssh + -skip-package integration,plugin,cf/actors/plugin,cf/commands/plugin,cf/actors/plugin,util/randomword endif units-full: build units-plugin units-non-plugin diff --git a/util/clissh/ssh_test.go b/util/clissh/ssh_test.go index 2074aa42860..5b7a2a7c2a9 100644 --- a/util/clissh/ssh_test.go +++ b/util/clissh/ssh_test.go @@ -50,7 +50,7 @@ func BlockAcceptOnClose(fake *fake_net.FakeListener) { } } -var _ = Describe("CLI SSH", Serial, func() { +var _ = Describe("CLI SSH", Serial, FlakeAttempts(9), func() { var ( fakeSecureDialer *clisshfakes.FakeSecureDialer fakeSecureClient *clisshfakes.FakeSecureClient