jjb: replace usage of `defaults` by `job-template`
[lttng-ci.git] / jobs / system-tests.yaml
1 ---
2 ## Anchors
3 - system_tests_parameters_defaults: &system_tests_parameters_defaults
4 name: 'system_tests_parameters_defaults'
5 parameters:
6 - string:
7 name: 'LTTNG_TOOLS_COMMIT_ID'
8 default: ''
9 description: 'The lttng-tools commit id to build.'
10 - string:
11 name: 'LTTNG_MODULES_COMMIT_ID'
12 default: ''
13 description: 'The lttng-modules commit id to build.'
14 - string:
15 name: 'LTTNG_UST_COMMIT_ID'
16 default: ''
17 description: 'The lttng-ust commit id to build.'
18 - string:
19 name: 'KERNEL_TAG_ID'
20 default: ''
21 description: 'The linux kernel git tag to build against.'
22 - string:
23 name: 'KERNEL_REPO'
24 default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git'
25 description: 'Linux kernel git repo to checkout the kernel id'
26 - string:
27 name: 'LTTNG_TOOLS_REPO'
28 default: 'https://github.com/lttng/lttng-tools.git'
29 description: 'LTTng-Tools git repo to checkout the tools id'
30 - string:
31 name: 'LTTNG_MODULES_REPO'
32 default: 'https://github.com/lttng/lttng-modules.git'
33 description: 'LTTng-Modules git repo to checkout the Modules id'
34 - string:
35 name: 'LTTNG_UST_REPO'
36 default: 'https://github.com/lttng/lttng-ust.git'
37 description: 'LTTng-UST git repo to checkout the UST id'
38
39 - publisher:
40 name: 'system_tests_email_ext_default'
41 publishers:
42 - email-ext:
43 recipients: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com'
44 reply-to: ci-notification@lists.lttng.org
45 always: false
46 unstable: false
47 first-failure: true
48 first-unstable: true
49 not-built: false
50 aborted: false
51 regression: false
52 failure: false
53 second-failure: false
54 improvement: false
55 still-failing: false
56 success: false
57 fixed: false
58 fixed-unhealthy: true
59 still-unstable: false
60 pre-build: false
61 matrix-trigger: only-parent
62 send-to:
63 - recipients
64
65 ## Templates
66 - job-template:
67 name: baremetal_benchmarks_k{kversion}_l{lttngversion}
68 description: |
69 Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations.
70 project-type: freestyle
71 node: 'amd64'
72
73 <<: *system_tests_parameters_defaults
74
75 properties:
76 - build-discarder:
77 num-to-keep: 10
78 - throttle:
79 max-total: 2
80 option: 'category'
81 categories:
82 - 'baremetal-tests'
83
84 wrappers:
85 - workspace-cleanup
86 - timestamps
87 - ansicolor
88 - credentials-binding:
89 - text:
90 credential-id: jenkins_lava_key
91 variable: LAVA_JENKINS_TOKEN
92 - text:
93 credential-id: jenkins_lava2_key
94 variable: LAVA2_JENKINS_TOKEN
95 - file:
96 credential-id: system_tests_storage_key
97 variable: identity_file
98 - inject:
99 properties-content: |
100 BUILD_DEVICE=baremetal
101 scm:
102 - git:
103 url: https://github.com/lttng/lttng-ci
104 basedir: src/lttng-ci/
105
106 builders:
107 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
108 - shell: !include-raw-escape: scripts/system-tests/inject-ssh-commands.sh
109 - trigger-builds:
110 - project: "build_kernel_PARAM"
111 property-file: 'properties.txt'
112 block: true
113 - inject:
114 properties-file: properties.txt
115 - shell: !include-raw-escape: scripts/system-tests/run-baremetal-benchmarks.sh
116 - shell: !include-raw-escape: scripts/system-tests/summarize-results.sh
117
118 publishers:
119 - archive:
120 artifacts: '*.png,*.csv'
121 stable: true
122 do-not-fingerprint: true
123 - image-gallery:
124 - gallery-type: archived-images-gallery
125 title: Results
126 includes: '*.png'
127 - workspace-cleanup
128
129 - job-template:
130 name: vm_tests_k{kversion}_l{lttngversion}
131 description: |
132 Runs root_regression and root_destructive_tests on a virtual machine over different combinations of kernel and lttng configurations.
133 project-type: freestyle
134 node: 'amd64'
135 <<: *system_tests_parameters_defaults
136
137 properties:
138 - build-discarder:
139 num-to-keep: 10
140 - throttle:
141 max-total: 4
142 option: 'category'
143 categories:
144 - 'kvm-tests'
145
146 wrappers:
147 - workspace-cleanup
148 - timestamps
149 - ansicolor
150 - credentials-binding:
151 - text:
152 credential-id: jenkins_lava_key
153 variable: LAVA_JENKINS_TOKEN
154 - text:
155 credential-id: jenkins_lava2_key
156 variable: LAVA2_JENKINS_TOKEN
157 - inject:
158 properties-content: |
159 BUILD_DEVICE=kvm
160
161 scm:
162 - git:
163 url: https://github.com/lttng/lttng-ci
164 basedir: src/lttng-ci/
165
166 builders:
167 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
168 - trigger-builds:
169 - project: "build_kernel_PARAM"
170 property-file: 'properties.txt'
171 block: true
172 - inject:
173 properties-file: properties.txt
174 - shell: !include-raw-escape: scripts/system-tests/run-kvm-tests.sh
175
176 publishers:
177 - workspace-cleanup
178
179 - job-template:
180 name: baremetal_tests_k{kversion}_l{lttngversion}
181 description: |
182 Runs perf_regression tests on a baremetal machine over different combinations of kernel and lttng configurations.
183 project-type: freestyle
184 node: 'amd64'
185
186 <<: *system_tests_parameters_defaults
187
188 properties:
189 - build-discarder:
190 num-to-keep: 10
191 - throttle:
192 max-total: 2
193 option: 'category'
194 categories:
195 - 'baremetal-tests'
196
197 wrappers:
198 - workspace-cleanup
199 - timestamps
200 - ansicolor
201 - credentials-binding:
202 - text:
203 credential-id: jenkins_lava_key
204 variable: LAVA_JENKINS_TOKEN
205 - text:
206 credential-id: jenkins_lava2_key
207 variable: LAVA2_JENKINS_TOKEN
208 - inject:
209 properties-content: |
210 BUILD_DEVICE=baremetal
211
212 scm:
213 - git:
214 url: https://github.com/lttng/lttng-ci
215 basedir: src/lttng-ci/
216
217 builders:
218 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
219 - trigger-builds:
220 - project: "build_kernel_PARAM"
221 property-file: 'properties.txt'
222 block: true
223 - inject:
224 properties-file: properties.txt
225 - shell: !include-raw-escape: scripts/system-tests/run-baremetal-tests.sh
226
227 publishers:
228 - workspace-cleanup
229
230 - job-template:
231 name: build_kernel_PARAM
232 description: |
233 Builds a Linux Kernel and LTTng Modules if necessary
234 concurrent: true
235 node: 'amd64'
236
237 parameters:
238 - string:
239 name: 'LTTNG_MODULES_COMMIT_ID'
240 description: 'The lttng-modules commmit to build.'
241 - string:
242 name: 'LTTNG_MODULES_REPO'
243 description: 'The LTTng Modules git repo to fetch from'
244 default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git'
245 - string:
246 name: 'KERNEL_COMMIT_ID'
247 description: 'The kernel commit to build.'
248 - string:
249 name: 'KGITREPO'
250 description: 'The kernel git repo to fetch from'
251 - string:
252 name: 'STORAGE_KERNEL_FOLDER'
253 description: 'Path to store the Kernel image'
254 - string:
255 name: 'STORAGE_KERNEL_IMAGE'
256 description: 'Path to store the Kernel IMAGE'
257 - string:
258 name: 'STORAGE_LINUX_MODULES'
259 description: 'Path to store the Kernel Modules'
260 - string:
261 name: 'STORAGE_LTTNG_MODULES'
262 description: 'Path to store the LTTng Modules'
263 - string:
264 name: 'BUILD_DEVICE'
265 description: 'The target device. (kvm or baremetal)'
266 - string:
267 name: 'S3_STORAGE_KERNEL_FOLDER'
268 description: 'Path to store the Kernel image'
269 - string:
270 name: 'S3_STORAGE_KERNEL_IMAGE'
271 description: 'Path to store the Kernel IMAGE'
272 - string:
273 name: 'S3_STORAGE_LINUX_MODULES'
274 description: 'Path to store the Kernel Modules'
275 - string:
276 name: 'S3_STORAGE_LTTNG_MODULES'
277 description: 'Path to store the LTTng Modules'
278
279 properties:
280 - build-discarder:
281 num-to-keep: 100
282
283 wrappers:
284 - workspace-cleanup
285 - timestamps
286 - ansicolor
287 - credentials-binding:
288 - file:
289 credential-id: system_tests_storage_key
290 variable: identity_file
291
292 scm:
293 - git:
294 url: https://github.com/lttng/lttng-ci
295 basedir: src/lttng-ci/
296 - git:
297 url : $LTTNG_MODULES_REPO
298 basedir: src/lttng-modules/
299 branches:
300 - $LTTNG_MODULES_COMMIT_ID
301
302 builders:
303 - shell: !include-raw-escape: scripts/system-tests/generate-properties-slave.sh
304 - inject:
305 properties-file: properties.txt
306 - shell: !include-raw-escape: scripts/system-tests/check-build-needs.sh
307 - conditional-step:
308 condition-kind: not
309 condition-operand:
310 condition-kind: file-exists
311 condition-filename: kernel-built.txt
312 condition-basedir: workspace
313 steps:
314 - shell: !include-raw-escape: scripts/system-tests/build-kernel.sh
315 - conditional-step:
316 condition-kind: not
317 condition-operand:
318 condition-kind: file-exists
319 condition-filename: modules-built.txt
320 condition-basedir: workspace
321 steps:
322 - shell: !include-raw-escape: scripts/system-tests/build-modules.sh
323
324 publishers:
325 - workspace-cleanup
326
327 - job-template:
328 name: system_ALL_{test_type}_trigger
329 description: |
330 This job will trigger the build of jobs when a new tag is push specific
331 tracked Linux branches and new commits on LTTng tracked branches
332
333 project-type: freestyle
334 node: 'master'
335 parameters:
336 - bool:
337 name: 'FORCE_JOB_RUN'
338 default: false
339 description: 'Force the child jobs to run'
340 - bool:
341 name: 'FORCE_FAILED_JOB_RUN'
342 default: false
343 description: 'Force the failed child jobs to run'
344
345 properties:
346 - build-discarder:
347 num-to-keep: 10
348
349 triggers:
350 - timed: "H 0 * * 1-5"
351
352 wrappers:
353 - timestamps
354 - ansicolor
355
356 builders:
357 - system-groovy:
358 command:
359 !include-raw-escape: scripts/system-tests/system-trigger.groovy
360
361 publishers:
362 - system_tests_email_ext_default
363
364 ## Project
365
366 # Canary jobs are made to confirm that the whole Lava pipeline is working.
367 # They are scheduled once a day always on the same (LTTng, Kernel) code. If any
368 # of those jobs fails, it means that there is an issue with the configuration
369
370 - project:
371 name: system-tests
372 kversion:
373 - canary
374 - master
375 - linux-4.4.y
376 - linux-4.9.y
377 - linux-4.14.y
378 - linux-4.19.y
379 - linux-5.0.y
380 - linux-5.1.y
381 lttngversion:
382 - canary
383 - master
384 - stable-2.9
385 - stable-2.10
386 - stable-2.11
387 - stable-2.12
388 jobs:
389 - 'vm_tests_k{kversion}_l{lttngversion}'
390 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}'
391 - 'baremetal_tests_k{kversion}_l{lttngversion}'
392 - project:
393 name: system-tests-vm-only
394 kversion:
395 - linux-3.18.y
396 lttngversion:
397 - master
398 - stable-2.9
399 - stable-2.10
400 - stable-2.11
401 - stable-2.12
402 jobs:
403 - 'vm_tests_k{kversion}_l{lttngversion}'
404
405 - project:
406 name: system-general
407 test_type:
408 - vm_tests
409 - baremetal_tests
410 - baremetal_benchmarks
411 jobs:
412 - 'build_kernel_PARAM'
413 - 'system_ALL_{test_type}_trigger'
This page took 0.038458 seconds and 5 git commands to generate.