jjb: fix modules arm64 crossbuild
[lttng-ci.git] / jobs / lttng-baremetal-tests.yaml
CommitLineData
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"
95326029 9
95326029 10 properties:
d6d1423b
MJ
11 - build-discarder:
12 num-to-keep: 10
95326029
FD
13 - throttle:
14 max-total: 2
15 option: 'category'
16 categories:
1ac7fa2c 17 - 'baremetal-tests'
d6d1423b 18
a2a6063c 19 project-type: freestyle
a672e5fd 20 node: 'x86-64'
95326029
FD
21 wrappers:
22 - workspace-cleanup
23 - timestamps
24 - ansicolor
25 - credentials-binding:
26 - text:
27 credential-id: jenkins_lava_key
30003819 28 variable: LAVA_JENKINS_TOKEN
cfceede2 29 - file:
fe4acd56 30 credential-id: system_tests_storage_key
cfceede2 31 variable: identity_file
95326029
FD
32 - inject:
33 properties-content: |
34 TOOLS_BRANCH={lttngversion}
35 UST_BRANCH={lttngversion}
1ac7fa2c 36 BUILD_DEVICE=baremetal
d6d1423b 37
95326029 38 publishers:
104ed94b
FD
39 - archive:
40 artifacts: '*.png,*.csv'
41 stable: true
42 do-not-fingerprint: true
dcce7c85
JR
43 - email-ext:
44 recipients: '{obj:email_to}'
45 reply-to: ci-notification@lists.lttng.org
46 always: false
47 unstable: false
48 first-failure: true
49 first-unstable: true
50 not-built: false
51 aborted: false
52 regression: false
53 failure: false
54 second-failure: false
55 improvement: false
56 still-failing: false
57 success: false
58 fixed: false
59 fixed-unhealthy: true
60 still-unstable: false
61 pre-build: false
62 matrix-trigger: only-parent
63 send-to:
64 - recipients
104ed94b
FD
65 - image-gallery:
66 - gallery-type: archived-images-gallery
67 title: Results
68 includes: '*.png'
62c50903 69 - workspace-cleanup
d6d1423b 70
a2a6063c
FD
71 scm:
72 - git:
73 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
74 branches:
75 - "{lttngversion}"
76 shallow-clone: true
77 skip-tag: true
78 fastpoll: true
79 basedir: src/lttng-tools
80 - git:
81 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
82 branches:
83 - "{lttngversion}"
84 shallow-clone: true
85 skip-tag: true
86 fastpoll: true
87 basedir: src/lttng-modules
88 - git:
89 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
90 branches:
91 - "{kversion}"
92 shallow-clone: true
93 skip-tag: true
94 fastpoll: true
95 basedir: src/linux
96
95326029
FD
97 builders:
98 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
d8d932db 99 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/inject-ssh-commands.sh
95326029
FD
100 - trigger-builds:
101 - project: "build_kernel_PARAM"
102 property-file: 'properties.txt'
103 block: true
104 - inject:
105 properties-file: properties.txt
1ac7fa2c 106 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh
b87dc589 107 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/summarize-results.sh
1ac7fa2c 108
d6d1423b 109
95326029 110- defaults:
48ddcc03 111 name: vm_tests
95326029 112 description: |
1ac7fa2c
FD
113 Runs baremetal kernel tests over different combination of kernel and lttng configurations.
114 project-type: freestyle
115 node: 'master'
d6d1423b 116
1ac7fa2c 117 properties:
d6d1423b
MJ
118 - build-discarder:
119 num-to-keep: 10
1ac7fa2c
FD
120 - throttle:
121 max-total: 2
122 option: 'category'
123 categories:
124 - 'kvm-tests'
d6d1423b 125
a2a6063c
FD
126 triggers:
127 - pollscm:
c3729765 128 cron: "H * * * 1-5"
a2a6063c 129
1ac7fa2c
FD
130 wrappers:
131 - workspace-cleanup
132 - timestamps
133 - ansicolor
134 - credentials-binding:
135 - text:
136 credential-id: jenkins_lava_key
30003819 137 variable: LAVA_JENKINS_TOKEN
1ac7fa2c
FD
138 - inject:
139 properties-content: |
140 BUILD_DEVICE=kvm
141 TOOLS_BRANCH={lttngversion}
142 UST_BRANCH={lttngversion}
d6d1423b 143
1ac7fa2c
FD
144 scm:
145 - git:
146 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
147 branches:
148 - "{lttngversion}"
149 shallow-clone: true
150 skip-tag: true
151 fastpoll: true
152 basedir: src/lttng-tools
153 - git:
154 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
155 branches:
156 - "{lttngversion}"
157 shallow-clone: true
158 skip-tag: true
159 fastpoll: true
160 basedir: src/lttng-modules
161 - git:
162 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
163 branches:
164 - "{kversion}"
165 shallow-clone: true
166 skip-tag: true
167 fastpoll: true
168 basedir: src/linux
a2a6063c 169
1ac7fa2c 170 publishers:
dcce7c85
JR
171 - email-ext:
172 recipients: '{obj:email_to}'
173 reply-to: ci-notification@lists.lttng.org
174 always: false
175 unstable: false
176 first-failure: true
177 first-unstable: true
178 not-built: false
179 aborted: false
180 regression: false
181 failure: false
182 second-failure: false
183 improvement: false
184 still-failing: false
185 success: false
186 fixed: false
187 fixed-unhealthy: true
188 still-unstable: false
189 pre-build: false
190 matrix-trigger: only-parent
191 send-to:
192 - recipients
62c50903 193 - workspace-cleanup
492954ee 194
1ac7fa2c
FD
195 builders:
196 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
197 - trigger-builds:
198 - project: "build_kernel_PARAM"
199 property-file: 'properties.txt'
200 block: true
201 - inject:
202 properties-file: properties.txt
203 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-kvm-tests.sh
204
d6d1423b 205
a2243f89
FD
206- defaults:
207 name: vm_tests_kmainline
208 defaults: vm_tests
d6d1423b 209
a2243f89
FD
210 triggers:
211 - pollscm:
212 cron: "0 1 * * 1-5"
d6d1423b 213
a2243f89
FD
214 wrappers:
215 - workspace-cleanup
216 - timestamps
217 - ansicolor
218 - credentials-binding:
219 - text:
220 credential-id: jenkins_lava_key
221 variable: LAVA_JENKINS_TOKEN
222 - inject:
223 properties-content: |
4f2f3e9e
FD
224 TOOLS_BRANCH={lttngversion}
225 MODULES_BRANCH={lttngversion}
226 UST_BRANCH={lttngversion}
a2243f89
FD
227 BUILD_DEVICE=baremetal
228 scm:
229 - git:
230 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
231 branches:
4f2f3e9e 232 - "{lttngversion}"
a2243f89
FD
233 shallow-clone: true
234 skip-tag: true
235 fastpoll: true
236 basedir: src/lttng-tools
237 - git:
238 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
239 branches:
4f2f3e9e 240 - "{lttngversion}"
a2243f89
FD
241 shallow-clone: true
242 skip-tag: true
243 fastpoll: true
244 basedir: src/lttng-modules
245 - git:
246 url: git://git-mirror.internal.efficios.com/kernel/torvalds/linux.git
247 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
248 branches:
249 - "master"
250 fastpoll: true
251 basedir: src/linux
252
d6d1423b 253
1ac7fa2c
FD
254- defaults:
255 name: baremetal_tests
a2a6063c
FD
256 description: |
257 Runs baremetal kernel tests over different combination of kernel and lttng configurations.
1ac7fa2c
FD
258 project-type: freestyle
259 node: 'master'
d6d1423b 260
dc9700c9 261 properties:
d6d1423b
MJ
262 - build-discarder:
263 num-to-keep: 10
dc9700c9
FD
264 - throttle:
265 max-total: 2
266 option: 'category'
267 categories:
95326029 268 - 'baremetal-tests'
d6d1423b 269
1ac7fa2c
FD
270 triggers:
271 - pollscm:
c3729765 272 cron: "H * * * 1-5"
1ac7fa2c 273
a2a6063c
FD
274 wrappers:
275 - workspace-cleanup
276 - timestamps
277 - ansicolor
278 - credentials-binding:
279 - text:
280 credential-id: jenkins_lava_key
30003819 281 variable: LAVA_JENKINS_TOKEN
a2a6063c
FD
282 - inject:
283 properties-content: |
1ac7fa2c 284 UST_BRANCH={lttngversion}
95326029 285 BUILD_DEVICE=baremetal
d6d1423b 286
95326029
FD
287 scm:
288 - git:
289 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
290 branches:
291 - "{lttngversion}"
292 shallow-clone: true
293 skip-tag: true
294 fastpoll: true
295 basedir: src/lttng-tools
296 - git:
297 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
298 branches:
299 - "{lttngversion}"
300 shallow-clone: true
301 skip-tag: true
302 fastpoll: true
303 basedir: src/lttng-modules
304 - git:
305 url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git
306 branches:
307 - "{kversion}"
308 shallow-clone: true
309 skip-tag: true
310 fastpoll: true
311 basedir: src/linux
a2a6063c 312
95326029 313 publishers:
62c50903 314 - workspace-cleanup
dcce7c85
JR
315 - email-ext:
316 recipients: '{obj:email_to}'
317 reply-to: ci-notification@lists.lttng.org
318 always: false
319 unstable: false
320 first-failure: true
321 first-unstable: true
322 not-built: false
323 aborted: false
324 regression: false
325 failure: false
326 second-failure: false
327 improvement: false
328 still-failing: false
329 success: false
330 fixed: false
331 fixed-unhealthy: true
332 still-unstable: false
333 pre-build: false
334 matrix-trigger: only-parent
335 send-to:
336 - recipients
62c50903 337
a2a6063c
FD
338 builders:
339 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
340 - trigger-builds:
341 - project: "build_kernel_PARAM"
342 property-file: 'properties.txt'
343 block: true
344 - inject:
345 properties-file: properties.txt
1ac7fa2c 346 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-tests.sh
a2a6063c 347
d6d1423b 348
a2a6063c
FD
349- job-template:
350 name: baremetal_benchmarks_k{kversion}_l{lttngversion}
1ac7fa2c
FD
351 defaults: baremetal_benchmarks
352- job-template:
48ddcc03
FD
353 name: vm_tests_k{kversion}_l{lttngversion}
354 defaults: vm_tests
1ac7fa2c
FD
355- job-template:
356 name: baremetal_tests_k{kversion}_l{lttngversion}
357 defaults: baremetal_tests
a2a6063c 358
d6d1423b 359
ea517c1e
FD
360# Canary jobs are made to confirm that the whole Lava pipeline is working.
361# They are scheduled once a day always on the same (LTTng, Kernel) code. If any
362# of those jobs fails, it means that there is an issue with the configuration
95326029
FD
363- job-template:
364 name: baremetal_tests_k{kversion}_l{lttngversion}_canary
365 defaults: baremetal_tests
ea517c1e 366 triggers:
ebb03797 367 - timed: "0 1 * * 1-5"
1ac7fa2c 368- job-template:
48ddcc03
FD
369 name: vm_tests_k{kversion}_l{lttngversion}_canary
370 defaults: vm_tests
ea517c1e 371 triggers:
ebb03797 372 - timed: "0 1 * * 1-5"
95326029
FD
373- job-template:
374 name: baremetal_benchmarks_k{kversion}_l{lttngversion}_canary
375 defaults: baremetal_benchmarks
ea517c1e 376 triggers:
ebb03797 377 - timed: "0 1 * * 1-5"
95326029 378- job-template:
4f2f3e9e 379 name: vm_tests_kmainline_l{lttngversion}
a2243f89
FD
380 defaults: vm_tests_kmainline
381
382- job-template:
4f2f3e9e 383 name: vm_tests_fuzzing_kmainline_l{lttngversion}
a2243f89
FD
384 defaults: vm_tests_kmainline
385
386 builders:
387 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh
388 - trigger-builds:
389 - project: "build_kernel_PARAM"
390 property-file: 'properties.txt'
391 block: true
64d41865 392 - inject:
a2243f89
FD
393 properties-file: properties.txt
394 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-kvm-fuzzing-tests.sh
1ac7fa2c 395
95326029 396- job-template:
4f2f3e9e 397 name: baremetal_tests_kmainline_l{lttngversion}
95326029 398 defaults: baremetal_tests
d6d1423b 399
95326029
FD
400 triggers:
401 - pollscm:
ebb03797 402 cron: "0 1 * * 1-5"
d6d1423b 403
64d41865
FD
404 wrappers:
405 - workspace-cleanup
406 - timestamps
407 - ansicolor
408 - credentials-binding:
409 - text:
410 credential-id: jenkins_lava_key
411 variable: LAVA_JENKINS_TOKEN
412 - inject:
413 properties-content: |
4f2f3e9e
FD
414 TOOLS_BRANCH={lttngversion}
415 MODULES_BRANCH={lttngversion}
416 UST_BRANCH={lttngversion}
64d41865 417 BUILD_DEVICE=baremetal
d6d1423b 418
a2a6063c
FD
419 scm:
420 - git:
421 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
422 branches:
4f2f3e9e 423 - "{lttngversion}"
a2a6063c
FD
424 shallow-clone: true
425 skip-tag: true
426 fastpoll: true
427 basedir: src/lttng-tools
428 - git:
429 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
430 branches:
4f2f3e9e 431 - "{lttngversion}"
a2a6063c
FD
432 shallow-clone: true
433 skip-tag: true
434 fastpoll: true
435 basedir: src/lttng-modules
436 - git:
1edbbf45 437 url: git://git-mirror.internal.efficios.com/kernel/torvalds/linux.git
95326029 438 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
a2a6063c 439 branches:
95326029
FD
440 - "master"
441 fastpoll: true
442 basedir: src/linux
d6d1423b
MJ
443
444
95326029 445- job-template:
4f2f3e9e 446 name: baremetal_benchmarks_kmainline_l{lttngversion}
95326029 447 defaults: baremetal_benchmarks
d6d1423b 448
95326029
FD
449 triggers:
450 - pollscm:
ebb03797 451 cron: "0 1 * * 1-5"
d6d1423b 452
64d41865
FD
453 wrappers:
454 - workspace-cleanup
455 - timestamps
456 - ansicolor
457 - credentials-binding:
458 - text:
459 credential-id: jenkins_lava_key
460 variable: LAVA_JENKINS_TOKEN
461 - file:
462 credential-id: system_tests_storage_key
463 variable: identity_file
464 - inject:
465 properties-content: |
4f2f3e9e
FD
466 TOOLS_BRANCH={lttngversion}
467 MODULES_BRANCH={lttngversion}
468 UST_BRANCH={lttngversion}
64d41865 469 BUILD_DEVICE=baremetal
d6d1423b 470
95326029
FD
471 scm:
472 - git:
473 url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git
474 branches:
4f2f3e9e 475 - "{lttngversion}"
a2a6063c
FD
476 shallow-clone: true
477 skip-tag: true
478 fastpoll: true
95326029
FD
479 basedir: src/lttng-tools
480 - git:
481 url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git
482 branches:
4f2f3e9e 483 - "{lttngversion}"
95326029
FD
484 shallow-clone: true
485 skip-tag: true
486 fastpoll: true
487 basedir: src/lttng-modules
488 - git:
1edbbf45 489 url: git://git-mirror.internal.efficios.com/kernel/torvalds/linux.git
95326029
FD
490 refspec: "+refs/tags/*:refs/remotes/origin/tags/*"
491 branches:
492 - "master"
493 fastpoll: true
a2a6063c 494 basedir: src/linux
a2a6063c 495
d6d1423b 496
a2a6063c
FD
497- job:
498 name: build_kernel_PARAM
499 description: |
500 Builds a Linux Kernel and LTTng Modules if necessary
a2a6063c 501 concurrent: true
a2a6063c
FD
502 node: 'x86-64'
503
d6d1423b
MJ
504 properties:
505 - build-discarder:
506 num-to-keep: 100
507
a2a6063c
FD
508 wrappers:
509 - workspace-cleanup
510 - timestamps
511 - ansicolor
512 - credentials-binding:
513 - file:
fe4acd56 514 credential-id: system_tests_storage_key
a2a6063c 515 variable: identity_file
d6d1423b 516
a2a6063c
FD
517 builders:
518 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh
519 - inject:
520 properties-file: properties.txt
521 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/check-build-needs.sh
522 - conditional-step:
523 condition-kind: not
524 condition-operand:
525 condition-kind: file-exists
526 condition-filename: kernel-built.txt
527 condition-basedir: workspace
528 steps:
529 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-kernel.sh
530 - conditional-step:
531 condition-kind: not
532 condition-operand:
533 condition-kind: file-exists
534 condition-filename: modules-built.txt
535 condition-basedir: workspace
536 steps:
537 - shell: !include-raw-escape: scripts/lttng-baremetal-tests/build-modules.sh
538
539 parameters:
540 - string:
541 name: 'LTTNG_MODULES_COMMIT_ID'
542 description: 'The lttng-modules commmit to build.'
70742175
FD
543 - string:
544 name: 'LTTNG_MODULES_REPO'
545 description: 'The LTTng Modules git repo to fetch from'
546 default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git'
a2a6063c
FD
547 - string:
548 name: 'KERNEL_COMMIT_ID'
549 description: 'The kernel commit to build.'
550 - string:
551 name: 'KGITREPO'
552 description: 'The kernel git repo to fetch from'
553 - string:
554 name: 'STORAGE_KERNEL_FOLDER'
555 description: 'Path to store the Kernel image'
556 - string:
557 name: 'STORAGE_KERNEL_IMAGE'
558 description: 'Path to store the Kernel IMAGE'
559 - string:
560 name: 'STORAGE_LINUX_MODULES'
561 description: 'Path to store the Kernel Modules'
562 - string:
563 name: 'STORAGE_LTTNG_MODULES'
564 description: 'Path to store the LTTng Modules'
dc9700c9
FD
565 - string:
566 name: 'BUILD_DEVICE'
567 description: 'The target device. (kvm or baremetal)'
d6d1423b 568
62c50903
FD
569 publishers:
570 - workspace-cleanup
a2a6063c 571
d6d1423b 572
a2a6063c
FD
573## Project
574- project:
575 name: lttng-kernel-tests
dcce7c85 576 email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com'
a2a6063c
FD
577 kversion:
578 - linux-4.4.y
47446c7f 579 - linux-4.9.y
a2a6063c
FD
580 - v4.8.1
581 lttngversion:
582 - master
a2a6063c 583 - stable-2.9
767b9687 584 - stable-2.10
a2a6063c 585 jobs:
48ddcc03 586 - 'vm_tests_k{kversion}_l{lttngversion}'
a2a6063c 587 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}'
1ac7fa2c 588 - 'baremetal_tests_k{kversion}_l{lttngversion}'
a2a6063c
FD
589
590- project:
591 name: lttng-kernel-tests-oldkernel
dcce7c85 592 email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com'
a2a6063c
FD
593 kversion:
594 - linux-3.18.y
595 - linux-4.4.y
596 lttngversion:
597 - stable-2.7
598 jobs:
48ddcc03 599 - 'vm_tests_k{kversion}_l{lttngversion}':
a2a6063c
FD
600 - 'baremetal_tests_k{kversion}_l{lttngversion}':
601 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}':
95326029
FD
602
603- project:
604 name: lttng-kernel-tests-canary
dcce7c85 605 email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com'
95326029
FD
606 kversion:
607 - v4.4.9
608 lttngversion:
609 - v2.8.1
610 jobs:
48ddcc03 611 - 'vm_tests_k{kversion}_l{lttngversion}_canary'
95326029
FD
612 - 'baremetal_tests_k{kversion}_l{lttngversion}_canary'
613 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}_canary'
614
615- project:
616 name: lttng-kernel-tests-mainline
4f2f3e9e
FD
617 lttngversion:
618 - master
dcce7c85 619 email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com'
95326029 620 jobs:
4f2f3e9e
FD
621 - 'vm_tests_kmainline_l{lttngversion}'
622 - 'vm_tests_fuzzing_kmainline_l{lttngversion}'
623 - 'baremetal_tests_kmainline_l{lttngversion}'
624 - 'baremetal_benchmarks_kmainline_l{lttngversion}'
This page took 0.05147 seconds and 4 git commands to generate.