Skip to content

Commit

Permalink
Skip flaky tests (#7002)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdoherty4 authored Nov 9, 2023
1 parent ba2ee55 commit 4e9fecf
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/files/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func TestReaderReadFileHTTPSSuccess(t *testing.T) {
}

func TestReaderReadFileHTTPSProxySuccess(t *testing.T) {
t.Skip("Flaky test, needs work")
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/5775)")

g := NewWithT(t)
filePath := "testdata/file.yaml"
// It's important to use example.com because the certificate created for
Expand Down
6 changes: 6 additions & 0 deletions pkg/providers/cloudstack/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const (
)

func TestReconcilerReconcileSuccess(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6996)")

tt := newReconcilerTest(t)
// We want to check that the cluster status is cleaned up if validations are passed
tt.cluster.SetFailure(anywherev1.FailureReasonType("InvalidCluster"), "invalid cluster")
Expand Down Expand Up @@ -192,6 +194,8 @@ func TestReconcilerValidateMachineConfigFail(t *testing.T) {
}

func TestReconcilerControlPlaneIsNotReady(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/7000)")

tt := newReconcilerTest(t)

kcp := test.KubeadmControlPlane(func(kcp *controlplanev1.KubeadmControlPlane) {
Expand Down Expand Up @@ -234,6 +238,8 @@ func TestReconcilerControlPlaneIsNotReady(t *testing.T) {
}

func TestReconcileControlPlaneUnstackedEtcdSuccess(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/7001)")

tt := newReconcilerTest(t)
tt.cluster.Spec.ExternalEtcdConfiguration = &anywherev1.ExternalEtcdConfiguration{
Count: 1,
Expand Down
2 changes: 2 additions & 0 deletions pkg/providers/docker/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const (
)

func TestReconcilerReconcileSuccess(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6996)")

tt := newReconcilerTest(t)
logger := test.NewNullLogger()
kcp := test.KubeadmControlPlane(func(kcp *controlplanev1.KubeadmControlPlane) {
Expand Down
4 changes: 4 additions & 0 deletions pkg/providers/snow/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const (
)

func TestReconcilerReconcileSuccess(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6996)")

tt := newReconcilerTest(t)
// We want to check that the cluster status is cleaned up if validations are passed
tt.cluster.SetFailure(anywherev1.FailureReasonType("InvalidCluster"), "invalid cluster")
Expand Down Expand Up @@ -190,6 +192,8 @@ func TestReconcilerValidateMachineConfigsMachineConfigNotValidated(t *testing.T)
}

func TestReconcilerReconcileWorkers(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6999)")

tt := newReconcilerTest(t)
capiCluster := test.CAPICluster(func(c *clusterv1.Cluster) {
c.Name = tt.cluster.Name
Expand Down
6 changes: 6 additions & 0 deletions pkg/providers/tinkerbell/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func TestReconcilerGenerateSpec(t *testing.T) {
}

func TestReconcilerReconcileSuccess(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6996)")

tt := newReconcilerTest(t)

capiCluster := test.CAPICluster(func(c *clusterv1.Cluster) {
Expand Down Expand Up @@ -584,6 +586,8 @@ func TestReconcilerValidateHardwareCountRollingUpdateFail(t *testing.T) {
}

func TestReconcilerValidateHardwareScalingUpdateFail(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6997)")

tt := newReconcilerTest(t)
tt.createAllObjs()

Expand Down Expand Up @@ -715,6 +719,8 @@ func TestReconcilerDetectOperationK8sVersionUpgradeCPOnly(t *testing.T) {
}

func TestReconcilerDetectOperationK8sVersionUpgradeWorkerOnly(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6998)")

tt := newReconcilerTest(t)
tt.createAllObjs()

Expand Down
4 changes: 4 additions & 0 deletions pkg/providers/vsphere/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const (
)

func TestReconcilerReconcileSuccess(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/6996)")

tt := newReconcilerTest(t)
// We want to check that the cluster status is cleaned up if validations are passed
tt.cluster.SetFailure(anywherev1.FailureReasonType("InvalidCluster"), "invalid cluster")
Expand Down Expand Up @@ -184,6 +186,8 @@ func TestSetupEnvVars(t *testing.T) {
}

func TestReconcilerControlPlaneIsNotReady(t *testing.T) {
t.Skip("Flaky (https://github.com/aws/eks-anywhere/issues/7000)")

tt := newReconcilerTest(t)
kcp := test.KubeadmControlPlane(func(kcp *controlplanev1.KubeadmControlPlane) {
kcp.Name = tt.cluster.Name
Expand Down

0 comments on commit 4e9fecf

Please sign in to comment.