From 31c2ed4e070601460a3d8f5471bcf7c6250d63bd Mon Sep 17 00:00:00 2001 From: Tanna McClure Date: Thu, 16 Jan 2025 12:06:53 -0600 Subject: [PATCH 1/2] only run special CI when on CI, not local --- test/helpers/misc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/misc.rb b/test/helpers/misc.rb index 16a1d14945..35d6edd70e 100644 --- a/test/helpers/misc.rb +++ b/test/helpers/misc.rb @@ -135,7 +135,7 @@ def skip_unless_ci_cron # special CI context. When in a local dev context or in a special CI context, # permit the test(s) to run. def skip_unless_special_ci - return if ENV.fetch('CI', nil).nil? || ENV.fetch('SPECIAL_CI', nil) + return if ENV.fetch('SPECIAL_CI', nil) skip 'This test only runs as part of the special CI workflow' end From 8e34584d90e78cdbb6df194acc4e91c76242dd9c Mon Sep 17 00:00:00 2001 From: Tanna McClure Date: Thu, 16 Jan 2025 12:11:07 -0600 Subject: [PATCH 2/2] fix comment --- test/helpers/misc.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/helpers/misc.rb b/test/helpers/misc.rb index 35d6edd70e..4571dfee22 100644 --- a/test/helpers/misc.rb +++ b/test/helpers/misc.rb @@ -131,9 +131,7 @@ def skip_unless_ci_cron skip 'This test only runs as part of the CI cron workflow' end -# If in a CI (non local dev) context, skip unless operating within the -# special CI context. When in a local dev context or in a special CI context, -# permit the test(s) to run. +# skip unless operating within the special CI context def skip_unless_special_ci return if ENV.fetch('SPECIAL_CI', nil)