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 d646c11
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -498,18 +498,24 @@ 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 }
}

// Now run the kickoff jobs in parallel. These take little time
// so there isn't much benefit in running them in parallel, but it
// makes the UI view have less columns, which is useful.
parallel testruns
// 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
// so there isn't much benefit in running them in parallel, but it
// makes the UI view have less columns, which is useful.
parallel testruns
}

// Runs followup upgrade tests based on conditions
Expand Down

0 comments on commit d646c11

Please sign in to comment.