| 1 | --- |
| 2 | ## Anchors |
| 3 | - system_tests_parameters_defaults: &system_tests_parameters_defaults |
| 4 | name: 'system_tests_parameters_defaults' |
| 5 | parameters: |
| 6 | - string: |
| 7 | name: 'LTTNG_TOOLS_COMMIT_ID' |
| 8 | default: '' |
| 9 | description: 'The lttng-tools commit id to build.' |
| 10 | - string: |
| 11 | name: 'LTTNG_MODULES_COMMIT_ID' |
| 12 | default: '' |
| 13 | description: 'The lttng-modules commit id to build.' |
| 14 | - string: |
| 15 | name: 'LTTNG_UST_COMMIT_ID' |
| 16 | default: '' |
| 17 | description: 'The lttng-ust commit id to build.' |
| 18 | - string: |
| 19 | name: 'KERNEL_TAG_ID' |
| 20 | default: '' |
| 21 | description: 'The linux kernel git tag to build against.' |
| 22 | - string: |
| 23 | name: 'KERNEL_REPO' |
| 24 | default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' |
| 25 | description: 'Linux kernel git repo to checkout the kernel id' |
| 26 | - string: |
| 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' |
| 30 | - string: |
| 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' |
| 34 | - string: |
| 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' |
| 38 | |
| 39 | - publisher: |
| 40 | name: 'system_tests_email_ext_default' |
| 41 | publishers: |
| 42 | - email-ext: |
| 43 | recipients: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com' |
| 44 | reply-to: ci-notification@lists.lttng.org |
| 45 | always: false |
| 46 | unstable: false |
| 47 | first-failure: true |
| 48 | first-unstable: true |
| 49 | not-built: false |
| 50 | aborted: false |
| 51 | regression: false |
| 52 | failure: false |
| 53 | second-failure: false |
| 54 | improvement: false |
| 55 | still-failing: false |
| 56 | success: false |
| 57 | fixed: false |
| 58 | fixed-unhealthy: true |
| 59 | still-unstable: false |
| 60 | pre-build: false |
| 61 | matrix-trigger: only-parent |
| 62 | send-to: |
| 63 | - recipients |
| 64 | |
| 65 | ## Templates |
| 66 | - job-template: |
| 67 | name: baremetal_benchmarks_k{kversion}_l{lttngversion} |
| 68 | description: | |
| 69 | Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations. |
| 70 | project-type: freestyle |
| 71 | node: 'amd64' |
| 72 | |
| 73 | <<: *system_tests_parameters_defaults |
| 74 | |
| 75 | properties: |
| 76 | - build-discarder: |
| 77 | num-to-keep: 10 |
| 78 | - throttle: |
| 79 | max-total: 2 |
| 80 | option: 'category' |
| 81 | categories: |
| 82 | - 'baremetal-tests' |
| 83 | |
| 84 | wrappers: |
| 85 | - workspace-cleanup |
| 86 | - timestamps |
| 87 | - ansicolor |
| 88 | - credentials-binding: |
| 89 | - text: |
| 90 | credential-id: jenkins_lava_key |
| 91 | variable: LAVA_JENKINS_TOKEN |
| 92 | - text: |
| 93 | credential-id: jenkins_lava2_key |
| 94 | variable: LAVA2_JENKINS_TOKEN |
| 95 | - file: |
| 96 | credential-id: system_tests_storage_key |
| 97 | variable: identity_file |
| 98 | - inject: |
| 99 | properties-content: | |
| 100 | BUILD_DEVICE=baremetal |
| 101 | LTTNG_VERSION={lttngversion} |
| 102 | scm: |
| 103 | - git: |
| 104 | url: https://github.com/lttng/lttng-ci |
| 105 | basedir: src/lttng-ci/ |
| 106 | |
| 107 | builders: |
| 108 | - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh |
| 109 | - shell: !include-raw-escape: scripts/system-tests/inject-ssh-commands.sh |
| 110 | - trigger-builds: |
| 111 | - project: "build_kernel_PARAM" |
| 112 | property-file: 'properties.txt' |
| 113 | block: true |
| 114 | - inject: |
| 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 |
| 118 | |
| 119 | publishers: |
| 120 | - archive: |
| 121 | artifacts: '*.png,*.csv' |
| 122 | stable: true |
| 123 | do-not-fingerprint: true |
| 124 | - image-gallery: |
| 125 | - gallery-type: archived-images-gallery |
| 126 | title: Results |
| 127 | includes: '*.png' |
| 128 | - workspace-cleanup |
| 129 | |
| 130 | - job-template: |
| 131 | name: vm_tests_k{kversion}_l{lttngversion} |
| 132 | description: | |
| 133 | Runs root_regression and root_destructive_tests on a virtual machine over different combinations of kernel and lttng configurations. |
| 134 | project-type: freestyle |
| 135 | node: 'amd64' |
| 136 | <<: *system_tests_parameters_defaults |
| 137 | |
| 138 | properties: |
| 139 | - build-discarder: |
| 140 | num-to-keep: 10 |
| 141 | - throttle: |
| 142 | max-total: 4 |
| 143 | option: 'category' |
| 144 | categories: |
| 145 | - 'kvm-tests' |
| 146 | |
| 147 | wrappers: |
| 148 | - workspace-cleanup |
| 149 | - timestamps |
| 150 | - ansicolor |
| 151 | - credentials-binding: |
| 152 | - text: |
| 153 | credential-id: jenkins_lava_key |
| 154 | variable: LAVA_JENKINS_TOKEN |
| 155 | - text: |
| 156 | credential-id: jenkins_lava2_key |
| 157 | variable: LAVA2_JENKINS_TOKEN |
| 158 | - inject: |
| 159 | properties-content: | |
| 160 | BUILD_DEVICE=kvm |
| 161 | LTTNG_VERSION={lttngversion} |
| 162 | |
| 163 | scm: |
| 164 | - git: |
| 165 | url: https://github.com/lttng/lttng-ci |
| 166 | basedir: src/lttng-ci/ |
| 167 | |
| 168 | builders: |
| 169 | - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh |
| 170 | - trigger-builds: |
| 171 | - project: "build_kernel_PARAM" |
| 172 | property-file: 'properties.txt' |
| 173 | block: true |
| 174 | - inject: |
| 175 | properties-file: properties.txt |
| 176 | - shell: !include-raw-escape: scripts/system-tests/run-kvm-tests.sh |
| 177 | |
| 178 | publishers: |
| 179 | - workspace-cleanup |
| 180 | |
| 181 | - job-template: |
| 182 | name: baremetal_tests_k{kversion}_l{lttngversion} |
| 183 | description: | |
| 184 | Runs perf_regression tests on a baremetal machine over different combinations of kernel and lttng configurations. |
| 185 | project-type: freestyle |
| 186 | node: 'amd64' |
| 187 | |
| 188 | <<: *system_tests_parameters_defaults |
| 189 | |
| 190 | properties: |
| 191 | - build-discarder: |
| 192 | num-to-keep: 10 |
| 193 | - throttle: |
| 194 | max-total: 2 |
| 195 | option: 'category' |
| 196 | categories: |
| 197 | - 'baremetal-tests' |
| 198 | |
| 199 | wrappers: |
| 200 | - workspace-cleanup |
| 201 | - timestamps |
| 202 | - ansicolor |
| 203 | - credentials-binding: |
| 204 | - text: |
| 205 | credential-id: jenkins_lava_key |
| 206 | variable: LAVA_JENKINS_TOKEN |
| 207 | - text: |
| 208 | credential-id: jenkins_lava2_key |
| 209 | variable: LAVA2_JENKINS_TOKEN |
| 210 | - inject: |
| 211 | properties-content: | |
| 212 | BUILD_DEVICE=baremetal |
| 213 | LTTNG_VERSION={lttngversion} |
| 214 | |
| 215 | scm: |
| 216 | - git: |
| 217 | url: https://github.com/lttng/lttng-ci |
| 218 | basedir: src/lttng-ci/ |
| 219 | |
| 220 | builders: |
| 221 | - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh |
| 222 | - trigger-builds: |
| 223 | - project: "build_kernel_PARAM" |
| 224 | property-file: 'properties.txt' |
| 225 | block: true |
| 226 | - inject: |
| 227 | properties-file: properties.txt |
| 228 | - shell: !include-raw-escape: scripts/system-tests/run-baremetal-tests.sh |
| 229 | |
| 230 | publishers: |
| 231 | - workspace-cleanup |
| 232 | |
| 233 | - job-template: |
| 234 | name: build_kernel_PARAM |
| 235 | description: | |
| 236 | Builds a Linux Kernel and LTTng Modules if necessary |
| 237 | concurrent: true |
| 238 | node: 'amd64' |
| 239 | |
| 240 | parameters: |
| 241 | - string: |
| 242 | name: 'LTTNG_MODULES_COMMIT_ID' |
| 243 | description: 'The lttng-modules commmit to build.' |
| 244 | - string: |
| 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' |
| 248 | - string: |
| 249 | name: 'KERNEL_COMMIT_ID' |
| 250 | description: 'The kernel commit to build.' |
| 251 | - string: |
| 252 | name: 'KGITREPO' |
| 253 | description: 'The kernel git repo to fetch from' |
| 254 | - string: |
| 255 | name: 'STORAGE_KERNEL_FOLDER' |
| 256 | description: 'Path to store the Kernel image' |
| 257 | - string: |
| 258 | name: 'STORAGE_KERNEL_IMAGE' |
| 259 | description: 'Path to store the Kernel IMAGE' |
| 260 | - string: |
| 261 | name: 'STORAGE_LINUX_MODULES' |
| 262 | description: 'Path to store the Kernel Modules' |
| 263 | - string: |
| 264 | name: 'STORAGE_LTTNG_MODULES' |
| 265 | description: 'Path to store the LTTng Modules' |
| 266 | - string: |
| 267 | name: 'BUILD_DEVICE' |
| 268 | description: 'The target device. (kvm or baremetal)' |
| 269 | - string: |
| 270 | name: 'S3_STORAGE_KERNEL_FOLDER' |
| 271 | description: 'Path to store the Kernel image' |
| 272 | - string: |
| 273 | name: 'S3_STORAGE_KERNEL_IMAGE' |
| 274 | description: 'Path to store the Kernel IMAGE' |
| 275 | - string: |
| 276 | name: 'S3_STORAGE_LINUX_MODULES' |
| 277 | description: 'Path to store the Kernel Modules' |
| 278 | - string: |
| 279 | name: 'S3_STORAGE_LTTNG_MODULES' |
| 280 | description: 'Path to store the LTTng Modules' |
| 281 | |
| 282 | properties: |
| 283 | - build-discarder: |
| 284 | num-to-keep: 100 |
| 285 | |
| 286 | wrappers: |
| 287 | - workspace-cleanup |
| 288 | - timestamps |
| 289 | - ansicolor |
| 290 | - credentials-binding: |
| 291 | - file: |
| 292 | credential-id: system_tests_storage_key |
| 293 | variable: identity_file |
| 294 | |
| 295 | scm: |
| 296 | - git: |
| 297 | url: https://github.com/lttng/lttng-ci |
| 298 | basedir: src/lttng-ci/ |
| 299 | - git: |
| 300 | url : $LTTNG_MODULES_REPO |
| 301 | basedir: src/lttng-modules/ |
| 302 | branches: |
| 303 | - $LTTNG_MODULES_COMMIT_ID |
| 304 | |
| 305 | builders: |
| 306 | - shell: !include-raw-escape: scripts/system-tests/generate-properties-slave.sh |
| 307 | - inject: |
| 308 | properties-file: properties.txt |
| 309 | - shell: !include-raw-escape: scripts/system-tests/check-build-needs.sh |
| 310 | - conditional-step: |
| 311 | condition-kind: not |
| 312 | condition-operand: |
| 313 | condition-kind: file-exists |
| 314 | condition-filename: kernel-built.txt |
| 315 | condition-basedir: workspace |
| 316 | steps: |
| 317 | - shell: !include-raw-escape: scripts/system-tests/build-kernel.sh |
| 318 | - conditional-step: |
| 319 | condition-kind: not |
| 320 | condition-operand: |
| 321 | condition-kind: file-exists |
| 322 | condition-filename: modules-built.txt |
| 323 | condition-basedir: workspace |
| 324 | steps: |
| 325 | - shell: !include-raw-escape: scripts/system-tests/build-modules.sh |
| 326 | |
| 327 | publishers: |
| 328 | - workspace-cleanup |
| 329 | |
| 330 | - job-template: |
| 331 | name: system_ALL_{test_type}_trigger |
| 332 | description: | |
| 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 |
| 335 | |
| 336 | project-type: freestyle |
| 337 | node: 'master' |
| 338 | parameters: |
| 339 | - bool: |
| 340 | name: 'FORCE_JOB_RUN' |
| 341 | default: false |
| 342 | description: 'Force the child jobs to run' |
| 343 | - bool: |
| 344 | name: 'FORCE_FAILED_JOB_RUN' |
| 345 | default: false |
| 346 | description: 'Force the failed child jobs to run' |
| 347 | |
| 348 | properties: |
| 349 | - build-discarder: |
| 350 | num-to-keep: 10 |
| 351 | |
| 352 | triggers: |
| 353 | - timed: "H 0 * * 1-5" |
| 354 | |
| 355 | wrappers: |
| 356 | - timestamps |
| 357 | - ansicolor |
| 358 | |
| 359 | builders: |
| 360 | - system-groovy: |
| 361 | command: |
| 362 | !include-raw-escape: scripts/system-tests/system-trigger.groovy |
| 363 | |
| 364 | publishers: |
| 365 | - system_tests_email_ext_default |
| 366 | |
| 367 | ## Project |
| 368 | |
| 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 |
| 372 | |
| 373 | - project: |
| 374 | name: system-tests |
| 375 | kversion: |
| 376 | - canary |
| 377 | - master |
| 378 | - linux-4.4.y |
| 379 | - linux-4.9.y |
| 380 | - linux-4.14.y |
| 381 | - linux-4.19.y |
| 382 | - linux-5.0.y |
| 383 | - linux-5.1.y |
| 384 | lttngversion: |
| 385 | - canary |
| 386 | - master |
| 387 | - stable-2.10 |
| 388 | - stable-2.11 |
| 389 | - stable-2.12 |
| 390 | jobs: |
| 391 | - 'vm_tests_k{kversion}_l{lttngversion}' |
| 392 | - 'baremetal_benchmarks_k{kversion}_l{lttngversion}' |
| 393 | - 'baremetal_tests_k{kversion}_l{lttngversion}' |
| 394 | - project: |
| 395 | name: system-tests-vm-only |
| 396 | kversion: |
| 397 | - linux-3.18.y |
| 398 | lttngversion: |
| 399 | - master |
| 400 | - stable-2.10 |
| 401 | - stable-2.11 |
| 402 | - stable-2.12 |
| 403 | jobs: |
| 404 | - 'vm_tests_k{kversion}_l{lttngversion}' |
| 405 | |
| 406 | - project: |
| 407 | name: system-general |
| 408 | test_type: |
| 409 | - vm_tests |
| 410 | - baremetal_tests |
| 411 | - baremetal_benchmarks |
| 412 | jobs: |
| 413 | - 'build_kernel_PARAM' |
| 414 | - 'system_ALL_{test_type}_trigger' |