X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=jobs%2Flttng-modules.yaml;h=8313a0301bfcb6898ac3450ad46209590c391bd8;hb=23ebcd4b370980c414eee8837d5351a64e41221f;hp=82d82f45007daccf4d3b14445622ea112b109eae;hpb=598af4633e637805c844f06513d36a1703f1dc78;p=lttng-ci.git diff --git a/jobs/lttng-modules.yaml b/jobs/lttng-modules.yaml index 82d82f4..8313a03 100644 --- a/jobs/lttng-modules.yaml +++ b/jobs/lttng-modules.yaml @@ -1,16 +1,14 @@ --- +## Defaults - defaults: name: lttng-modules description: | - TODO + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. - project-type: freestyle +
Job is managed by Jenkins Job Builder.
- logrotate: - daysToKeep: -1 - numToKeep: 2 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 + project-type: freestyle wrappers: - workspace-cleanup @@ -19,68 +17,850 @@ scm: - git: - url: git://artifacts.internal.efficios.com/git/linux-stable.git + url: https://github.com/{github_user}/{github_name}.git + browser: githubweb + browser-url: https://github.com/{github_user}/{github_name} branches: - - refs/tags/v{kversion} + - "refs/heads/{mversion}" shallow-clone: true - basedir: linux + fastpoll: true + basedir: src/lttng-modules + wipe-workspace: false + skip-tag: true + + triggers: + - pollscm: + cron: "@hourly" + + properties: + - build-discarder: + num-to-keep: 10 + artifact-num-to-keep: 2 + - github: + url: https://github.com/{github_user}/{github_name} + + publishers: + - workspace-cleanup + - ircbot: <tng-modules_publisher_ircbot_defaults + strategy: statechange-only + message-type: summary + matrix-notifier: only-parent + - 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 + + +## Anchors +- _lttng-modules_build_parameters_defaults: <tng-modules_build_parameters_defaults + name: 'lttng-modules_build_parameters_defaults' + parameters: + - string: + name: 'maxConcurrentBuild' + default: '20' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'kverfloor' + default: '{kverfloor}' + description: 'The lowest kernel version to build.' + - string: + name: 'kverceil' + default: '{kverceil}' + description: 'The highest kernel version to build. (excluded)' + - string: + name: 'kverfilter' + default: '{kverfilter}' + description: 'Kernel versions list filtering strategy.' + - string: + name: 'kverrc' + default: 'true' + description: 'Add latest RC to kernel versions list.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'lttng-modules_PARAM_{parambuildtype}' + description: 'The parametrized job to use for child builds.' + +- _lttng-modules_build_parameters_review: <tng-modules_build_parameters_review + name: 'lttng-modules_build_parameters_review' + parameters: + - string: + name: 'maxConcurrentBuild' + default: '10' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'kverfloor' + default: '{kverfloor}' + description: 'The lowest kernel version to build.' + - string: + name: 'kverceil' + default: '{kverceil}' + description: 'The highest kernel version to build. (excluded)' + - string: + name: 'kverfilter' + default: '{kverfilter}' + description: 'Kernel versions list filtering strategy.' + - string: + name: 'kverrc' + default: 'false' + description: 'Add latest RC to kernel versions list.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'lttng-modules_PARAM_build' + description: 'The parametrized job to use for child builds.' + +- _lttng-modules_build_parameters_ubuntu: <tng-modules_build_parameters_ubuntu + name: 'lttng-modules_build_parameters_ubuntu' + parameters: + - string: + name: 'maxConcurrentBuild' + default: '20' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'kverfloor' + default: '{kverfloor}' + description: 'The lowest kernel version to build.' + - string: + name: 'kverceil' + default: '{kverceil}' + description: 'The highest kernel version to build. (excluded)' + - string: + name: 'kverfilter' + default: '{kverfilter}' + description: 'Kernel versions list filtering strategy.' + - string: + name: 'kverrc' + default: 'false' + description: 'Add latest RC to kernel versions list.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/ubuntu-{uversion}.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'lttng-modules_PARAM_{parambuildtype}' + description: 'The parametrized job to use for child builds.' + - string: + name: 'uversion' + default: '{uversion}' + description: 'The lowest kernel version to build.' + +- _lttng-modules_build_parameters_rt: <tng-modules_build_parameters_rt + name: 'lttng-modules_build_parameters_rt' + parameters: + - string: + name: 'maxConcurrentBuild' + default: '20' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'kverfloor' + default: '{kverfloor}' + description: 'The lowest kernel version to build.' + - string: + name: 'kverceil' + default: '{kverceil}' + description: 'The highest kernel version to build. (excluded)' + - string: + name: 'kverfilter' + default: '{kverfilter}' + description: 'Kernel versions list filtering strategy.' + - string: + name: 'kverrc' + default: 'false' + description: 'Add latest RC to kernel versions list.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/kernel/rt/linux-stable-rt.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'lttng-modules_PARAM_build' + description: 'The parametrized job to use for child builds.' + +- _lttng-modules_build_builders_defaults: <tng-modules_build_builders_defaults + name: 'lttng-modules_build_builders_defaults' + builders: + - system-groovy: + command: + !include-raw-escape: scripts/lttng-modules/master.groovy + +- _lttng-modules_build_rt_builders_defaults: <tng-modules_build_rt_builders_defaults + name: 'lttng-modules_build_rt_builders_defaults' + builders: + - system-groovy: + command: + !include-raw-escape: scripts/lttng-modules/master-rt.groovy + + +## Templates +- job-template: + name: lttng-modules_ALL_trigger-vanilla + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will trigger the build jobs when a new tag is added to the vanilla + and stable kernel trees. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + wrappers: + - timestamps + - ansicolor + + scm: [] + + triggers: + - timed: "@hourly" + + builders: + - system-groovy: + command: + !include-raw-escape: scripts/lttng-modules/trigger-vanilla.groovy + + publishers: [] + +- job-template: + name: lttng-modules_{mversion}_{buildtype}-vanilla + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against stable vanilla + kernel tags. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + <<: *lttng-modules_build_parameters_defaults + <<: *lttng-modules_build_builders_defaults + +- job-template: + name: dev_mjeanson_lttng-modules_{mversion}_{buildtype}-vanilla + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against stable vanilla + kernel tags. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + parameters: + - string: + name: 'maxConcurrentBuild' + default: '20' + description: 'The maximum number of concurrent child build to run.' + - string: + name: 'kverfloor' + default: '{kverfloor}' + description: 'The lowest kernel version to build.' + - string: + name: 'kverceil' + default: '{kverceil}' + description: 'The highest kernel version to build. (excluded)' + - string: + name: 'kverfilter' + default: '{kverfilter}' + description: 'Kernel versions list filtering strategy.' + - string: + name: 'kverrc' + default: 'true' + description: 'Add latest RC to kernel versions list.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + - string: + name: 'kbuildjob' + default: 'dev_mjeanson_lttng-modules_PARAM_{parambuildtype}' + description: 'The parametrized job to use for child builds.' + + <<: *lttng-modules_build_builders_defaults + +- job-template: + name: dev_review_lttng-modules_{mversion}_build + defaults: lttng-modules + concurrent: true + + node: 'master' + + scm: - git: - url: git://github.com/lttng/lttng-modules.git + url: https://review.lttng.org/lttng-modules + refspec: 'refs/changes/*:refs/changes/*' branches: - - "{mversion}" - basedir: lttng-modules + - '$GERRIT_REFSPEC' + basedir: src/lttng-modules + skip-tag: true triggers: - - pollscm: "@yearly" + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'lttng-modules' + branches: + - branch-compare-type: 'PLAIN' + branch-pattern: '{mversion}' properties: + - build-discarder: + days-to-keep: 1 - throttle: - max-per-node: 0 - max-total: 0 + option: 'category' categories: - - 'lttng-module-linux' + - 'gerrit-build' + + <<: *lttng-modules_build_parameters_review + <<: *lttng-modules_build_builders_defaults + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_fullbuild-vanilla + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against all stable vanilla + kernel tags. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + <<: *lttng-modules_build_parameters_defaults + <<: *lttng-modules_build_builders_defaults + + triggers: + - pollscm: + cron: "@midnight" + +- job-template: + name: lttng-modules_{mversion}_{buildtype}-{uversion} + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against Ubuntu {uversion} + released kernels, including the LTS backport kernels. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + <<: *lttng-modules_build_parameters_ubuntu + <<: *lttng-modules_build_builders_defaults + +- job-template: + name: lttng-modules_{mversion}_fullbuild-{uversion} + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against Ubuntu {uversion} + released kernels, including the LTS backport kernels. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + <<: *lttng-modules_build_parameters_ubuntu + <<: *lttng-modules_build_builders_defaults + + triggers: + - pollscm: + cron: "@midnight" + +- job-template: + name: lttng-modules_{mversion}_build-rt + defaults: lttng-modules + description: | + The LTTng modules provide Linux kernel tracing capability to the LTTng + 2.0 tracer toolset. + + This job will build the {mversion} branch against all Linutronix RT + kernels. + +Job is managed by Jenkins Job Builder.
+ + node: 'master' + + <<: *lttng-modules_build_parameters_rt + <<: *lttng-modules_build_rt_builders_defaults + +- job-template: + name: lttng-modules_PARAM_build + defaults: lttng-modules + description: | + This is a parametrized job used by 'master' jobs to build any combinations + of lttng-modules and linux kernel versions. + +Job is managed by Jenkins Job Builder.
+ + project-type: matrix + node: 'master' # Applies only to matrix flyweight task + axes: + - axis: + type: slave + name: platforms + values: '{obj:platforms}' + + properties: + - build-discarder: + days-to-keep: 2 + + parameters: + - string: + name: 'mversion' + default: 'master' + description: 'The lttng-modules branch to build.' + - string: + name: 'mgitrepo' + default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' + description: 'The lttng-modules git repository url.' + - string: + name: 'ktag' + default: '' + description: 'The linux kernel git tag to build against.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + + concurrent: true + + scm: [] + + triggers: [] + + builders: + - shell: + !include-raw-escape: scripts/lttng-modules/param-build.sh + + publishers: + - workspace-cleanup + +- job-template: + name: dev_mjeanson_lttng-modules_PARAM_build + defaults: lttng-modules + description: | + This is a parametrized job used by 'master' jobs to build any combinations + of lttng-modules and linux kernel versions. + +Job is managed by Jenkins Job Builder.
+ + project-type: matrix + node: 'master' # Applies only to matrix flyweight task + axes: + - axis: + type: slave + name: platforms + values: '{obj:platforms}' + + properties: + - build-discarder: + days-to-keep: 2 + + parameters: + - string: + name: 'mversion' + default: 'master' + description: 'The lttng-modules branch to build.' + - string: + name: 'mgitrepo' + default: 'https://github.com/{github_user}/lttng-modules.git' + description: 'The lttng-modules git repository url.' + - string: + name: 'ktag' + default: '' + description: 'The linux kernel git tag to build against.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + + concurrent: true + + scm: [] + + triggers: [] + + builders: + - shell: + !include-raw-escape: scripts/lttng-modules/param-build.sh + + publishers: + - workspace-cleanup -## Templates - job-template: - name: lttng-modules_{mversion}_{kversion}_{buildtype} + name: dev_mjeanson_lttng-modules_PARAM_crossbuild defaults: lttng-modules + description: | + This is a parametrized job used by 'master' jobs to build any combinations + of lttng-modules and linux kernel versions. + +Job is managed by Jenkins Job Builder.
project-type: matrix + node: 'master' # Applies only to matrix flyweight task axes: - axis: - type: slave - name: arch - values: '{obj:arch}' + type: user-defined + name: cross_arch + values: '{obj:cross_arch}' + - axis: + type: slave + name: platforms + values: '{obj:platforms}' + + properties: + - build-discarder: + days-to-keep: 2 + + parameters: + - string: + name: 'mversion' + default: 'master' + description: 'The lttng-modules branch to build.' + - string: + name: 'mgitrepo' + default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' + description: 'The lttng-modules git repository url.' + - string: + name: 'ktag' + default: '' + description: 'The linux kernel git tag to build against.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + + concurrent: true + + scm: [] + + triggers: [] builders: - - copyartifact: - project: kernel_{kversion}_{buildtype}/arch=$arch - which-build: last-successful - stable: true - filter: 'build/**' - target: 'deps/linux' - shell: - !include-raw-escape scripts/lttng-modules/build.sh + !include-raw-escape: scripts/lttng-modules/param-build.sh + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_PARAM_crossbuild + defaults: lttng-modules + description: | + This is a parametrized job used by 'master' jobs to build any combinations + of lttng-modules and linux kernel versions. + +Job is managed by Jenkins Job Builder.
+ + project-type: matrix + node: 'master' # Applies only to matrix flyweight task + axes: + - axis: + type: user-defined + name: cross_arch + values: '{obj:cross_arch}' + - axis: + type: slave + name: platforms + values: '{obj:platforms}' + + properties: + - build-discarder: + days-to-keep: 2 + + parameters: + - string: + name: 'mversion' + default: 'master' + description: 'The lttng-modules branch to build.' + - string: + name: 'mgitrepo' + default: 'git://git-mirror.internal.efficios.com/lttng/lttng-modules.git' + description: 'The lttng-modules git repository url.' + - string: + name: 'ktag' + default: '' + description: 'The linux kernel git tag to build against.' + - string: + name: 'kgitrepo' + default: 'git://git-mirror.internal.efficios.com/git/linux-all.git' + description: 'The linux kernel git repository url.' + + concurrent: true + + scm: [] + + triggers: [] + + builders: + - shell: + !include-raw-escape: scripts/lttng-modules/param-build.sh + + publishers: + - workspace-cleanup + +- job-template: + name: lttng-modules_{mversion}_coverity + defaults: lttng-modules + node: 'amd64' + + triggers: + - pollscm: + cron: "@daily" + + wrappers: + - workspace-cleanup + - timestamps + - ansicolor: + colormap: xterm + - credentials-binding: + - username-password-separated: + credential-id: lttng-modules_coverity_token + username: COVERITY_SCAN_PROJECT_NAME + password: COVERITY_SCAN_TOKEN + + builders: + - shell: | + git clone --depth=1 -b v5.5 --reference $HOME/gitcache/linux-stable.git/ git://git-mirror.internal.efficios.com/kernel/stable/linux-stable.git src/linux + cd src/linux + make allyesconfig + sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config + make modules_prepare + - shell: + !include-raw-escape: scripts/common/coverity.sh publishers: - archive: - artifacts: 'build/**' + artifacts: 'analysis-results.tgz,cov-int/**' allow-empty: false - fingerprint: true + - ircbot: *lttng-modules_publisher_ircbot_defaults + - workspace-cleanup ## Project - project: name: lttng-modules + github_user: lttng + github_name: lttng-modules + email_to: 'ci-notification@lists.lttng.org, cc:mathieu.desnoyers@efficios.com' mversion: - !include jobs/inc/lttng-modules-versions.yaml.inc - kversion: - !include jobs/inc/kernel-versions.yaml.inc + - stable-2.12 + - stable-2.13 + - master + jobs: + +# Vanilla normal builds + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - master + buildtype: build + parambuildtype: build + kverfloor: v4.4 + kverceil: '' + kverfilter: stable-head + - 'lttng-modules_{mversion}_fullbuild-vanilla': + mversion: + - master + buildtype: build + parambuildtype: build + kverfloor: v4.4 + kverceil: '' + kverfilter: none + + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - stable-2.13 + buildtype: build + parambuildtype: build + kverfloor: v3.0 + kverceil: '' + kverfilter: stable-head + - 'lttng-modules_{mversion}_fullbuild-vanilla': + mversion: + - stable-2.13 + buildtype: build + parambuildtype: build + kverfloor: v3.0 + kverceil: '' + kverfilter: none + + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - stable-2.12 + buildtype: build + parambuildtype: build + kverfloor: v3.0 + kverceil: v5.18-rc1 + kverfilter: stable-head + - 'lttng-modules_{mversion}_fullbuild-vanilla': + mversion: + - stable-2.12 + buildtype: build + parambuildtype: build + kverfloor: v3.0 + kverceil: v5.18-rc1 + kverfilter: none + +# RT normal builds + - 'lttng-modules_{mversion}_build-rt': + mversion: master + kverfloor: v4.4.0-rt1-rebase + kverceil: '' + kverfilter: stable-head + +# Ubuntu normal builds + - 'lttng-modules_{mversion}_{buildtype}-{uversion}': + uversion: + - bionic + - focal + - jammy + buildtype: build + parambuildtype: build + kverfloor: '' + kverceil: '' + kverfilter: stable-head + +# Vanilla crossbuilds + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - master + buildtype: crossbuild + parambuildtype: crossbuild + kverfloor: v4.4 + kverceil: '' + kverfilter: stable-head + + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - stable-2.13 + buildtype: crossbuild + parambuildtype: crossbuild + kverfloor: v3.18 + kverceil: '' + kverfilter: stable-head + + - 'lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - stable-2.12 + buildtype: crossbuild + parambuildtype: crossbuild + kverfloor: v3.18 + kverceil: v5.18-rc1 + kverfilter: stable-head + +# Ubuntu cross builds + - 'lttng-modules_{mversion}_{buildtype}-{uversion}': + uversion: + - bionic + buildtype: crossbuild + parambuildtype: crossbuild + kverfloor: '' + kverceil: '' + kverfilter: stable-head + +# Parametrized kernel and modules build jobs + - 'lttng-modules_PARAM_build': + platforms: !!python/tuple [deb12-amd64] + - 'lttng-modules_PARAM_crossbuild': + platforms: !!python/tuple [deb12-amd64] + cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] + +# Misc jobs + - 'lttng-modules_ALL_trigger-vanilla' + - 'lttng-modules_{mversion}_coverity': + mversion: master + +- project: + name: lttng-modules-review + jobs: + - 'dev_review_lttng-modules_{mversion}_build': + mversion: master + kverfloor: v4.4 + kverceil: '' + kverfilter: lts-head + - 'dev_review_lttng-modules_{mversion}_build': + mversion: stable-2.13 + kverfloor: v3.0 + kverceil: '' + kverfilter: lts-head + - 'dev_review_lttng-modules_{mversion}_build': + mversion: stable-2.12 + kverfloor: v3.0 + kverceil: v5.18 + kverfilter: lts-head + +- project: + name: lttng-modules-dev-mjeanson + github_user: mjeanson + github_name: lttng-modules + email_to: '' jobs: - - 'lttng-modules_{mversion}_{kversion}_{buildtype}': + - 'dev_mjeanson_lttng-modules_PARAM_build': + platforms: !!python/tuple [deb12-amd64] + - 'dev_mjeanson_lttng-modules_PARAM_crossbuild': + platforms: !!python/tuple [deb12-amd64] + cross_arch: !!python/tuple [armhf, arm64, powerpc, ppc64el] + - 'dev_mjeanson_lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - master buildtype: build - arch: !!python/tuple [x86-32, x86-64] - - 'lttng-modules_{mversion}_{kversion}_{buildtype}': - buildtype: portbuild - arch: !!python/tuple [armhf, powerpc] + parambuildtype: build + kverfloor: v3.0 + kverceil: '' + kverfilter: stable-head + - 'dev_mjeanson_lttng-modules_{mversion}_{buildtype}-vanilla': + mversion: + - master + buildtype: crossbuild + parambuildtype: crossbuild + kverfloor: v4.4 + kverceil: '' + kverfilter: lts-head