X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=jobs%2Fbabeltrace.yaml;h=5d9e7d6e3ba62e6726dab6e4ab889ac69d8b3eaf;hb=f172adcf8586f3422470878585a56d8bf8cc27fc;hp=f733fce01f14772c1664d756eebbdbf736778c20;hpb=1722d4cb5294835c862fc49261d3730830d71e49;p=lttng-ci.git
diff --git a/jobs/babeltrace.yaml b/jobs/babeltrace.yaml
index f733fce..5d9e7d6 100644
--- a/jobs/babeltrace.yaml
+++ b/jobs/babeltrace.yaml
@@ -26,7 +26,7 @@
- workspace-cleanup
scm:
- - git:
+ - git: &babeltrace_scm_git_default
url: https://github.com/{github_user}/{github_name}.git
browser: githubweb
browser-url: https://github.com/{github_user}/{github_name}
@@ -44,13 +44,14 @@
properties-content: |
PROJECT_NAME=babeltrace
- build-discarder:
- num-to-keep: 2
+ num-to-keep: 10
+ artifact-num-to-keep: 2
- github:
url: https://github.com/{github_user}/{github_name}
## Anchors
-- babeltrace_matrix_axes_defaults: &babeltrace_matrix_axes_defaults
+- job-template: &babeltrace_matrix_axes_defaults
name: 'babeltrace_matrix_axes_defaults'
project-type: matrix
node: 'master' # Applies only to matrix flyweight task
@@ -60,10 +61,10 @@
expr: '{touchstone}'
result: unstable
axes:
- - axis: &babeltrace_matrix_axis_arch
+ - axis: &babeltrace_matrix_axis_platform
type: slave
- name: arch
- values: '{obj:archs}'
+ name: platform
+ values: '{obj:platforms}'
- axis: &babeltrace_matrix_axis_conf
type: user-defined
name: conf
@@ -73,13 +74,13 @@
name: build
values: '{obj:builds}'
-- babeltrace_matrix_axes_cc: &babeltrace_matrix_axes_cc
+- job-template: &babeltrace_matrix_axes_cc
name: 'babeltrace_matrix_axes_cc'
<<: *babeltrace_matrix_axes_defaults
axes:
- - axis: *babeltrace_matrix_axis_arch
+ - axis: *babeltrace_matrix_axis_platform
- axis: *babeltrace_matrix_axis_conf
- axis: *babeltrace_matrix_axis_build
- axis: &babeltrace_matrix_axis_cc
@@ -87,7 +88,7 @@
name: cc
values: '{obj:ccs}'
-- babeltrace_builders_defaults: &babeltrace_builders_defaults
+- job-template: &babeltrace_builders_defaults
name: 'babeltrace_builders_defaults'
builders:
!j2-yaml: |
@@ -95,7 +96,7 @@
- conditional-step:
condition-kind: strings-match
on-evaluation-failure: run
- condition-string1: {{ '${{arch}}' }}
+ condition-string1: {{ '${{platform}}' }}
condition-string2: 'cygwin64'
steps:
- shell:
@@ -107,7 +108,7 @@
- conditional-step:
condition-kind: strings-match
on-evaluation-failure: run
- condition-string1: {{ '${{arch}}' }}
+ condition-string1: {{ '${{platform}}' }}
condition-string2: 'msys2-mingw32'
steps:
- inject:
@@ -121,7 +122,7 @@
- conditional-step:
condition-kind: strings-match
on-evaluation-failure: run
- condition-string1: {{ '${{arch}}' }}
+ condition-string1: {{ '${{platform}}' }}
condition-string2: 'msys2-mingw64'
steps:
- inject:
@@ -140,14 +141,14 @@
{% endif %}
# Use - in version number since yaml anchor do not support dot
-- babeltrace_builders_glib-2-28-6: &babeltrace_builders_glib-2-28-6
+- job-template: &babeltrace_builders_glib-2-28-6
name: 'babeltrace_builders_glib-2-28-6'
builders:
- inject:
properties-content: |
LD_LIBRARY_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib
PKG_CONFIG_PATH=$WORKSPACE/glib-2.28.6/BUILD_RESULT/lib/pkgconfig
- arch=amd64
+ platform=bionic-amd64
conf=std
build=std
- shell: |
@@ -163,13 +164,15 @@
- scripts/common/print.sh
- scripts/babeltrace/build.sh
-- babeltrace_publishers_defaults: &babeltrace_publishers_defaults
+- job-template: &babeltrace_publishers_defaults
name: 'babeltrace_publishers_defaults'
publishers:
- tap: &babeltrace_publisher_tap_defaults
results: 'tap/**/*.log'
fail-if-no-results: true
failed-tests-mark-build-as-failure: true
+ include-comment-diagnostics: true
+ output-tap-to-console: false
todo-is-failure: false
- raw: &babeltrace_publisher_warnings-ng_defaults
xml: |
@@ -183,14 +186,6 @@
false
-
-
-
-
-
-
- false
-
@@ -220,11 +215,15 @@
- archive: &babeltrace_publisher_archive_defaults
- artifacts: 'build/**,tap/**'
+ artifacts: 'build/**,tap/**,log/**'
allow-empty: false
- workspace-cleanup: &babeltrace_publisher_workspace-cleanup_defaults
clean-if:
- failure: false
+ - ircbot: &babeltrace_publisher_ircbot_defaults
+ strategy: statechange-only
+ message-type: summary-scm
+ matrix-notifier: only-configurations
- email-ext: &babeltrace_publisher_email-ext_defaults
recipients: '{obj:email_to}'
reply-to: ci-notification@lists.lttng.org
@@ -248,8 +247,8 @@
send-to:
- recipients
-- babeltrace_publishers_gerrit: &babeltrace_publishers_gerrit
- name: 'babeltrace_publishers_gerrit'
+- job-template: &babeltrace_publishers_review
+ name: 'babeltrace_publishers_review'
publishers:
- tap: *babeltrace_publisher_tap_defaults
# Fail job on any compiler warnings
@@ -265,14 +264,6 @@
false
-
-
-
-
-
-
- false
-
@@ -324,12 +315,12 @@
<<: *babeltrace_publishers_defaults
- job-template:
- name: dev_gerrit_babeltrace_{buildtype}
+ name: 'dev_review_babeltrace_{version}_{buildtype}'
defaults: babeltrace
concurrent: true
scm:
- - git:
+ - git: &babeltrace_scm_git_review
url: https://review.lttng.org/babeltrace
refspec: 'refs/changes/*:refs/changes/*'
branches:
@@ -338,7 +329,7 @@
skip-tag: true
triggers:
- - gerrit:
+ - gerrit: &babeltrace_trigger_gerrit_defaults
trigger-on:
- comment-added-event:
approval-category: 'CI-Build'
@@ -347,8 +338,8 @@
- project-compare-type: 'PLAIN'
project-pattern: 'babeltrace'
branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**'
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: '{version}'
properties:
- inject:
@@ -363,67 +354,20 @@
<<: *babeltrace_matrix_axes_defaults
<<: *babeltrace_builders_defaults
- <<: *babeltrace_publishers_gerrit
+ <<: *babeltrace_publishers_review
- job-template:
- name: babeltrace_{version}_release
- defaults: babeltrace
- node: 'amd64'
-
- triggers:
- - pollscm:
- cron: "@daily"
-
- scm:
- - git:
- url: https://github.com/{github_user}/{github_name}.git
- browser: githubweb
- browser-url: https://github.com/{github_user}/{github_name}
- refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
- branches:
- - '*/tags/{version}.*'
- basedir: src/babeltrace
-
- builders:
- - shell:
- !include-raw-escape: scripts/babeltrace/release.sh
-
- publishers:
- - tap: *babeltrace_publisher_tap_defaults
- - raw: *babeltrace_publisher_warnings-ng_defaults
- - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
- - archive:
- artifacts: 'out/**,tap/**'
- allow-empty: false
-
-- job-template:
- name: dev_gerrit_babeltrace_pylint
+ name: 'dev_review_babeltrace_{version}_pylint'
defaults: babeltrace
concurrent: true
scm:
- - git:
- url: https://review.lttng.org/babeltrace
- refspec: 'refs/changes/*:refs/changes/*'
- branches:
- - '$GERRIT_REFSPEC'
- basedir: src/babeltrace
- skip-tag: true
+ - git: *babeltrace_scm_git_review
triggers:
- - gerrit:
- trigger-on:
- - comment-added-event:
- approval-category: 'CI-Build'
- approval-value: 1
- projects:
- - project-compare-type: 'PLAIN'
- project-pattern: 'babeltrace'
- branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**'
+ - gerrit: *babeltrace_trigger_gerrit_defaults
- node: 'amd64'
+ node: 'bionic-amd64'
builders:
- shell:
@@ -437,30 +381,39 @@
days-to-keep: 1
- job-template:
- name: babeltrace_{version}_cppcheck
+ name: babeltrace_{version}_release
defaults: babeltrace
+ node: 'bionic-amd64'
triggers:
- pollscm:
cron: "@daily"
+ scm:
+ - git:
+ <<: *babeltrace_scm_git_default
+ refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
+ branches:
+ - '*/tags/{version}.*'
+
builders:
- - shell: |
- rm -f cppcheck-result.xml
- cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/babeltrace 2> cppcheck-result.xml
+ - shell:
+ !include-raw-escape: scripts/babeltrace/release.sh
publishers:
+ - tap: *babeltrace_publisher_tap_defaults
+ - raw: *babeltrace_publisher_warnings-ng_defaults
- workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
- archive:
- artifacts: 'cppcheck-result.xml'
+ artifacts: 'out/**,tap/**'
allow-empty: false
- - cppcheck:
- pattern: 'cppcheck-result.xml'
+ fingerprint: true
+ - ircbot: *babeltrace_publisher_ircbot_defaults
- job-template:
name: babeltrace_{version}_scan-build
defaults: babeltrace
- node: 'amd64'
+ node: 'bionic-amd64'
triggers:
- pollscm:
@@ -476,11 +429,12 @@
name: 'HTML Report'
dir: 'scan-build-archive/'
files: 'index.html'
+ - ircbot: *babeltrace_publisher_ircbot_defaults
- job-template:
name: babeltrace_{version}_coverity
defaults: babeltrace
- node: 'amd64'
+ node: 'bionic-amd64'
triggers:
- pollscm:
@@ -506,11 +460,12 @@
- archive:
artifacts: 'analysis-results.tgz,cov-int/**'
allow-empty: false
+ - ircbot: *babeltrace_publisher_ircbot_defaults
- job-template:
name: babeltrace_{version}_pylint
defaults: babeltrace
- node: 'amd64'
+ node: 'bionic-amd64'
triggers:
- pollscm:
@@ -525,12 +480,13 @@
- archive:
artifacts: 'black.out,flake8.out'
allow-empty: false
+ - ircbot: *babeltrace_publisher_ircbot_defaults
- email-ext: *babeltrace_publisher_email-ext_defaults
- job-template:
name: '{job_prefix}babeltrace_{version}_glib-2.28.6'
defaults: babeltrace
- node: 'amd64'
+ node: 'bionic-amd64'
<<: *babeltrace_builders_glib-2-28-6
<<: *babeltrace_publishers_defaults
@@ -554,58 +510,72 @@
- stable-2.0
- master
jobs:
+ - '{job_prefix}babeltrace_{version}_{buildtype}':
+ buildtype: linuxbuild
+ platforms: !!python/tuple [jammy-amd64]
+ builds: !!python/tuple [std, oot, dist, oot-dist]
+ confs: !!python/tuple [std, static, prod, min, doc, asan]
+ filter: '(build=="std") || (conf=="std") || (conf=="doc")'
+ touchstone: '(build == "std") && (conf == "std")'
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: build
- archs: !!python/tuple [amd64]
+ platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
- confs: !!python/tuple [std, static, prod, min]
- filter: ''
+ confs: !!python/tuple [std, static, prod, min, doc, asan]
+ filter: '(build=="std") || (conf=="std") || (conf=="doc")'
touchstone: '(build == "std") && (conf == "std")'
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: portbuild
- archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
+ platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
- touchstone: '(build == "std") && (conf == "std") && (arch == "i386")'
+ touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: slesbuild
- archs: !!python/tuple [sles12sp5]
+ platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
touchstone: ''
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: elbuild
- archs: !!python/tuple [el8, el9]
+ platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
touchstone: ''
+ - '{job_prefix}babeltrace_{version}_{buildtype}':
+ buildtype: yoctobuild
+ platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std]
+ filter: ''
+ touchstone: ''
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: macosbuild
- archs: !!python/tuple [macos-amd64, macos-arm64]
+ platforms: !!python/tuple [macos-amd64, macos-arm64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
touchstone: ''
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: freebsdbuild
- archs: !!python/tuple [freebsd]
+ platforms: !!python/tuple [freebsd-amd64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
touchstone: ''
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: winbuild
- archs: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
+ platforms: !!python/tuple [cygwin64, msys2-mingw32, msys2-mingw64]
builds: !!python/tuple [std]
confs: !!python/tuple [std]
filter: ''
touchstone: ''
- 'babeltrace_{version}_{cctype}':
cctype: clangbuild
- archs: !!python/tuple [amd64]
+ platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, static, prod]
ccs: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7]
@@ -613,7 +583,6 @@
touchstone: ''
- 'babeltrace_{version}_release':
version: v2.0
- - 'babeltrace_{version}_cppcheck'
- 'babeltrace_{version}_scan-build'
- 'babeltrace_{version}_pylint'
- 'babeltrace_{version}_coverity':
@@ -622,33 +591,43 @@
version: master
- project:
- name: gerrit-babeltrace
+ name: review-babeltrace
job_prefix: ''
github_user: efficios
github_name: babeltrace
+ version:
+ - stable-2.0
+ - master
jobs:
- - 'dev_gerrit_babeltrace_{buildtype}':
+ - 'dev_review_babeltrace_{version}_{buildtype}':
buildtype: build
- archs: !!python/tuple [amd64, armhf, arm64, powerpc, ppc64el, i386]
+ platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
confs: !!python/tuple [std, static, prod, min]
- filter: '(build=="std" && conf=="std") || (arch=="amd64")'
+ filter: ''
touchstone: ''
- - 'dev_gerrit_babeltrace_{buildtype}':
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ buildtype: portbuild
+ platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std]
+ filter: ''
+ touchstone: ''
+ - 'dev_review_babeltrace_{version}_{buildtype}':
buildtype: macosbuild
- archs: !!python/tuple [macos-amd64, macos-arm64]
+ platforms: !!python/tuple [macos-amd64, macos-arm64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
touchstone: ''
- - 'dev_gerrit_babeltrace_{buildtype}':
+ - 'dev_review_babeltrace_{version}_{buildtype}':
buildtype: winbuild
- archs: !!python/tuple [cygwin64, msys2-mingw64]
+ platforms: !!python/tuple [cygwin64, msys2-mingw64]
builds: !!python/tuple [std]
confs: !!python/tuple [std]
filter: ''
touchstone: ''
- - 'dev_gerrit_babeltrace_pylint'
+ - 'dev_review_babeltrace_{version}_pylint'
- project:
@@ -661,33 +640,35 @@
- stable-1.5
jobs:
- '{job_prefix}babeltrace_{version}_{buildtype}':
- buildtype: build
- archs: !!python/tuple [amd64]
+ buildtype: linuxbuild
+ platforms: !!python/tuple [jammy-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
confs: !!python/tuple [std, static, python-bindings]
filter: ''
touchstone: '(build == "std") && (conf == "std")'
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: portbuild
- archs: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386]
+ platforms: !!python/tuple [deb11-armhf, deb11-arm64, deb11-ppc64el, deb11-i386]
builds: !!python/tuple [std]
confs: !!python/tuple [std, python-bindings]
filter: ''
- touchstone: '(build == "std") && (conf == "std") && (arch == "i386")'
+ touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: slesbuild
- archs: !!python/tuple [sles12sp5]
+ platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
builds: !!python/tuple [std]
confs: !!python/tuple [std]
filter: ''
touchstone: ''
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: elbuild
- archs: !!python/tuple [el8, el9]
+ platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
builds: !!python/tuple [std]
confs: !!python/tuple [std]
filter: ''
touchstone: ''
+ - 'babeltrace_{version}_release':
+ version: v1.5
- project:
@@ -701,14 +682,14 @@
jobs:
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: build
- archs: !!python/tuple [amd64]
+ platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
confs: !!python/tuple [std, static, python-bindings]
filter: ''
touchstone: ''
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: macosbuild
- archs: !!python/tuple [macos-amd64, macos-arm64]
+ platforms: !!python/tuple [macos-amd64, macos-arm64]
builds: !!python/tuple [std]
confs: !!python/tuple [std]
filter: ''
@@ -730,14 +711,14 @@
- master-staging
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: build
- archs: !!python/tuple [amd64]
+ platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
confs: !!python/tuple [std, static, prod, min]
filter: ''
touchstone: ''
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: macosbuild
- archs: !!python/tuple [macos-amd64, macos-arm64]
+ platforms: !!python/tuple [macos-amd64, macos-arm64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''