Skip to content

Commit dc58259

Browse files
marmijojlebon
authored andcommitted
jobs/build: add support for stream level skip_kola_tags knob
Kola can now support skipping kola tags per stream[1]. Add support for that here by modifying each Jenkins job to pass the list of kola tags to skip to the kola function. [1]: coreos/coreos-ci-lib#159 See: #1002
1 parent d32282f commit dc58259

10 files changed

+22
-7
lines changed

docs/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ streams:
9696
COSA_USE_OSBUILD: true
9797
# OPTIONAL: require kernel + kernel-rt versions to match
9898
check_kernel_rt_mismatch_rhcos: true
99+
# OPTIONAL: list of kola tags to skip for this stream
100+
skip_kola_tags: [openshift, needs-internet, luks]
99101

100102
# REQUIRED: architectures to build for other than x86_64
101103
additional_arches: [aarch64, ppc64le, s390x]

jobs/build-arch.Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ lock(resource: "build-${params.STREAM}-${basearch}") {
305305
kola(cosaDir: env.WORKSPACE, parallel: n, arch: basearch,
306306
skipUpgrade: pipecfg.hacks?.skip_upgrade_tests,
307307
allowUpgradeFail: params.ALLOW_KOLA_UPGRADE_FAILURE,
308-
skipSecureBoot: pipecfg.hotfix?.skip_secureboot_tests_hack)
308+
skipSecureBoot: pipecfg.hotfix?.skip_secureboot_tests_hack,
309+
skipKolaTags: stream_info.skip_kola_tags)
309310
}
310311

311312
// Build the remaining artifacts

jobs/build.Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ lock(resource: "build-${params.STREAM}") {
374374
kola(cosaDir: env.WORKSPACE, parallel: n, arch: basearch,
375375
skipUpgrade: pipecfg.hacks?.skip_upgrade_tests,
376376
allowUpgradeFail: params.ALLOW_KOLA_UPGRADE_FAILURE,
377-
skipSecureBoot: pipecfg.hotfix?.skip_secureboot_tests_hack)
377+
skipSecureBoot: pipecfg.hotfix?.skip_secureboot_tests_hack,
378+
skipKolaTags: stream_info.skip_kola_tags)
378379
}
379380

380381
// If desired let's go ahead and archive+fork the multi-arch jobs

jobs/bump-lockfile.Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ lock(resource: "bump-lockfile") {
220220
}
221221
def n = ncpus - 1 // remove 1 for upgrade test
222222
kola(cosaDir: env.WORKSPACE, parallel: n, arch: arch,
223-
marker: arch, allowUpgradeFail: params.ALLOW_KOLA_UPGRADE_FAILURE)
223+
marker: arch, allowUpgradeFail: params.ALLOW_KOLA_UPGRADE_FAILURE,
224+
skipKolaTags: stream_info.skip_kola_tags)
224225
stage("${arch}:Build Metal") {
225226
shwrap("cosa buildextend-metal")
226227
shwrap("cosa buildextend-metal4k")

jobs/kola-aws.Jenkinsfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ cosaPod(memory: "512Mi", kvm: false,
7878
build: params.VERSION, arch: params.ARCH,
7979
extraArgs: params.KOLA_TESTS,
8080
skipBasicScenarios: true,
81-
platformArgs: '-p=aws --aws-region=us-east-1')
81+
platformArgs: '-p=aws --aws-region=us-east-1',
82+
skipKolaTags: stream_info.skip_kola_tags)
8283
}
8384

8485
if (params.ARCH == "x86_64") {
@@ -102,7 +103,8 @@ cosaPod(memory: "512Mi", kvm: false,
102103
extraArgs: xen_tests,
103104
skipUpgrade: true,
104105
marker: "xen",
105-
platformArgs: '-p=aws --aws-region=us-east-1 --aws-type=i3.large')
106+
platformArgs: '-p=aws --aws-region=us-east-1 --aws-type=i3.large',
107+
skipKolaTags: stream_info.skip_kola_tags)
106108
}
107109
parallelruns['Kola:Intel-Ice-Lake'] = {
108110
// https://github.com/coreos/fedora-coreos-tracker/issues/1004
@@ -111,7 +113,8 @@ cosaPod(memory: "512Mi", kvm: false,
111113
extraArgs: tests,
112114
skipUpgrade: true,
113115
marker: "intel-ice-lake",
114-
platformArgs: '-p=aws --aws-region=us-east-1 --aws-type=m6i.large')
116+
platformArgs: '-p=aws --aws-region=us-east-1 --aws-type=m6i.large',
117+
skipKolaTags: stream_info.skip_kola_tags)
115118
}
116119
} else if (params.ARCH == "aarch64") {
117120
def tests = params.KOLA_TESTS
@@ -125,7 +128,8 @@ cosaPod(memory: "512Mi", kvm: false,
125128
extraArgs: tests,
126129
skipUpgrade: true,
127130
marker: "graviton3",
128-
platformArgs: '-p=aws --aws-region=us-east-1 --aws-type=c7g.xlarge')
131+
platformArgs: '-p=aws --aws-region=us-east-1 --aws-type=c7g.xlarge',
132+
skipKolaTags: stream_info.skip_kola_tags)
129133
}
130134
}
131135

jobs/kola-azure.Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ cosaPod(memory: "${cosa_memory_request_mb}Mi", kvm: false,
135135
build: params.VERSION, arch: params.ARCH,
136136
extraArgs: params.KOLA_TESTS,
137137
skipUpgrade: true,
138+
skipKolaTags: stream_info.skip_kola_tags,
138139
platformArgs: """-p=azure \
139140
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
140141
--azure-location $region \

jobs/kola-gcp.Jenkinsfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ cosaPod(memory: "512Mi", kvm: false,
7878
kola(cosaDir: env.WORKSPACE, parallel: 5,
7979
build: params.VERSION, arch: params.ARCH,
8080
extraArgs: params.KOLA_TESTS,
81+
skipKolaTags: stream_info.skip_kola_tags,
8182
platformArgs: """-p=gcp \
8283
--gcp-json-key=\${GCP_KOLA_TESTS_CONFIG} \
8384
--gcp-project=${gcp_project}""")
@@ -97,6 +98,7 @@ cosaPod(memory: "512Mi", kvm: false,
9798
build: params.VERSION, arch: params.ARCH,
9899
extraArgs: confidential_tests,
99100
skipUpgrade: true,
101+
skipKolaTags: stream_info.skip_kola_tags,
100102
marker: "confidential",
101103
platformArgs: """-p=gcp \
102104
--gcp-json-key=\${GCP_KOLA_TESTS_CONFIG} \

jobs/kola-kubernetes.Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ cosaPod(memory: "512Mi", kvm: false,
7272
build: params.VERSION, arch: params.ARCH,
7373
extraArgs: "--tag k8s",
7474
skipUpgrade: true,
75+
skipKolaTags: stream_info.skip_kola_tags,
7576
platformArgs: '-p=aws --aws-region=us-east-1')
7677
}
7778

jobs/kola-openstack.Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ lock(resource: "kola-openstack-${params.ARCH}") {
119119
extraArgs: params.KOLA_TESTS,
120120
rerunSuccessArgs: "tags=all",
121121
skipUpgrade: true,
122+
skipKolaTags: stream_info.skip_kola_tags,
122123
platformArgs: """-p=openstack \
123124
--openstack-config-file=\${OPENSTACK_KOLA_TESTS_CONFIG} \
124125
--openstack-flavor=v3-starter-4 \

jobs/kola-upgrade.Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ EOF
186186
extraArgs: "--tag extended-upgrade --append-butane tmp/target_stream.bu",
187187
skipBasicScenarios: true,
188188
skipUpgrade: true,
189+
skipKolaTags: pipecfg.streams[params.STREAM].skip_kola_tags,
189190
]
190191
def k1, k2, k3
191192

0 commit comments

Comments
 (0)