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_k{kversion}_l{lttngversion}
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
101 LTTNG_VERSION={lttngversion}
104 url: https://github.com/lttng/lttng-ci
105 basedir: src/lttng-ci/
108 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
109 - shell: !include-raw-escape: scripts/system-tests/inject-ssh-commands.sh
111 - project: "build_kernel_PARAM"
112 property-file: 'properties.txt'
115 properties-file: properties.txt
116 - shell: !include-raw-escape: scripts/system-tests/run-baremetal-benchmarks.sh
117 - shell: !include-raw-escape: scripts/system-tests/summarize-results.sh
121 artifacts: '*.png,*.csv'
123 do-not-fingerprint: true
125 - gallery-type: archived-images-gallery
131 name: vm_tests_k{kversion}_l{lttngversion}
133 Runs root_regression and root_destructive_tests on a virtual machine over different combinations of kernel and lttng configurations.
134 project-type: freestyle
136 <<: *system_tests_parameters_defaults
151 - credentials-binding:
153 credential-id: jenkins_lava_key
154 variable: LAVA_JENKINS_TOKEN
156 credential-id: jenkins_lava2_key
157 variable: LAVA2_JENKINS_TOKEN
159 properties-content: |
161 LTTNG_VERSION={lttngversion}
165 url: https://github.com/lttng/lttng-ci
166 basedir: src/lttng-ci/
169 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
171 - project: "build_kernel_PARAM"
172 property-file: 'properties.txt'
175 properties-file: properties.txt
176 - shell: !include-raw-escape: scripts/system-tests/run-kvm-tests.sh
182 name: baremetal_tests_k{kversion}_l{lttngversion}
184 Runs perf_regression tests on a baremetal machine over different combinations of kernel and lttng configurations.
185 project-type: freestyle
188 <<: *system_tests_parameters_defaults
203 - credentials-binding:
205 credential-id: jenkins_lava_key
206 variable: LAVA_JENKINS_TOKEN
208 credential-id: jenkins_lava2_key
209 variable: LAVA2_JENKINS_TOKEN
211 properties-content: |
212 BUILD_DEVICE=baremetal
213 LTTNG_VERSION={lttngversion}
217 url: https://github.com/lttng/lttng-ci
218 basedir: src/lttng-ci/
221 - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh
223 - project: "build_kernel_PARAM"
224 property-file: 'properties.txt'
227 properties-file: properties.txt
228 - shell: !include-raw-escape: scripts/system-tests/run-baremetal-tests.sh
234 name: build_kernel_PARAM
236 Builds a Linux Kernel and LTTng Modules if necessary
242 name: 'LTTNG_MODULES_COMMIT_ID'
243 description: 'The lttng-modules commmit to build.'
245 name: 'LTTNG_MODULES_REPO'
246 description: 'The LTTng Modules git repo to fetch from'
247 default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git'
249 name: 'KERNEL_COMMIT_ID'
250 description: 'The kernel commit to build.'
253 description: 'The kernel git repo to fetch from'
255 name: 'STORAGE_KERNEL_FOLDER'
256 description: 'Path to store the Kernel image'
258 name: 'STORAGE_KERNEL_IMAGE'
259 description: 'Path to store the Kernel IMAGE'
261 name: 'STORAGE_LINUX_MODULES'
262 description: 'Path to store the Kernel Modules'
264 name: 'STORAGE_LTTNG_MODULES'
265 description: 'Path to store the LTTng Modules'
268 description: 'The target device. (kvm or baremetal)'
270 name: 'S3_STORAGE_KERNEL_FOLDER'
271 description: 'Path to store the Kernel image'
273 name: 'S3_STORAGE_KERNEL_IMAGE'
274 description: 'Path to store the Kernel IMAGE'
276 name: 'S3_STORAGE_LINUX_MODULES'
277 description: 'Path to store the Kernel Modules'
279 name: 'S3_STORAGE_LTTNG_MODULES'
280 description: 'Path to store the LTTng Modules'
290 - credentials-binding:
292 credential-id: system_tests_storage_key
293 variable: identity_file
297 url: https://github.com/lttng/lttng-ci
298 basedir: src/lttng-ci/
300 url : $LTTNG_MODULES_REPO
301 basedir: src/lttng-modules/
303 - $LTTNG_MODULES_COMMIT_ID
306 - shell: !include-raw-escape: scripts/system-tests/generate-properties-slave.sh
308 properties-file: properties.txt
309 - shell: !include-raw-escape: scripts/system-tests/check-build-needs.sh
313 condition-kind: file-exists
314 condition-filename: kernel-built.txt
315 condition-basedir: workspace
317 - shell: !include-raw-escape: scripts/system-tests/build-kernel.sh
321 condition-kind: file-exists
322 condition-filename: modules-built.txt
323 condition-basedir: workspace
325 - shell: !include-raw-escape: scripts/system-tests/build-modules.sh
331 name: system_ALL_{test_type}_trigger
333 This job will trigger the build of jobs when a new tag is push specific
334 tracked Linux branches and new commits on LTTng tracked branches
336 project-type: freestyle
340 name: 'FORCE_JOB_RUN'
342 description: 'Force the child jobs to run'
344 name: 'FORCE_FAILED_JOB_RUN'
346 description: 'Force the failed child jobs to run'
353 - timed: "H 0 * * 1-5"
362 !include-raw-escape: scripts/system-tests/system-trigger.groovy
365 - system_tests_email_ext_default
369 # Canary jobs are made to confirm that the whole Lava pipeline is working.
370 # They are scheduled once a day always on the same (LTTng, Kernel) code. If any
371 # of those jobs fails, it means that there is an issue with the configuration
391 - 'vm_tests_k{kversion}_l{lttngversion}'
392 - 'baremetal_benchmarks_k{kversion}_l{lttngversion}'
393 - 'baremetal_tests_k{kversion}_l{lttngversion}'
395 name: system-tests-vm-only
404 - 'vm_tests_k{kversion}_l{lttngversion}'
411 - baremetal_benchmarks
413 - 'build_kernel_PARAM'
414 - 'system_ALL_{test_type}_trigger'