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