X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Fsystem-tests.yaml;h=d9af256748a6591f1d2abcc8f8af009e14acbc54;hb=4d27af8f99434c6dcadf1d22430d4e8a27b8bee2;hp=f038bd8e97de1f61fc792d8029d3cb5e808b6425;hpb=3f0881e94cc2db35d933a87735a682fda994c309;p=lttng-ci.git diff --git a/jobs/system-tests.yaml b/jobs/system-tests.yaml index f038bd8..d9af256 100644 --- a/jobs/system-tests.yaml +++ b/jobs/system-tests.yaml @@ -21,7 +21,7 @@ description: 'The linux kernel git tag to build against.' - string: name: 'KERNEL_REPO' - default: 'git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' + default: 'https://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git' description: 'Linux kernel git repo to checkout the kernel id' - string: name: 'LTTNG_TOOLS_REPO' @@ -62,72 +62,8 @@ send-to: - recipients -## Defaults -- defaults: - name: baremetal_benchmarks - description: | - Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations. - project-type: freestyle - node: 'amd64' - - <<: *system_tests_parameters_defaults - - properties: - - build-discarder: - num-to-keep: 10 - - throttle: - max-total: 2 - option: 'category' - categories: - - 'baremetal-tests' - - wrappers: - - workspace-cleanup - - timestamps - - ansicolor - - credentials-binding: - - text: - credential-id: jenkins_lava_key - variable: LAVA_JENKINS_TOKEN - - text: - credential-id: jenkins_lava2_key - variable: LAVA2_JENKINS_TOKEN - - file: - credential-id: system_tests_storage_key - variable: identity_file - - inject: - properties-content: | - BUILD_DEVICE=baremetal - scm: - - git: - url: https://github.com/lttng/lttng-ci - basedir: src/lttng-ci/ - - builders: - - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh - - shell: !include-raw-escape: scripts/system-tests/inject-ssh-commands.sh - - trigger-builds: - - project: "build_kernel_PARAM" - property-file: 'properties.txt' - block: true - - inject: - properties-file: properties.txt - - shell: !include-raw-escape: scripts/system-tests/run-baremetal-benchmarks.sh - - shell: !include-raw-escape: scripts/system-tests/summarize-results.sh - - publishers: - - archive: - artifacts: '*.png,*.csv' - stable: true - do-not-fingerprint: true - - image-gallery: - - gallery-type: archived-images-gallery - title: Results - includes: '*.png' - - workspace-cleanup - -- defaults: - name: vm_tests +- job-template: + name: vm_tests_k{kversion}_l{lttngversion} description: | Runs root_regression and root_destructive_tests on a virtual machine over different combinations of kernel and lttng configurations. project-type: freestyle @@ -157,6 +93,7 @@ - inject: properties-content: | BUILD_DEVICE=kvm + LTTNG_VERSION={lttngversion} scm: - git: @@ -175,59 +112,30 @@ publishers: - workspace-cleanup + - email-ext: + recipients: '{obj:email_to}' + always: false + unstable: false + first-failure: true + first-unstable: true + not-built: false + aborted: false + regression: false + failure: false + second-failure: false + improvement: false + still-failing: true + success: false + fixed: false + fixed-unhealthy: true + still-unstable: false + pre-build: false + matrix-trigger: only-parent + send-to: + - recipients -- defaults: - name: vm_tests_fuzzing - description: | - Runs virtual machine fuzzing tests over different combination of kernel and lttng configurations. - project-type: freestyle - node: 'amd64' - <<: *system_tests_parameters_defaults - - properties: - - build-discarder: - num-to-keep: 10 - - throttle: - max-total: 4 - option: 'category' - categories: - - 'kvm-tests' - - wrappers: - - workspace-cleanup - - timestamps - - ansicolor - - credentials-binding: - - text: - credential-id: jenkins_lava_key - variable: LAVA_JENKINS_TOKEN - - text: - credential-id: jenkins_lava2_key - variable: LAVA2_JENKINS_TOKEN - - inject: - properties-content: | - BUILD_DEVICE=kvm - - scm: - - git: - url: https://github.com/lttng/lttng-ci - basedir: src/lttng-ci/ - - builders: - - shell: !include-raw-escape: scripts/system-tests/generate-properties-master.sh - - trigger-builds: - - project: "build_kernel_PARAM" - property-file: 'properties.txt' - block: true - - inject: - properties-file: properties.txt - - shell: !include-raw-escape: scripts/system-tests/run-kvm-fuzzing-tests.sh - - publishers: - - workspace-cleanup - -- defaults: - name: baremetal_tests +- job-template: + name: baremetal_tests_k{kversion}_l{lttngversion} description: | Runs perf_regression tests on a baremetal machine over different combinations of kernel and lttng configurations. project-type: freestyle @@ -258,6 +166,7 @@ - inject: properties-content: | BUILD_DEVICE=baremetal + LTTNG_VERSION={lttngversion} scm: - git: @@ -277,7 +186,6 @@ publishers: - workspace-cleanup -## Templates - job-template: name: build_kernel_PARAM description: | @@ -292,7 +200,7 @@ - string: name: 'LTTNG_MODULES_REPO' description: 'The LTTng Modules git repo to fetch from' - default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' + default: 'https://git-mirror.internal.efficios.com/lttng/lttng-modules.git' - string: name: 'KERNEL_COMMIT_ID' description: 'The kernel commit to build.' @@ -412,82 +320,67 @@ publishers: - system_tests_email_ext_default -- job-template: - name: baremetal_benchmarks_k{kversion}_l{lttngversion} - defaults: baremetal_benchmarks -- job-template: - name: vm_tests_k{kversion}_l{lttngversion} - defaults: vm_tests -- job-template: - name: baremetal_tests_k{kversion}_l{lttngversion} - defaults: baremetal_tests - -- job-template: - name: vm_tests_fuzzing_k{kversion}_l{lttngversion} - defaults: vm_tests_fuzzing +## Project # Canary jobs are made to confirm that the whole Lava pipeline is working. # They are scheduled once a day always on the same (LTTng, Kernel) code. If any # of those jobs fails, it means that there is an issue with the configuration -- job-template: - name: baremetal_benchmarks_canary - defaults: baremetal_benchmarks -- job-template: - name: baremetal_tests_canary - defaults: baremetal_tests - -- job-template: - name: vm_tests_canary - defaults: vm_tests +# Only build the "supported" version against the master kernel since +# "unsupported" version do not get backport for new kernel. +- project: + name: system-tests-supported-kmaster + email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com' + kversion: + - master + lttngversion: + - master + - stable-2.11 + - stable-2.12 + jobs: + - 'vm_tests_k{kversion}_l{lttngversion}' + - 'baremetal_tests_k{kversion}_l{lttngversion}' -## Project +# Test against particular linux version. - project: name: system-tests + email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com' kversion: - - master + - canary - linux-4.4.y - linux-4.9.y - linux-4.14.y - linux-4.19.y + - linux-5.0.y + - linux-5.1.y + - linux-5.4.y lttngversion: + - canary - master - - stable-2.9 - stable-2.10 + - stable-2.11 + - stable-2.12 jobs: - 'vm_tests_k{kversion}_l{lttngversion}' - - 'baremetal_benchmarks_k{kversion}_l{lttngversion}' - 'baremetal_tests_k{kversion}_l{lttngversion}' - project: name: system-tests-vm-only + email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com' kversion: - linux-3.18.y lttngversion: - master - - stable-2.9 - stable-2.10 + - stable-2.11 + - stable-2.12 jobs: - 'vm_tests_k{kversion}_l{lttngversion}' -- project: - name: system-tests-canary - jobs: - - 'vm_tests_canary' - - 'baremetal_tests_canary' - - 'baremetal_benchmarks_canary' - -- project: - name: system-fuzzing-tests - kversion: master - lttngversion: master - jobs: - - 'vm_tests_fuzzing_k{kversion}_l{lttngversion}' - project: name: system-general test_type: - vm_tests - baremetal_tests - - baremetal_benchmarks jobs: - 'build_kernel_PARAM' - 'system_ALL_{test_type}_trigger'