X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=jobs%2Flttng-tools.yaml;h=a8c267e98b0fb28c73eb1d8256dc7849e8387890;hb=8d093cb2e5d11aa49221bafc702c07f883c6213e;hp=df09f856d10f97cb3522d53250402dc160c982b8;hpb=ee4b760abf60e1d139cab33d5d5f0f4403723b8e;p=lttng-ci.git
diff --git a/jobs/lttng-tools.yaml b/jobs/lttng-tools.yaml
index df09f85..a8c267e 100644
--- a/jobs/lttng-tools.yaml
+++ b/jobs/lttng-tools.yaml
@@ -17,7 +17,7 @@
colormap: xterm
- timeout: <tng-tools_wrapper_timeout_defaults
timeout: 30
- fail: true
+ abort: true
type: no-activity
write-description: "
This build failed due to timeout.
"
- timestamps
@@ -48,7 +48,7 @@
url: https://github.com/{github_user}/lttng-tools
## Anchors
-- lttng-tools_steps_copyartifact_defaults:
+- _lttng-tools_steps_copyartifact_defaults:
name: 'lttng-tools_steps_copyartifact_defaults'
steps:
- copyartifact: <tng-tools_steps_copyartifact_defaults
@@ -61,7 +61,7 @@
## Axis Anchors
-- lttng-tools_matrix_axes_defaults: <tng-tools_matrix_axes_defaults
+- _lttng-tools_matrix_axes_defaults: <tng-tools_matrix_axes_defaults
name: 'lttng-tools_matrix_axes_defaults'
project-type: matrix
node: 'master' # Applies only to matrix flyweight task
@@ -96,7 +96,7 @@
name: test_type
values: '{obj:testtypes}'
-- lttng-tools_matrix_axes_rootbuild: <tng-tools_matrix_axes_rootbuild
+- _lttng-tools_matrix_axes_rootbuild: <tng-tools_matrix_axes_rootbuild
name: 'lttng-tools_matrix_axes_rootbuild'
project-type: matrix
node: 'master' # Applies only to matrix flyweight task
@@ -119,7 +119,7 @@
## Builders Anchors
-- lttng-tools_builders_defaults: <tng-tools_builders_defaults
+- _lttng-tools_builders_defaults: <tng-tools_builders_defaults
name: 'lttng-tools_builders_defaults'
builders:
# Generate a properties file to add additionnal env
@@ -191,15 +191,15 @@
git clone -b "{version}" https://github.com/{github_user}/lttng-modules.git src/lttng-modules
- shell:
- !include-raw-escape: scripts/lttng-tools/clean_processes_coredump.sh
+ !include-raw-escape: scripts/lttng-tools/prebuild_clean_processes_coredumps.sh
- shell:
!include-raw-escape:
- scripts/common/print.sh
- scripts/lttng-tools/build.sh
-- lttng-tools_builders_gerrit: <tng-tools_builders_gerrit
- name: 'lttng-tools_builders_gerrit'
+- _lttng-tools_builders_review: <tng-tools_builders_review
+ name: 'lttng-tools_builders_review'
builders:
- shell:
!include-raw-escape: scripts/lttng-tools/gerrit-depends-on.sh
@@ -255,7 +255,7 @@
project: '{bt_job_prefix}babeltrace_${{babeltrace_version}}_{buildtype}/platform=${{platform}},conf=std,build=std'
- shell:
- !include-raw-escape: scripts/lttng-tools/clean_processes_coredump.sh
+ !include-raw-escape: scripts/lttng-tools/prebuild_clean_processes_coredumps.sh
# Build liburcu if we depend on a specific liburcu change
- conditional-step:
@@ -283,7 +283,7 @@
- shell:
!include-raw-escape: scripts/lttng-tools/gerrit-install-deps.sh
- # Build babeltrace if we depend on a specific babeltrace change
+ # Build lttng-ust if we depend on a specific lttng-ust change
- conditional-step:
condition-kind: shell
condition-command: 'test "$GERRIT_DEP_LTTNG_UST" != ""'
@@ -302,7 +302,7 @@
- scripts/common/print.sh
- scripts/lttng-tools/build.sh
-- lttng-tools_builders_win: <tng-tools_builders_win
+- _lttng-tools_builders_win: <tng-tools_builders_win
name: 'lttng-tools_builders_win'
builders:
# Always copy liburcu artifacts
@@ -353,21 +353,38 @@
- scripts/common/print.sh
- scripts/lttng-tools/build.sh
-- lttng-tools_publishers_defaults: <tng-tools_publishers_defaults
+- _lttng-tools_publishers_defaults: <tng-tools_publishers_defaults
name: 'lttng-tools_publishers_defaults'
publishers:
+ # On build abort (timeout), wait 10 seconds before running the other post
+ # build scripts, this will allow the processes to terminate and make the
+ # build log more legible.
+ - postbuildscript: <tng-tools_publisher_postbuildscript_wait_10_seconds_on_abort
+ mark-unstable-if-failed: false
+ builders:
+ - role: SLAVE
+ build-on:
+ - ABORTED
+ build-steps:
+ - shell:
+ !include-raw-escape: scripts/lttng-tools/postbuild_wait_10_seconds.sh
+
# On build failure, try to get partial tap results if any exists
- - postbuildscript:
+ - postbuildscript: <tng-tools_publisher_postbuildscript_collect_tap_on_failure
mark-unstable-if-failed: false
builders:
- role: SLAVE
build-on:
+ - ABORTED
- FAILURE
build-steps:
- shell:
- !include-raw-escape: scripts/lttng-tools/tap_failure.sh
+ !include-raw-escape: scripts/lttng-tools/postbuild_collect_tap_results.sh
- - postbuildscript:
+ # If there are leftover lttng processes or core files present, kill the
+ # processes, collect the core files, delete them and mark the build
+ # unstable.
+ - postbuildscript: <tng-tools_publisher_postbuildscript_clean_processes_coredumps
mark-unstable-if-failed: true
builders:
- role: SLAVE
@@ -379,7 +396,7 @@
- FAILURE
build-steps:
- shell:
- !include-raw-escape: scripts/lttng-tools/hang_processes.sh
+ !include-raw-escape: scripts/lttng-tools/postbuild_clean_processes_coredumps.sh
- tap: <tng-tools_publisher_tap_defaults
results: 'tap/**/*.*'
@@ -466,7 +483,7 @@
send-to:
- recipients
-- lttng-tools_publishers_win: <tng-tools_publishers_win
+- _lttng-tools_publishers_win: <tng-tools_publishers_win
name: 'lttng-tools_publishers_win'
publishers:
- tap: *lttng-tools_publisher_tap_defaults
@@ -476,6 +493,7 @@
- ircbot: *lttng-tools_publisher_ircbot_defaults
- email-ext: *lttng-tools_publisher_email-ext_defaults
+
## Templates
- job-template:
name: '{job_prefix}lttng-tools_{version}_{buildtype}'
@@ -578,12 +596,12 @@
<<: *lttng-tools_publishers_win
- job-template:
- name: dev_gerrit_lttng-tools_{buildtype}
+ name: dev_review_lttng-tools_{version}_{buildtype}
defaults: lttng-tools
concurrent: true
scm:
- - git: <tng-tools_scm_git_gerrit
+ - git: <tng-tools_scm_git_review
url: https://review.lttng.org/lttng-tools
refspec: 'refs/changes/*:refs/changes/*'
branches:
@@ -601,8 +619,8 @@
- project-compare-type: 'PLAIN'
project-pattern: 'lttng-tools'
branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**'
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: '{version}'
properties:
- inject:
@@ -616,32 +634,21 @@
- 'gerrit-{buildtype}'
<<: *lttng-tools_matrix_axes_defaults
- <<: *lttng-tools_builders_gerrit
+ <<: *lttng-tools_builders_review
publishers:
- - postbuildscript:
- mark-unstable-if-failed: false
- builders:
- - role: SLAVE
- build-on:
- - FAILURE
- build-steps:
- - shell:
- !include-raw-escape: scripts/lttng-tools/tap_failure.sh
+ # On build abort (timeout), wait 10 seconds before running the other post
+ # build scripts, this will allow the processes to terminate and make the
+ # build log more legible.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_wait_10_seconds_on_abort
- - postbuildscript:
- mark-unstable-if-failed: true
- builders:
- - role: SLAVE
- build-on:
- - SUCCESS
- - UNSTABLE
- - NOT_BUILT
- - ABORTED
- - FAILURE
- build-steps:
- - shell:
- !include-raw-escape: scripts/lttng-tools/hang_processes.sh
+ # On build failure, try to get partial tap results if any exists
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_collect_tap_on_failure
+
+ # If there are leftover lttng processes or core files present, kill the
+ # processes, collect the core files, delete them and mark the build
+ # unstable.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_clean_processes_coredumps
- tap: *lttng-tools_publisher_tap_defaults
- raw: *lttng-tools_publisher_warnings-ng_defaults
@@ -649,12 +656,12 @@
- workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
- job-template:
- name: dev_gerrit_lttng-tools_rootbuild
+ name: dev_review_lttng-tools_{version}_rootbuild
defaults: lttng-tools
concurrent: true
scm:
- - git: *lttng-tools_scm_git_gerrit
+ - git: *lttng-tools_scm_git_review
triggers:
- gerrit: *lttng-tools_trigger_gerrit_default
@@ -671,7 +678,7 @@
- 'gerrit-{buildtype}'
<<: *lttng-tools_matrix_axes_rootbuild
- <<: *lttng-tools_builders_gerrit
+ <<: *lttng-tools_builders_review
publishers:
- tap: *lttng-tools_publisher_tap_defaults
@@ -709,34 +716,23 @@
<<: *lttng-tools_steps_copyartifact_defaults
project: 'lttng-ust_{ustversion}_build/liburcu_version={urcuversion},platform=bionic-amd64,conf=agents,build=std'
- shell:
- !include-raw-escape: scripts/lttng-tools/clean_processes_coredump.sh
+ !include-raw-escape: scripts/lttng-tools/prebuild_clean_processes_coredumps.sh
- shell:
!include-raw-escape: scripts/lttng-tools/release.sh
publishers:
- - postbuildscript:
- mark-unstable-if-failed: false
- builders:
- - role: SLAVE
- build-on:
- - ABORTED
- build-steps:
- - shell:
- !include-raw-escape: scripts/lttng-tools/tap_failure.sh
+ # On build abort (timeout), wait 10 seconds before running the other post
+ # build scripts, this will allow the processes to terminate and make the
+ # build log more legible.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_wait_10_seconds_on_abort
- - postbuildscript:
- mark-unstable-if-failed: true
- builders:
- - role: SLAVE
- build-on:
- - SUCCESS
- - UNSTABLE
- - NOT_BUILT
- - ABORTED
- - FAILURE
- build-steps:
- - shell:
- !include-raw-escape: scripts/lttng-tools/hang_processes.sh
+ # On build failure, try to get partial tap results if any exists
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_collect_tap_on_failure
+
+ # If there are leftover lttng processes or core files present, kill the
+ # processes, collect the core files, delete them and mark the build
+ # unstable.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_clean_processes_coredumps
- tap: *lttng-tools_publisher_tap_defaults
- raw: *lttng-tools_publisher_warnings-ng_defaults
@@ -1505,14 +1501,16 @@
touchstone: ''
- project:
- name: gerrit-lttng-tools
+ name: review-lttng-tools
job_prefix: ''
ust_job_prefix: ''
urcu_job_prefix: ''
bt_job_prefix: ''
github_user: lttng
jobs:
- - 'dev_gerrit_lttng-tools_{buildtype}':
+ ## Master ##
+ - 'dev_review_lttng-tools_{version}_{buildtype}':
+ version: master
buildtype: build
platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std, oot, dist, oot-dist]
@@ -1522,7 +1520,8 @@
testtypes: !!python/tuple [base]
filter: ''
touchstone: ''
- - 'dev_gerrit_lttng-tools_rootbuild':
+ - 'dev_review_lttng-tools_{version}_rootbuild':
+ version: master
buildtype: build
platforms: !!python/tuple [bionic-amd64]
builds: !!python/tuple [std]
@@ -1533,6 +1532,54 @@
filter: '(node=="amd64-rootnode" && platform=="bionic-amd64")'
touchstone: ''
+ ## Stable 2.13 ##
+ - 'dev_review_lttng-tools_{version}_{buildtype}':
+ version: stable-2.13
+ buildtype: build
+ platforms: !!python/tuple [bionic-amd64]
+ builds: !!python/tuple [std, oot, dist, oot-dist]
+ confs: !!python/tuple [std, no-ust, agents]
+ urcuversions: !!python/tuple [stable-0.13]
+ babelversions: !!python/tuple [stable-2.0]
+ testtypes: !!python/tuple [base]
+ filter: ''
+ touchstone: ''
+ - 'dev_review_lttng-tools_{version}_rootbuild':
+ version: stable-2.13
+ buildtype: build
+ platforms: !!python/tuple [bionic-amd64]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [agents]
+ urcuversions: !!python/tuple [stable-0.13]
+ babelversions: !!python/tuple [stable-2.0]
+ testtypes: !!python/tuple [base]
+ filter: '(node=="amd64-rootnode" && platform=="bionic-amd64")'
+ touchstone: ''
+
+ ## Stable 2.12 ##
+ - 'dev_review_lttng-tools_{version}_{buildtype}':
+ version: stable-2.12
+ buildtype: build
+ platforms: !!python/tuple [bionic-amd64]
+ builds: !!python/tuple [std, oot, dist, oot-dist]
+ confs: !!python/tuple [std, no-ust, agents]
+ urcuversions: !!python/tuple [stable-0.13]
+ babelversions: !!python/tuple [stable-2.0]
+ testtypes: !!python/tuple [base]
+ filter: ''
+ touchstone: ''
+ - 'dev_review_lttng-tools_{version}_rootbuild':
+ version: stable-2.12
+ buildtype: build
+ platforms: !!python/tuple [bionic-amd64]
+ builds: !!python/tuple [std]
+ confs: !!python/tuple [agents]
+ urcuversions: !!python/tuple [stable-0.13]
+ babelversions: !!python/tuple [stable-2.0]
+ testtypes: !!python/tuple [base]
+ filter: '(node=="amd64-rootnode" && platform=="bionic-amd64")'
+ touchstone: ''
+
- project:
name: lttng-tools-views
views: