From f5f22cffbe0e82bab318404be1804ec798318c52 Mon Sep 17 00:00:00 2001 From: Alan Clucas Date: Sun, 21 May 2023 17:35:13 +0000 Subject: [PATCH] fix: Disable unreliable test (#11105) --- workflow/controller/operator_concurrency_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workflow/controller/operator_concurrency_test.go b/workflow/controller/operator_concurrency_test.go index 66f4940b4727..418d88d4cf6b 100644 --- a/workflow/controller/operator_concurrency_test.go +++ b/workflow/controller/operator_concurrency_test.go @@ -3,6 +3,7 @@ package controller import ( "context" "encoding/json" + "os" "strconv" "strings" "testing" @@ -903,6 +904,9 @@ func TestSynchronizationForPendingShuttingdownWfs(t *testing.T) { }) t.Run("PendingShuttingdownStoppingWf", func(t *testing.T) { + if githubActions, ok := os.LookupEnv(`GITHUB_ACTIONS`); ok && githubActions == "true" { + t.Skip("This test regularly fails in Github Actions CI") + } // Create and acquire the lock for the first workflow wf := wfv1.MustUnmarshalWorkflow(pendingWfWithShutdownStrategy) wf.Name = "one-stopping"