Commit | Line | Data |
---|---|---|
a2a6063c | 1 | - defaults: |
1ac7fa2c | 2 | name: baremetal_benchmarks |
95326029 FD |
3 | description: | |
4 | Runs baremetal kernel tests over different combination of kernel and lttng configurations. | |
a2a6063c | 5 | |
95326029 FD |
6 | triggers: |
7 | - pollscm: | |
8 | cron: "@hourly" | |
1ac7fa2c FD |
9 | logrotate: |
10 | numToKeep: 10 | |
95326029 | 11 | |
95326029 FD |
12 | properties: |
13 | - throttle: | |
14 | max-total: 2 | |
15 | option: 'category' | |
16 | categories: | |
1ac7fa2c | 17 | - 'baremetal-tests' |
a2a6063c | 18 | project-type: freestyle |
a672e5fd | 19 | node: 'x86-64' |
95326029 FD |
20 | wrappers: |
21 | - workspace-cleanup | |
22 | - timestamps | |
23 | - ansicolor | |
24 | - credentials-binding: | |
25 | - text: | |
26 | credential-id: jenkins_lava_key | |
30003819 | 27 | variable: LAVA_JENKINS_TOKEN |
95326029 FD |
28 | - inject: |
29 | properties-content: | | |
30 | TOOLS_BRANCH={lttngversion} | |
31 | UST_BRANCH={lttngversion} | |
1ac7fa2c | 32 | BUILD_DEVICE=baremetal |
95326029 | 33 | publishers: |
104ed94b FD |
34 | - archive: |
35 | artifacts: '*.png,*.csv' | |
36 | stable: true | |
37 | do-not-fingerprint: true | |
95326029 FD |
38 | - email: |
39 | recipients: 'francis.deslauriers@efficios.com' | |
104ed94b FD |
40 | - image-gallery: |
41 | - gallery-type: archived-images-gallery | |
42 | title: Results | |
43 | includes: '*.png' | |
62c50903 | 44 | - workspace-cleanup |
a2a6063c FD |
45 | scm: |
46 | - git: | |
47 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
48 | branches: | |
49 | - "{lttngversion}" | |
50 | shallow-clone: true | |
51 | skip-tag: true | |
52 | fastpoll: true | |
53 | basedir: src/lttng-tools | |
54 | - git: | |
55 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
56 | branches: | |
57 | - "{lttngversion}" | |
58 | shallow-clone: true | |
59 | skip-tag: true | |
60 | fastpoll: true | |
61 | basedir: src/lttng-modules | |
62 | - git: | |
63 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
64 | branches: | |
65 | - "{kversion}" | |
66 | shallow-clone: true | |
67 | skip-tag: true | |
68 | fastpoll: true | |
69 | basedir: src/linux | |
70 | ||
95326029 FD |
71 | builders: |
72 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh | |
73 | - trigger-builds: | |
74 | - project: "build_kernel_PARAM" | |
75 | property-file: 'properties.txt' | |
76 | block: true | |
77 | - inject: | |
78 | properties-file: properties.txt | |
1ac7fa2c | 79 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh |
b87dc589 | 80 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/summarize-results.sh |
1ac7fa2c | 81 | |
95326029 | 82 | - defaults: |
48ddcc03 | 83 | name: vm_tests |
95326029 | 84 | description: | |
1ac7fa2c FD |
85 | Runs baremetal kernel tests over different combination of kernel and lttng configurations. |
86 | project-type: freestyle | |
87 | node: 'master' | |
88 | properties: | |
89 | - throttle: | |
90 | max-total: 2 | |
91 | option: 'category' | |
92 | categories: | |
93 | - 'kvm-tests' | |
a2a6063c FD |
94 | triggers: |
95 | - pollscm: | |
96 | cron: "@hourly" | |
1ac7fa2c FD |
97 | logrotate: |
98 | numToKeep: 10 | |
a2a6063c | 99 | |
1ac7fa2c FD |
100 | wrappers: |
101 | - workspace-cleanup | |
102 | - timestamps | |
103 | - ansicolor | |
104 | - credentials-binding: | |
105 | - text: | |
106 | credential-id: jenkins_lava_key | |
30003819 | 107 | variable: LAVA_JENKINS_TOKEN |
1ac7fa2c FD |
108 | - inject: |
109 | properties-content: | | |
110 | BUILD_DEVICE=kvm | |
111 | TOOLS_BRANCH={lttngversion} | |
112 | UST_BRANCH={lttngversion} | |
113 | scm: | |
114 | - git: | |
115 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
116 | branches: | |
117 | - "{lttngversion}" | |
118 | shallow-clone: true | |
119 | skip-tag: true | |
120 | fastpoll: true | |
121 | basedir: src/lttng-tools | |
122 | - git: | |
123 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
124 | branches: | |
125 | - "{lttngversion}" | |
126 | shallow-clone: true | |
127 | skip-tag: true | |
128 | fastpoll: true | |
129 | basedir: src/lttng-modules | |
130 | - git: | |
131 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
132 | branches: | |
133 | - "{kversion}" | |
134 | shallow-clone: true | |
135 | skip-tag: true | |
136 | fastpoll: true | |
137 | basedir: src/linux | |
a2a6063c | 138 | |
1ac7fa2c FD |
139 | publishers: |
140 | - email: | |
141 | recipients: 'francis.deslauriers@efficios.com' | |
492954ee FD |
142 | - ircbot: |
143 | strategy: new-failure-and-fixed | |
144 | channels: | |
145 | - name: '#lttng' | |
62c50903 | 146 | - workspace-cleanup |
492954ee | 147 | |
1ac7fa2c FD |
148 | builders: |
149 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh | |
150 | - trigger-builds: | |
151 | - project: "build_kernel_PARAM" | |
152 | property-file: 'properties.txt' | |
153 | block: true | |
154 | - inject: | |
155 | properties-file: properties.txt | |
156 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-kvm-tests.sh | |
157 | ||
158 | - defaults: | |
159 | name: baremetal_tests | |
a2a6063c FD |
160 | description: | |
161 | Runs baremetal kernel tests over different combination of kernel and lttng configurations. | |
1ac7fa2c FD |
162 | project-type: freestyle |
163 | node: 'master' | |
dc9700c9 FD |
164 | properties: |
165 | - throttle: | |
166 | max-total: 2 | |
167 | option: 'category' | |
168 | categories: | |
95326029 | 169 | - 'baremetal-tests' |
1ac7fa2c FD |
170 | triggers: |
171 | - pollscm: | |
172 | cron: "@hourly" | |
173 | logrotate: | |
174 | numToKeep: 10 | |
175 | ||
a2a6063c FD |
176 | wrappers: |
177 | - workspace-cleanup | |
178 | - timestamps | |
179 | - ansicolor | |
180 | - credentials-binding: | |
181 | - text: | |
182 | credential-id: jenkins_lava_key | |
30003819 | 183 | variable: LAVA_JENKINS_TOKEN |
a2a6063c FD |
184 | - inject: |
185 | properties-content: | | |
1ac7fa2c | 186 | UST_BRANCH={lttngversion} |
95326029 FD |
187 | BUILD_DEVICE=baremetal |
188 | scm: | |
189 | - git: | |
190 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
191 | branches: | |
192 | - "{lttngversion}" | |
193 | shallow-clone: true | |
194 | skip-tag: true | |
195 | fastpoll: true | |
196 | basedir: src/lttng-tools | |
197 | - git: | |
198 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
199 | branches: | |
200 | - "{lttngversion}" | |
201 | shallow-clone: true | |
202 | skip-tag: true | |
203 | fastpoll: true | |
204 | basedir: src/lttng-modules | |
205 | - git: | |
206 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
207 | branches: | |
208 | - "{kversion}" | |
209 | shallow-clone: true | |
210 | skip-tag: true | |
211 | fastpoll: true | |
212 | basedir: src/linux | |
a2a6063c | 213 | |
95326029 FD |
214 | publishers: |
215 | - email: | |
216 | recipients: 'francis.deslauriers@efficios.com' | |
492954ee FD |
217 | - ircbot: |
218 | strategy: new-failure-and-fixed | |
219 | channels: | |
220 | - name: '#lttng' | |
62c50903 FD |
221 | - workspace-cleanup |
222 | ||
a2a6063c FD |
223 | builders: |
224 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh | |
225 | - trigger-builds: | |
226 | - project: "build_kernel_PARAM" | |
227 | property-file: 'properties.txt' | |
228 | block: true | |
229 | - inject: | |
230 | properties-file: properties.txt | |
1ac7fa2c | 231 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-tests.sh |
a2a6063c FD |
232 | |
233 | - job-template: | |
234 | name: baremetal_benchmarks_k{kversion}_l{lttngversion} | |
1ac7fa2c FD |
235 | defaults: baremetal_benchmarks |
236 | - job-template: | |
48ddcc03 FD |
237 | name: vm_tests_k{kversion}_l{lttngversion} |
238 | defaults: vm_tests | |
1ac7fa2c FD |
239 | - job-template: |
240 | name: baremetal_tests_k{kversion}_l{lttngversion} | |
241 | defaults: baremetal_tests | |
a2a6063c | 242 | |
ea517c1e FD |
243 | # Canary jobs are made to confirm that the whole Lava pipeline is working. |
244 | # They are scheduled once a day always on the same (LTTng, Kernel) code. If any | |
245 | # of those jobs fails, it means that there is an issue with the configuration | |
95326029 FD |
246 | - job-template: |
247 | name: baremetal_tests_k{kversion}_l{lttngversion}_canary | |
248 | defaults: baremetal_tests | |
ea517c1e FD |
249 | triggers: |
250 | - timed: "@daily" | |
1ac7fa2c | 251 | - job-template: |
48ddcc03 FD |
252 | name: vm_tests_k{kversion}_l{lttngversion}_canary |
253 | defaults: vm_tests | |
ea517c1e FD |
254 | triggers: |
255 | - timed: "@daily" | |
95326029 FD |
256 | - job-template: |
257 | name: baremetal_benchmarks_k{kversion}_l{lttngversion}_canary | |
258 | defaults: baremetal_benchmarks | |
ea517c1e FD |
259 | triggers: |
260 | - timed: "@daily" | |
1ac7fa2c | 261 | |
95326029 | 262 | - job-template: |
48ddcc03 FD |
263 | name: vm_tests_kmainline_l{lttngversion} |
264 | defaults: vm_tests | |
1ac7fa2c FD |
265 | triggers: |
266 | - pollscm: | |
267 | cron: "@daily" | |
268 | scm: | |
269 | - git: | |
270 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
271 | branches: | |
272 | - "{lttngversion}" | |
273 | shallow-clone: true | |
274 | skip-tag: true | |
275 | fastpoll: true | |
276 | basedir: src/lttng-tools | |
277 | - git: | |
278 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
279 | branches: | |
280 | - "{lttngversion}" | |
281 | shallow-clone: true | |
282 | skip-tag: true | |
283 | fastpoll: true | |
284 | basedir: src/lttng-modules | |
285 | - git: | |
286 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
287 | refspec: "+refs/tags/*:refs/remotes/origin/tags/*" | |
288 | branches: | |
289 | - "master" | |
290 | fastpoll: true | |
291 | basedir: src/linux | |
292 | ||
95326029 FD |
293 | - job-template: |
294 | name: baremetal_tests_kmainline_l{lttngversion} | |
295 | defaults: baremetal_tests | |
296 | triggers: | |
297 | - pollscm: | |
298 | cron: "@daily" | |
a2a6063c FD |
299 | scm: |
300 | - git: | |
301 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
302 | branches: | |
303 | - "{lttngversion}" | |
304 | shallow-clone: true | |
305 | skip-tag: true | |
306 | fastpoll: true | |
307 | basedir: src/lttng-tools | |
308 | - git: | |
309 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
310 | branches: | |
311 | - "{lttngversion}" | |
312 | shallow-clone: true | |
313 | skip-tag: true | |
314 | fastpoll: true | |
315 | basedir: src/lttng-modules | |
316 | - git: | |
317 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
95326029 | 318 | refspec: "+refs/tags/*:refs/remotes/origin/tags/*" |
a2a6063c | 319 | branches: |
95326029 FD |
320 | - "master" |
321 | fastpoll: true | |
322 | basedir: src/linux | |
27d9ba1a | 323 | |
95326029 FD |
324 | - job-template: |
325 | name: baremetal_benchmarks_kmainline_l{lttngversion} | |
326 | defaults: baremetal_benchmarks | |
327 | triggers: | |
328 | - pollscm: | |
329 | cron: "@daily" | |
330 | scm: | |
331 | - git: | |
332 | url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git | |
333 | branches: | |
334 | - "{lttngversion}" | |
a2a6063c FD |
335 | shallow-clone: true |
336 | skip-tag: true | |
337 | fastpoll: true | |
95326029 FD |
338 | basedir: src/lttng-tools |
339 | - git: | |
340 | url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git | |
341 | branches: | |
342 | - "{lttngversion}" | |
343 | shallow-clone: true | |
344 | skip-tag: true | |
345 | fastpoll: true | |
346 | basedir: src/lttng-modules | |
347 | - git: | |
348 | url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git | |
349 | refspec: "+refs/tags/*:refs/remotes/origin/tags/*" | |
350 | branches: | |
351 | - "master" | |
352 | fastpoll: true | |
a2a6063c | 353 | basedir: src/linux |
a2a6063c FD |
354 | |
355 | - job: | |
356 | name: build_kernel_PARAM | |
357 | description: | | |
358 | Builds a Linux Kernel and LTTng Modules if necessary | |
359 | defaults: global | |
360 | concurrent: true | |
361 | ||
362 | logrotate: | |
7b35851f | 363 | numToKeep: 50 |
a2a6063c FD |
364 | node: 'x86-64' |
365 | ||
366 | wrappers: | |
367 | - workspace-cleanup | |
368 | - timestamps | |
369 | - ansicolor | |
370 | - credentials-binding: | |
371 | - file: | |
372 | credential-id: lava_jenkins_storage_frdeso | |
373 | variable: identity_file | |
374 | builders: | |
375 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh | |
376 | - inject: | |
377 | properties-file: properties.txt | |
378 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/check-build-needs.sh | |
379 | - conditional-step: | |
380 | condition-kind: not | |
381 | condition-operand: | |
382 | condition-kind: file-exists | |
383 | condition-filename: kernel-built.txt | |
384 | condition-basedir: workspace | |
385 | steps: | |
386 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-kernel.sh | |
387 | - conditional-step: | |
388 | condition-kind: not | |
389 | condition-operand: | |
390 | condition-kind: file-exists | |
391 | condition-filename: modules-built.txt | |
392 | condition-basedir: workspace | |
393 | steps: | |
394 | - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-modules.sh | |
395 | ||
396 | parameters: | |
397 | - string: | |
398 | name: 'LTTNG_MODULES_COMMIT_ID' | |
399 | description: 'The lttng-modules commmit to build.' | |
400 | - string: | |
401 | name: 'KERNEL_COMMIT_ID' | |
402 | description: 'The kernel commit to build.' | |
403 | - string: | |
404 | name: 'KGITREPO' | |
405 | description: 'The kernel git repo to fetch from' | |
406 | - string: | |
407 | name: 'STORAGE_KERNEL_FOLDER' | |
408 | description: 'Path to store the Kernel image' | |
409 | - string: | |
410 | name: 'STORAGE_KERNEL_IMAGE' | |
411 | description: 'Path to store the Kernel IMAGE' | |
412 | - string: | |
413 | name: 'STORAGE_LINUX_MODULES' | |
414 | description: 'Path to store the Kernel Modules' | |
415 | - string: | |
416 | name: 'STORAGE_LTTNG_MODULES' | |
417 | description: 'Path to store the LTTng Modules' | |
dc9700c9 FD |
418 | - string: |
419 | name: 'BUILD_DEVICE' | |
420 | description: 'The target device. (kvm or baremetal)' | |
62c50903 FD |
421 | publishers: |
422 | - workspace-cleanup | |
a2a6063c FD |
423 | |
424 | ## Project | |
425 | - project: | |
426 | name: lttng-kernel-tests | |
427 | kversion: | |
428 | - linux-4.4.y | |
429 | - linux-4.8.y | |
430 | - v4.8.1 | |
431 | lttngversion: | |
432 | - master | |
433 | - stable-2.8 | |
434 | - stable-2.9 | |
435 | jobs: | |
48ddcc03 | 436 | - 'vm_tests_k{kversion}_l{lttngversion}' |
a2a6063c | 437 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}' |
1ac7fa2c | 438 | - 'baremetal_tests_k{kversion}_l{lttngversion}' |
a2a6063c FD |
439 | |
440 | - project: | |
441 | name: lttng-kernel-tests-oldkernel | |
442 | kversion: | |
443 | - linux-3.18.y | |
444 | - linux-4.4.y | |
445 | lttngversion: | |
446 | - stable-2.7 | |
447 | jobs: | |
48ddcc03 | 448 | - 'vm_tests_k{kversion}_l{lttngversion}': |
a2a6063c FD |
449 | - 'baremetal_tests_k{kversion}_l{lttngversion}': |
450 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}': | |
95326029 FD |
451 | |
452 | - project: | |
453 | name: lttng-kernel-tests-canary | |
454 | kversion: | |
455 | - v4.4.9 | |
456 | lttngversion: | |
457 | - v2.8.1 | |
458 | jobs: | |
48ddcc03 | 459 | - 'vm_tests_k{kversion}_l{lttngversion}_canary' |
95326029 FD |
460 | - 'baremetal_tests_k{kversion}_l{lttngversion}_canary' |
461 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}_canary' | |
462 | ||
463 | - project: | |
464 | name: lttng-kernel-tests-mainline | |
465 | lttngversion: | |
466 | - v2.8.1 | |
467 | jobs: | |
48ddcc03 | 468 | - 'vm_tests_kmainline_l{lttngversion}' |
95326029 FD |
469 | - 'baremetal_tests_kmainline_l{lttngversion}' |
470 | - 'baremetal_benchmarks_kmainline_l{lttngversion}' |