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