X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=jobs%2Flttng-baremetal-tests.yaml;h=3f055b0defe84518749d609e299ab130cdd87af6;hb=98aca00598dec2826ff66db1c88f2687b2941fa2;hp=573a92714a15ce38556dd15bc8bdf8a11bf3f7c7;hpb=fe4acd56125151eff17edf1a617c6b65b7cdeb74;p=lttng-ci.git diff --git a/jobs/lttng-baremetal-tests.yaml b/jobs/lttng-baremetal-tests.yaml index 573a927..3f055b0 100644 --- a/jobs/lttng-baremetal-tests.yaml +++ b/jobs/lttng-baremetal-tests.yaml @@ -5,16 +5,17 @@ triggers: - pollscm: - cron: "@hourly" - logrotate: - numToKeep: 10 + cron: "H * * * 1-5" properties: + - build-discarder: + num-to-keep: 10 - throttle: max-total: 2 option: 'category' categories: - 'baremetal-tests' + project-type: freestyle node: 'x86-64' wrappers: @@ -33,18 +34,40 @@ TOOLS_BRANCH={lttngversion} UST_BRANCH={lttngversion} BUILD_DEVICE=baremetal + publishers: - archive: artifacts: '*.png,*.csv' stable: true do-not-fingerprint: true - - email: - recipients: 'francis.deslauriers@efficios.com' + - email-ext: + recipients: '{obj:email_to}' + reply-to: ci-notification@lists.lttng.org + 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: false + success: false + fixed: false + fixed-unhealthy: true + still-unstable: false + pre-build: false + matrix-trigger: only-parent + send-to: + - recipients - image-gallery: - gallery-type: archived-images-gallery title: Results includes: '*.png' - workspace-cleanup + scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git @@ -73,6 +96,7 @@ builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh + - shell: !include-raw-escape: scripts/lttng-baremetal-tests/inject-ssh-commands.sh - trigger-builds: - project: "build_kernel_PARAM" property-file: 'properties.txt' @@ -82,23 +106,26 @@ - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-benchmarks.sh - shell: !include-raw-escape: scripts/lttng-baremetal-tests/summarize-results.sh + - defaults: name: vm_tests description: | Runs baremetal kernel tests over different combination of kernel and lttng configurations. project-type: freestyle node: 'master' + properties: + - build-discarder: + num-to-keep: 10 - throttle: max-total: 2 option: 'category' categories: - 'kvm-tests' + triggers: - pollscm: - cron: "@hourly" - logrotate: - numToKeep: 10 + cron: "H * * * 1-5" wrappers: - workspace-cleanup @@ -113,6 +140,7 @@ BUILD_DEVICE=kvm TOOLS_BRANCH={lttngversion} UST_BRANCH={lttngversion} + scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git @@ -140,12 +168,28 @@ basedir: src/linux publishers: - - email: - recipients: 'francis.deslauriers@efficios.com' - - ircbot: - strategy: new-failure-and-fixed - channels: - - name: '#lttng' + - email-ext: + recipients: '{obj:email_to}' + reply-to: ci-notification@lists.lttng.org + 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: false + success: false + fixed: false + fixed-unhealthy: true + still-unstable: false + pre-build: false + matrix-trigger: only-parent + send-to: + - recipients - workspace-cleanup builders: @@ -158,23 +202,74 @@ properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-kvm-tests.sh + +- defaults: + name: vm_tests_kmainline + defaults: vm_tests + + triggers: + - pollscm: + cron: "0 1 * * 1-5" + + wrappers: + - workspace-cleanup + - timestamps + - ansicolor + - credentials-binding: + - text: + credential-id: jenkins_lava_key + variable: LAVA_JENKINS_TOKEN + - inject: + properties-content: | + TOOLS_BRANCH={lttngversion} + MODULES_BRANCH={lttngversion} + UST_BRANCH={lttngversion} + BUILD_DEVICE=baremetal + scm: + - git: + url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git + branches: + - "{lttngversion}" + shallow-clone: true + skip-tag: true + fastpoll: true + basedir: src/lttng-tools + - git: + url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git + branches: + - "{lttngversion}" + shallow-clone: true + skip-tag: true + fastpoll: true + basedir: src/lttng-modules + - git: + url: git://git-mirror.internal.efficios.com/kernel/torvalds/linux.git + refspec: "+refs/tags/*:refs/remotes/origin/tags/*" + branches: + - "master" + fastpoll: true + basedir: src/linux + + - defaults: name: baremetal_tests description: | Runs baremetal kernel tests over different combination of kernel and lttng configurations. project-type: freestyle node: 'master' + properties: + - build-discarder: + num-to-keep: 10 - throttle: max-total: 2 option: 'category' categories: - 'baremetal-tests' + triggers: - pollscm: - cron: "@hourly" - logrotate: - numToKeep: 10 + cron: "H * * * 1-5" wrappers: - workspace-cleanup @@ -188,6 +283,7 @@ properties-content: | UST_BRANCH={lttngversion} BUILD_DEVICE=baremetal + scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git @@ -215,13 +311,29 @@ basedir: src/linux publishers: - - email: - recipients: 'francis.deslauriers@efficios.com' - - ircbot: - strategy: new-failure-and-fixed - channels: - - name: '#lttng' - workspace-cleanup + - email-ext: + recipients: '{obj:email_to}' + reply-to: ci-notification@lists.lttng.org + 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: false + success: false + fixed: false + fixed-unhealthy: true + still-unstable: false + pre-build: false + matrix-trigger: only-parent + send-to: + - recipients builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-master.sh @@ -233,6 +345,7 @@ properties-file: properties.txt - shell: !include-raw-escape: scripts/lttng-baremetal-tests/run-baremetal-tests.sh + - job-template: name: baremetal_benchmarks_k{kversion}_l{lttngversion} defaults: baremetal_benchmarks @@ -243,6 +356,7 @@ name: baremetal_tests_k{kversion}_l{lttngversion} defaults: baremetal_tests + # 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 @@ -250,55 +364,58 @@ name: baremetal_tests_k{kversion}_l{lttngversion}_canary defaults: baremetal_tests triggers: - - timed: "@daily" + - timed: "0 1 * * 1-5" - job-template: name: vm_tests_k{kversion}_l{lttngversion}_canary defaults: vm_tests triggers: - - timed: "@daily" + - timed: "0 1 * * 1-5" - job-template: name: baremetal_benchmarks_k{kversion}_l{lttngversion}_canary defaults: baremetal_benchmarks triggers: - - timed: "@daily" - + - timed: "0 1 * * 1-5" - job-template: name: vm_tests_kmainline_l{lttngversion} - defaults: vm_tests - triggers: - - pollscm: - cron: "@daily" - scm: - - git: - url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git - branches: - - "{lttngversion}" - shallow-clone: true - skip-tag: true - fastpoll: true - basedir: src/lttng-tools - - git: - url: git://git-mirror.internal.efficios.com/lttng/lttng-modules.git - branches: - - "{lttngversion}" - shallow-clone: true - skip-tag: true - fastpoll: true - basedir: src/lttng-modules - - git: - url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git - refspec: "+refs/tags/*:refs/remotes/origin/tags/*" - branches: - - "master" - fastpoll: true - basedir: src/linux + defaults: vm_tests_kmainline + +- job-template: + name: vm_tests_fuzzing_kmainline_l{lttngversion} + defaults: vm_tests_kmainline + + builders: + - shell: !include-raw-escape: scripts/lttng-baremetal-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/lttng-baremetal-tests/run-kvm-fuzzing-tests.sh - job-template: name: baremetal_tests_kmainline_l{lttngversion} defaults: baremetal_tests + triggers: - pollscm: - cron: "@daily" + cron: "0 1 * * 1-5" + + wrappers: + - workspace-cleanup + - timestamps + - ansicolor + - credentials-binding: + - text: + credential-id: jenkins_lava_key + variable: LAVA_JENKINS_TOKEN + - inject: + properties-content: | + TOOLS_BRANCH={lttngversion} + MODULES_BRANCH={lttngversion} + UST_BRANCH={lttngversion} + BUILD_DEVICE=baremetal + scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git @@ -317,19 +434,40 @@ fastpoll: true basedir: src/lttng-modules - git: - url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git + url: git://git-mirror.internal.efficios.com/kernel/torvalds/linux.git refspec: "+refs/tags/*:refs/remotes/origin/tags/*" branches: - "master" fastpoll: true basedir: src/linux + - job-template: name: baremetal_benchmarks_kmainline_l{lttngversion} defaults: baremetal_benchmarks + triggers: - pollscm: - cron: "@daily" + cron: "0 1 * * 1-5" + + wrappers: + - workspace-cleanup + - timestamps + - ansicolor + - credentials-binding: + - text: + credential-id: jenkins_lava_key + variable: LAVA_JENKINS_TOKEN + - file: + credential-id: system_tests_storage_key + variable: identity_file + - inject: + properties-content: | + TOOLS_BRANCH={lttngversion} + MODULES_BRANCH={lttngversion} + UST_BRANCH={lttngversion} + BUILD_DEVICE=baremetal + scm: - git: url: git://git-mirror.internal.efficios.com/lttng/lttng-tools.git @@ -348,24 +486,25 @@ fastpoll: true basedir: src/lttng-modules - git: - url: git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git + url: git://git-mirror.internal.efficios.com/kernel/torvalds/linux.git refspec: "+refs/tags/*:refs/remotes/origin/tags/*" branches: - "master" fastpoll: true basedir: src/linux + - job: name: build_kernel_PARAM description: | Builds a Linux Kernel and LTTng Modules if necessary - defaults: global concurrent: true - - logrotate: - numToKeep: 50 node: 'x86-64' + properties: + - build-discarder: + num-to-keep: 100 + wrappers: - workspace-cleanup - timestamps @@ -374,6 +513,7 @@ - file: credential-id: system_tests_storage_key variable: identity_file + builders: - shell: !include-raw-escape: scripts/lttng-baremetal-tests/generate-properties-slave.sh - inject: @@ -400,6 +540,10 @@ - string: name: 'LTTNG_MODULES_COMMIT_ID' description: 'The lttng-modules commmit to build.' + - 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' - string: name: 'KERNEL_COMMIT_ID' description: 'The kernel commit to build.' @@ -421,20 +565,23 @@ - string: name: 'BUILD_DEVICE' description: 'The target device. (kvm or baremetal)' + publishers: - workspace-cleanup + ## Project - project: name: lttng-kernel-tests + email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com' kversion: - linux-4.4.y - - linux-4.8.y + - linux-4.9.y - v4.8.1 lttngversion: - master - - stable-2.8 - stable-2.9 + - stable-2.10 jobs: - 'vm_tests_k{kversion}_l{lttngversion}' - 'baremetal_benchmarks_k{kversion}_l{lttngversion}' @@ -442,6 +589,7 @@ - project: name: lttng-kernel-tests-oldkernel + email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com' kversion: - linux-3.18.y - linux-4.4.y @@ -454,6 +602,7 @@ - project: name: lttng-kernel-tests-canary + email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com' kversion: - v4.4.9 lttngversion: @@ -466,8 +615,10 @@ - project: name: lttng-kernel-tests-mainline lttngversion: - - v2.8.1 + - master + email_to: 'ci-notification@lists.lttng.org, cc:francis.deslauriers@efficios.com' jobs: - 'vm_tests_kmainline_l{lttngversion}' + - 'vm_tests_fuzzing_kmainline_l{lttngversion}' - 'baremetal_tests_kmainline_l{lttngversion}' - 'baremetal_benchmarks_kmainline_l{lttngversion}'