Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils: snooze kola-openstack for all streams #890

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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