3 - system_tests_parameters_defaults: &system_tests_parameters_defaults
4 name: 'system_tests_parameters_defaults'
7 name: 'LTTNG_TOOLS_COMMIT_ID'
9 description: 'The lttng-tools commit id to build.'
11 name: 'LTTNG_MODULES_COMMIT_ID'
13 description: 'The lttng-modules commit id to build.'
15 name: 'LTTNG_UST_COMMIT_ID'
17 description: 'The lttng-ust commit id to build.'
21 description: 'The linux kernel git tag to build against.'
24 default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git'
25 description: 'Linux kernel git repo to checkout the kernel id'
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'
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'
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'
40 name: 'system_tests_email_ext_default'
43 recipients: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com'
44 reply-to: ci-notification@lists.lttng.org
61 matrix-trigger: only-parent
67 name: baremetal_benchmarks
69 Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations.
70 project-type: freestyle
73 <<: *system_tests_parameters_defaults
88 - credentials-binding:
90 credential-id: jenkins_lava_key
91 variable: LAVA_JENKINS_TOKEN
93 credential-id: jenkins_lava2_key
94 variable: LAVA2_JENKINS_TOKEN
96 credential-id: system_tests_storage_key
97 variable: identity_file
100 BUILD_DEVICE=baremetal
103 url: https://github.com/lttng/lttng-ci
104 basedir: src/lttng-ci/
107 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
108 - shell: !include-raw-escape: scripts/system-tests/inject-ssh-commands.sh
110 - project: "build_kernel_PARAM"
111 property-file: 'properties.txt'
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
120 artifacts: '*.png,*.csv'
122 do-not-fingerprint: true
124 - gallery-type: archived-images-gallery
132 Runs root_regression and root_destructive_tests on a virtual machine over different combinations of kernel and lttng configurations.
133 project-type: freestyle
135 <<: *system_tests_parameters_defaults
150 - credentials-binding:
152 credential-id: jenkins_lava_key
153 variable: LAVA_JENKINS_TOKEN
155 credential-id: jenkins_lava2_key
156 variable: LAVA2_JENKINS_TOKEN
158 properties-content: |
163 url: https://github.com/lttng/lttng-ci
164 basedir: src/lttng-ci/
167 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
169 - project: "build_kernel_PARAM"
170 property-file: 'properties.txt'
173 properties-file: properties.txt
174 - shell: !include-raw-escape: scripts/system-tests/run-kvm-tests.sh
180 name: baremetal_tests
182 Runs perf_regression tests on a baremetal machine over different combinations of kernel and lttng configurations.
183 project-type: freestyle
186 <<: *system_tests_parameters_defaults
201 - credentials-binding:
203 credential-id: jenkins_lava_key
204 variable: LAVA_JENKINS_TOKEN
206 credential-id: jenkins_lava2_key
207 variable: LAVA2_JENKINS_TOKEN
209 properties-content: |
210 BUILD_DEVICE=baremetal
214 url: https://github.com/lttng/lttng-ci
215 basedir: src/lttng-ci/
218 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
220 - project: "build_kernel_PARAM"
221 property-file: 'properties.txt'
224 properties-file: properties.txt
225 - shell: !include-raw-escape: scripts/system-tests/run-baremetal-tests.sh
232 name: build_kernel_PARAM
234 Builds a Linux Kernel and LTTng Modules if necessary
240 name: 'LTTNG_MODULES_COMMIT_ID'
241 description: 'The lttng-modules commmit to build.'
243 name: 'LTTNG_MODULES_REPO'
244 description: 'The LTTng Modules git repo to fetch from'
245 default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git'
247 name: 'KERNEL_COMMIT_ID'
248 description: 'The kernel commit to build.'
251 description: 'The kernel git repo to fetch from'
253 name: 'STORAGE_KERNEL_FOLDER'
254 description: 'Path to store the Kernel image'
256 name: 'STORAGE_KERNEL_IMAGE'
257 description: 'Path to store the Kernel IMAGE'
259 name: 'STORAGE_LINUX_MODULES'
260 description: 'Path to store the Kernel Modules'
262 name: 'STORAGE_LTTNG_MODULES'
263 description: 'Path to store the LTTng Modules'
266 description: 'The target device. (kvm or baremetal)'
268 name: 'S3_STORAGE_KERNEL_FOLDER'
269 description: 'Path to store the Kernel image'
271 name: 'S3_STORAGE_KERNEL_IMAGE'
272 description: 'Path to store the Kernel IMAGE'
274 name: 'S3_STORAGE_LINUX_MODULES'
275 description: 'Path to store the Kernel Modules'
277 name: 'S3_STORAGE_LTTNG_MODULES'
278 description: 'Path to store the LTTng Modules'
288 - credentials-binding:
290 credential-id: system_tests_storage_key
291 variable: identity_file
295 url: https://github.com/lttng/lttng-ci
296 basedir: src/lttng-ci/
298 url : $LTTNG_MODULES_REPO
299 basedir: src/lttng-modules/
301 - $LTTNG_MODULES_COMMIT_ID
304 - shell: !include-raw-escape: scripts/system-tests/generate-properties-slave.sh
306 properties-file: properties.txt
307 - shell: !include-raw-escape: scripts/system-tests/check-build-needs.sh
311 condition-kind: file-exists
312 condition-filename: kernel-built.txt
313 condition-basedir: workspace
315 - shell: !include-raw-escape: scripts/system-tests/build-kernel.sh
319 condition-kind: file-exists
320 condition-filename: modules-built.txt
321 condition-basedir: workspace
323 - shell: !include-raw-escape: scripts/system-tests/build-modules.sh
329 name: system_ALL_{test_type}_trigger
331 This job will trigger the build of jobs when a new tag is push specific
332 tracked Linux branches and new commits on LTTng tracked branches
334 project-type: freestyle
338 name: 'FORCE_JOB_RUN'
340 description: 'Force the child jobs to run'
342 name: 'FORCE_FAILED_JOB_RUN'
344 description: 'Force the failed child jobs to run'
351 - timed: "H 0 * * 1-5"
360 !include-raw-escape: scripts/system-tests/system-trigger.groovy
363 - system_tests_email_ext_default
366 name: baremetal_benchmarks_k{kversion}_l{lttngversion}
367 defaults: baremetal_benchmarks
369 name: vm_tests_k{kversion}_l{lttngversion}
372 name: baremetal_tests_k{kversion}_l{lttngversion}
373 defaults: baremetal_tests
375 # Canary jobs are made to confirm that the whole Lava pipeline is working.
376 # They are scheduled once a day always on the same (LTTng, Kernel) code. If any
377 # of those jobs fails, it means that there is an issue with the configuration
379 name: baremetal_benchmarks_canary
380 defaults: baremetal_benchmarks
383 name: baremetal_tests_canary
384 defaults: baremetal_tests
387 name: vm_tests_canary
408 - 'vm_tests_k{kversion}_l{lttngversion}'
409 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}'
410 - 'baremetal_tests_k{kversion}_l{lttngversion}'
412 name: system-tests-vm-only
422 - 'vm_tests_k{kversion}_l{lttngversion}'
425 name: system-tests-canary
428 - 'baremetal_tests_canary'
429 - 'baremetal_benchmarks_canary'
436 - baremetal_benchmarks
438 - 'build_kernel_PARAM'
439 - 'system_ALL_{test_type}_trigger'