X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Fsystem-tests.yaml;h=49ae463138f283786058877b9d8b277754c4d574;hb=64ed2e0384d168574a1455d384c25db1ad00440d;hp=2419d785599b47b4ef979af077e2568954acffca;hpb=e90e8b16708d1839b47c668f6d78e2db03c4b9ce;p=lttng-ci.git diff --git a/jobs/system-tests.yaml b/jobs/system-tests.yaml index 2419d78..49ae463 100644 --- a/jobs/system-tests.yaml +++ b/jobs/system-tests.yaml @@ -62,13 +62,13 @@ send-to: - recipients -## Defaults -- defaults: - name: baremetal_benchmarks +## Templates +- job-template: + name: baremetal_benchmarks_k{kversion}_l{lttngversion} description: | Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations. project-type: freestyle - node: 'x86-64' + node: 'amd64' <<: *system_tests_parameters_defaults @@ -89,12 +89,16 @@ - 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 + LTTNG_VERSION={lttngversion} scm: - git: url: https://github.com/lttng/lttng-ci @@ -123,19 +127,19 @@ includes: '*.png' - workspace-cleanup -- defaults: - name: vm_tests +- job-template: + name: vm_tests_k{kversion}_l{lttngversion} description: | - Runs virtual machine kernel tests over different combination of kernel and lttng configurations. + Runs root_regression and root_destructive_tests on a virtual machine over different combinations of kernel and lttng configurations. project-type: freestyle - node: 'x86-64' + node: 'amd64' <<: *system_tests_parameters_defaults properties: - build-discarder: num-to-keep: 10 - throttle: - max-total: 2 + max-total: 4 option: 'category' categories: - 'kvm-tests' @@ -148,56 +152,13 @@ - text: credential-id: jenkins_lava_key variable: LAVA_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-tests.sh - - publishers: - - workspace-cleanup - -- defaults: - name: vm_tests_fuzzing - description: | - Runs virtual machine fuzzing tests over different combination of kernel and lttng configurations. - project-type: freestyle - node: 'x86-64' - <<: *system_tests_parameters_defaults - - properties: - - build-discarder: - num-to-keep: 10 - - throttle: - max-total: 2 - option: 'category' - categories: - - 'kvm-tests' - - wrappers: - - workspace-cleanup - - timestamps - - ansicolor - - credentials-binding: - text: - credential-id: jenkins_lava_key - variable: LAVA_JENKINS_TOKEN + credential-id: jenkins_lava2_key + variable: LAVA2_JENKINS_TOKEN - inject: properties-content: | BUILD_DEVICE=kvm + LTTNG_VERSION={lttngversion} scm: - git: @@ -212,17 +173,17 @@ block: true - inject: properties-file: properties.txt - - shell: !include-raw-escape: scripts/system-tests/run-kvm-fuzzing-tests.sh + - shell: !include-raw-escape: scripts/system-tests/run-kvm-tests.sh publishers: - workspace-cleanup -- defaults: - name: baremetal_tests +- job-template: + name: baremetal_tests_k{kversion}_l{lttngversion} description: | - Runs baremetal kernel tests over different combination of kernel and lttng configurations. + Runs perf_regression tests on a baremetal machine over different combinations of kernel and lttng configurations. project-type: freestyle - node: 'x86-64' + node: 'amd64' <<: *system_tests_parameters_defaults @@ -243,9 +204,13 @@ - 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=baremetal + LTTNG_VERSION={lttngversion} scm: - git: @@ -265,13 +230,12 @@ publishers: - workspace-cleanup -## Templates - job-template: name: build_kernel_PARAM description: | Builds a Linux Kernel and LTTng Modules if necessary concurrent: true - node: 'x86-64' + node: 'amd64' parameters: - string: @@ -302,6 +266,18 @@ - string: name: 'BUILD_DEVICE' description: 'The target device. (kvm or baremetal)' + - string: + name: 'S3_STORAGE_KERNEL_FOLDER' + description: 'Path to store the Kernel image' + - string: + name: 'S3_STORAGE_KERNEL_IMAGE' + description: 'Path to store the Kernel IMAGE' + - string: + name: 'S3_STORAGE_LINUX_MODULES' + description: 'Path to store the Kernel Modules' + - string: + name: 'S3_STORAGE_LTTNG_MODULES' + description: 'Path to store the LTTng Modules' properties: - build-discarder: @@ -320,11 +296,6 @@ - git: url: https://github.com/lttng/lttng-ci basedir: src/lttng-ci/ - - git: - url : $KGITREPO - basedir: src/linux/ - branches: - - $KERNEL_COMMIT_ID - git: url : $LTTNG_MODULES_REPO basedir: src/lttng-modules/ @@ -364,13 +335,22 @@ project-type: freestyle node: 'master' + parameters: + - bool: + name: 'FORCE_JOB_RUN' + default: false + description: 'Force the child jobs to run' + - bool: + name: 'FORCE_FAILED_JOB_RUN' + default: false + description: 'Force the failed child jobs to run' properties: - build-discarder: num-to-keep: 10 triggers: - - timed: "H H * * 1-5" + - timed: "H 0 * * 1-5" wrappers: - timestamps @@ -384,75 +364,45 @@ 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 -## Project - project: name: system-tests kversion: + - canary - master - linux-4.4.y - linux-4.9.y + - linux-4.14.y + - linux-4.19.y + - linux-5.0.y + - linux-5.1.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-oldkernel + name: system-tests-vm-only kversion: - linux-3.18.y lttngversion: - - stable-2.7 - jobs: - - 'vm_tests_k{kversion}_l{lttngversion}': - - 'baremetal_tests_k{kversion}_l{lttngversion}': - - 'baremetal_benchmarks_k{kversion}_l{lttngversion}': - -- project: - name: system-tests-canary + - master + - stable-2.10 + - stable-2.11 + - stable-2.12 jobs: - - 'vm_tests_canary' - - 'baremetal_tests_canary' - - 'baremetal_benchmarks_canary' + - 'vm_tests_k{kversion}_l{lttngversion}' -- project: - name: system-fuzzing-tests - kversion: master - lttngversion: master - jobs: - - 'vm_tests_fuzzing_k{kversion}_l{lttngversion}' - project: name: system-general test_type: