Skip to content

Commit

Permalink
utils: snooze kola-openstack for all streams
Browse files Browse the repository at this point in the history
Snooze the job on all streams for the remainder of July while we
investigate coreos#889
  • Loading branch information
marmijo committed Jul 14, 2023
1 parent 4e93180 commit 18252d4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18252d4

Please sign in to comment.