X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Fbabeltrace.yaml;h=89722c37d3027b473e4865a20c9dabdec858d803;hb=12f9184b520a093fd50d72a3925cba54fa6fd95f;hp=c122f110c79bb3606f6b27e31290d864222b8760;hpb=fe921afa5b95c4d98210ba485ba16753389183ac;p=lttng-ci.git
diff --git a/jobs/babeltrace.yaml b/jobs/babeltrace.yaml
index c122f11..89722c3 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}
@@ -51,7 +51,7 @@
## 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
@@ -74,7 +74,7 @@
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
@@ -88,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: |
@@ -141,20 +141,21 @@
{% 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
- platform=bionic-amd64
+ platform=deb12-amd64
conf=std
build=std
- shell: |
- wget http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.6.tar.gz
- tar xvf glib-2.28.6.tar.gz
+ curl -OL 'https://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.6.tar.gz'
+ tar xf glib-2.28.6.tar.gz
cd glib-2.28.6
+ sed -i 's/sys\/types\.h/sys\/sysmacros\.h/' gio/gdbusmessage.c # Fix build failure with recent glibc
mkdir BUILD_RESULT
./configure --prefix=$WORKSPACE/glib-2.28.6/BUILD_RESULT
make -j `nproc` >/dev/null 2>&1 # Hide warnings
@@ -164,13 +165,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: |
@@ -184,14 +187,6 @@
false
-
-
-
-
-
-
- false
-
@@ -221,11 +216,16 @@
- archive: &babeltrace_publisher_archive_defaults
- artifacts: 'build/**,tap/**'
+ artifacts: 'build/**,tap/**,log/**'
+ follow-symlinks: true
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
+ matrix-notifier: only-parent
- email-ext: &babeltrace_publisher_email-ext_defaults
recipients: '{obj:email_to}'
reply-to: ci-notification@lists.lttng.org
@@ -249,8 +249,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
@@ -266,14 +266,6 @@
false
-
-
-
-
-
-
- false
-
@@ -296,7 +288,7 @@
1
TOTAL
- FAILED
+ {warnings_status}
AGGREGATION_TOOLS
@@ -325,12 +317,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:
@@ -339,7 +331,7 @@
skip-tag: true
triggers:
- - gerrit:
+ - gerrit: &babeltrace_trigger_gerrit_defaults
trigger-on:
- comment-added-event:
approval-category: 'CI-Build'
@@ -348,8 +340,8 @@
- project-compare-type: 'PLAIN'
project-pattern: 'babeltrace'
branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**'
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: '{version}'
properties:
- inject:
@@ -364,72 +356,92 @@
<<: *babeltrace_matrix_axes_defaults
<<: *babeltrace_builders_defaults
- <<: *babeltrace_publishers_gerrit
+ <<: *babeltrace_publishers_review
- job-template:
- name: babeltrace_{version}_release
+ name: 'dev_review_babeltrace_{version}_pylint'
defaults: babeltrace
- node: 'bionic-amd64'
+ concurrent: true
+
+ scm:
+ - git: *babeltrace_scm_git_review
triggers:
- - pollscm:
- cron: "@daily"
+ - gerrit: *babeltrace_trigger_gerrit_defaults
- 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
+ node: 'deb12-amd64'
builders:
- shell:
- !include-raw-escape: scripts/babeltrace/release.sh
+ !include-raw-escape: scripts/babeltrace/pylint.sh
+
+ properties:
+ - inject:
+ properties-content: |
+ PROJECT_NAME=babeltrace
+ - build-discarder:
+ days-to-keep: 1
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
- fingerprint: true
- job-template:
- name: dev_gerrit_babeltrace_pylint
+ name: 'dev_review_babeltrace_{version}_smokebuild'
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:
+ - gerrit: &babeltrace_trigger_gerrit_smoke
trigger-on:
- comment-added-event:
- approval-category: 'CI-Build'
+ approval-category: 'Smoke-Build-Lvl1'
approval-value: 1
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'babeltrace'
branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**'
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: '{version}'
+ skip-vote:
+ successful: true
+ failed: true
+ unstable: true
+ notbuilt: true
+ aborted: true
- node: 'bionic-amd64'
+ properties:
+ - inject:
+ properties-content: |
+ PROJECT_NAME=babeltrace
+ BABELTRACE_RUN_TESTS=no
+ - build-discarder:
+ days-to-keep: 1
+
+ <<: *babeltrace_matrix_axes_defaults
+ <<: *babeltrace_builders_defaults
+
+ publishers:
+ - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
+
+- job-template:
+ name: 'dev_review_babeltrace_{version}_check-format'
+ defaults: babeltrace
+ concurrent: true
+
+ scm:
+ - git: *babeltrace_scm_git_review
+
+ triggers:
+ - gerrit: *babeltrace_trigger_gerrit_smoke
+
+ node: 'deb12-amd64'
builders:
- shell:
- !include-raw-escape: scripts/babeltrace/pylint.sh
+ !include-raw-escape: scripts/common/check-format.sh
properties:
- inject:
@@ -438,10 +450,46 @@
- build-discarder:
days-to-keep: 1
+ publishers:
+ - archive:
+ artifacts: 'clang-format-fixes.diff'
+ allow-empty: true
+ - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
+
+- job-template:
+ name: babeltrace_{version}_release
+ defaults: babeltrace
+ node: 'deb12-amd64'
+
+ triggers:
+ - pollscm:
+ cron: "@daily"
+
+ scm:
+ - git:
+ <<: *babeltrace_scm_git_default
+ refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
+ branches:
+ - '*/tags/{version}.*'
+
+ 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
+ fingerprint: true
+ - ircbot: *babeltrace_publisher_ircbot_defaults
+
- job-template:
name: babeltrace_{version}_scan-build
defaults: babeltrace
- node: 'bionic-amd64'
+ node: 'deb12-amd64'
triggers:
- pollscm:
@@ -457,11 +505,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: 'bionic-amd64'
+ node: 'deb12-amd64'
triggers:
- pollscm:
@@ -487,11 +536,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: 'bionic-amd64'
+ node: 'deb12-amd64'
triggers:
- pollscm:
@@ -506,12 +556,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: 'bionic-amd64'
+ node: 'deb12-amd64'
<<: *babeltrace_builders_glib-2-28-6
<<: *babeltrace_publishers_defaults
@@ -537,39 +588,46 @@
jobs:
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: linuxbuild
- platforms: !!python/tuple [jammy-amd64]
+ platforms: !!python/tuple [deb12-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
- confs: !!python/tuple [std, static, prod, min, doc]
- 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: build
platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
- confs: !!python/tuple [std, static, prod, min, doc]
- 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
- platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
+ platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
- touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
+ touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: slesbuild
- platforms: !!python/tuple [sles12sp5-amd64]
+ 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
- platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
+ platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64, el7-arm64, el8-arm64, el9-arm64]
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
platforms: !!python/tuple [macos-amd64, macos-arm64]
@@ -593,10 +651,10 @@
touchstone: ''
- 'babeltrace_{version}_{cctype}':
cctype: clangbuild
- platforms: !!python/tuple [bionic-amd64]
+ platforms: !!python/tuple [deb12-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]
+ ccs: !!python/tuple [clang-13, clang-14, clang-15]
filter: ''
touchstone: ''
- 'babeltrace_{version}_release':
@@ -609,33 +667,99 @@
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}':
- buildtype: build
- platforms: !!python/tuple [bionic-amd64, deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
+ ## Master ##
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: master
+ buildtype: linuxbuild
+ platforms: !!python/tuple [deb12-amd64]
+ builds: !!python/tuple [std, oot, dist, oot-dist]
+ confs: !!python/tuple [std, static, prod, min]
+ filter: ''
+ touchstone: ''
+ warnings_status: FAILED
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: master
+ buildtype: portbuild
+ platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std]
+ filter: ''
+ touchstone: ''
+ warnings_status: FAILED
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: master
+ buildtype: macosbuild
+ platforms: !!python/tuple [macos-amd64, macos-arm64]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std, prod]
+ filter: ''
+ touchstone: ''
+ warnings_status: FAILED
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: master
+ buildtype: winbuild
+ platforms: !!python/tuple [cygwin64, msys2-mingw64]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std]
+ filter: ''
+ touchstone: ''
+ warnings_status: FAILED
+
+ ## Stable 2.0 ##
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: stable-2.0
+ buildtype: linuxbuild
+ platforms: !!python/tuple [deb12-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
confs: !!python/tuple [std, static, prod, min]
- filter: '(build=="std" && conf=="std") || (platform=="bionic-amd64")'
+ filter: ''
touchstone: ''
- - 'dev_gerrit_babeltrace_{buildtype}':
+ warnings_status: WARNING
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: stable-2.0
+ buildtype: portbuild
+ platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std]
+ filter: ''
+ touchstone: ''
+ warnings_status: WARNING
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: stable-2.0
buildtype: macosbuild
platforms: !!python/tuple [macos-amd64, macos-arm64]
builds: !!python/tuple [std]
confs: !!python/tuple [std, prod]
filter: ''
touchstone: ''
- - 'dev_gerrit_babeltrace_{buildtype}':
+ warnings_status: WARNING
+ - 'dev_review_babeltrace_{version}_{buildtype}':
+ version: stable-2.0
buildtype: winbuild
platforms: !!python/tuple [cygwin64, msys2-mingw64]
builds: !!python/tuple [std]
confs: !!python/tuple [std]
filter: ''
touchstone: ''
- - 'dev_gerrit_babeltrace_pylint'
+ warnings_status: WARNING
+
+ ## ALL ##
+ - 'dev_review_babeltrace_{version}_smokebuild':
+ platforms: !!python/tuple [deb12-amd64]
+ builds: !!python/tuple [oot-dist]
+ confs: !!python/tuple [std]
+ filter: ''
+ touchstone: ''
+ - 'dev_review_babeltrace_{version}_check-format'
+ - 'dev_review_babeltrace_{version}_pylint'
- project:
@@ -649,21 +773,21 @@
jobs:
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: linuxbuild
- platforms: !!python/tuple [jammy-amd64]
+ platforms: !!python/tuple [deb12-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
- platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
+ platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
builds: !!python/tuple [std]
confs: !!python/tuple [std, python-bindings]
filter: ''
- touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
+ touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
- '{job_prefix}babeltrace_{version}_{buildtype}':
buildtype: slesbuild
- platforms: !!python/tuple [sles12sp5-amd64]
+ platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
builds: !!python/tuple [std]
confs: !!python/tuple [std]
filter: ''
@@ -689,8 +813,8 @@
- stable-1.5-staging
jobs:
- '{job_prefix}babeltrace_{version}_{buildtype}':
- buildtype: build
- platforms: !!python/tuple [bionic-amd64]
+ buildtype: linuxbuild
+ platforms: !!python/tuple [deb12-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
confs: !!python/tuple [std, static, python-bindings]
filter: ''
@@ -718,8 +842,8 @@
version:
- master-staging
- '{job_prefix}babeltrace_{version}_{buildtype}':
- buildtype: build
- platforms: !!python/tuple [bionic-amd64]
+ buildtype: linuxbuild
+ platforms: !!python/tuple [deb12-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
confs: !!python/tuple [std, static, prod, min]
filter: ''
@@ -732,6 +856,30 @@
filter: ''
touchstone: ''
+- project:
+ name: babeltrace2-mjeanson
+ job_prefix: 'dev_mjeanson_'
+ github_user: efficios
+ github_name: babeltrace
+ email_to: "mjeanson@efficios.com"
+ version:
+ - master
+ jobs:
+ - '{job_prefix}babeltrace_{version}_{buildtype}':
+ buildtype: portbuild
+ platforms: !!python/tuple [sid-riscv64]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std, prod]
+ filter: ''
+ touchstone: ''
+ - '{job_prefix}babeltrace_{version}_{buildtype}':
+ buildtype: build
+ platforms: !!python/tuple [deb12-amd64]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [std, prod]
+ filter: ''
+ touchstone: ''
+
- project:
name: babeltrace-views
views: