From 18252d4ce7e5dbbc5f1f5ce426cfe61ad7d5c793 Mon Sep 17 00:00:00 2001 From: Michael Armijo Date: Fri, 14 Jul 2023 16:38:57 -0400 Subject: [PATCH] utils: snooze kola-openstack for all streams Snooze the job on all streams for the remainder of July while we investigate https://github.com/coreos/fedora-coreos-pipeline/issues/889 --- utils.groovy | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/utils.groovy b/utils.groovy index 1eb69c983..23b289746 100644 --- a/utils.groovy +++ b/utils.groovy @@ -498,12 +498,18 @@ def run_cloud_tests(pipecfg, stream, version, cosa, basearch, commit) { testruns['Kola:GCP'] = { build job: 'kola-gcp', wait: false, parameters: params } } - // Kick off the Kola OpenStack job if we have an artifact, credentials, and testing is enabled. - if (shwrapCapture("cosa meta --build=${version} --get-value images.openstack") != "None" && - cloud_testing_enabled_for_arch(pipecfg, 'openstack', basearch) && - utils.credentialsExist([file(variable: 'OPENSTACK_KOLA_TESTS_CONFIG', - credentialsId: 'openstack-kola-tests-config')])) { - testruns['Kola:OpenStack'] = { build job: 'kola-openstack', wait: false, parameters: params } + // snooze kola-openstack tests on all streams for the month of July. + // See: https://github.com/coreos/fedora-coreos-pipeline/issues/889 + def now = Calendar.instance + def month = now.get(Calendar.MONTH) + if (month != Calendar.JULY) { + // Kick off the Kola OpenStack job if we have an artifact, credentials, and testing is enabled. + if (shwrapCapture("cosa meta --build=${version} --get-value images.openstack") != "None" && + cloud_testing_enabled_for_arch(pipecfg, 'openstack', basearch) && + utils.credentialsExist([file(variable: 'OPENSTACK_KOLA_TESTS_CONFIG', + credentialsId: 'openstack-kola-tests-config')])) { + testruns['Kola:OpenStack'] = { build job: 'kola-openstack', wait: false, parameters: params } + } } // Now run the kickoff jobs in parallel. These take little time