X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Flttng-tools.yaml;h=2776043bc18c44424ece8ee73aa3e66e48a0a138;hb=4b8ed6e3be85066d8399db8d19447e05e0745fb7;hp=9ee52d84bd5912f7eb00bebc727631fe718dcf15;hpb=cdb4cba49058be8d8bb098d3f45b9fc619928ee1;p=lttng-ci.git diff --git a/jobs/lttng-tools.yaml b/jobs/lttng-tools.yaml index 9ee52d8..2776043 100644 --- a/jobs/lttng-tools.yaml +++ b/jobs/lttng-tools.yaml @@ -1,49 +1,58 @@ - defaults: name: lttng-tools description: | + The lttng-tools project provides a session daemon (lttng-sessiond) + that acts as a tracing registry, the "lttng" command line for tracing + control, a lttng-ctl library for tracing control and a lttng-relayd + for network streaming.
Job is managed by Jenkins Job Builder.
project-type: freestyle - logrotate: - daysToKeep: -1 - numToKeep: 2 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - wrappers: - - workspace-cleanup - - timestamps - ansicolor + - timeout: + timeout: 30 + fail: true + type: no-activity + - timestamps + - workspace-cleanup: + clean-if: + - failure: false scm: - git: - url: git://github.com/lttng/lttng-tools.git + url: git://github.com/{github_user}/{github_name}.git browser: githubweb - browser-url: https://github.com/lttng/lttng-tools + browser-url: https://github.com/{github_user}/{github_name} branches: - origin/{version} + basedir: src/lttng-tools + skip-tag: true triggers: - pollscm: cron: "@hourly" properties: + - inject: + properties-content: | + PROJECT_NAME=lttng-tools - github: - url: https://github.com/lttng/lttng-tools - + url: https://github.com/{github_user}/{github_name} + - build-discarder: + num-to-keep: 20 + artifact-num-to-keep: 2 -## Templates -- job-template: - name: lttng-tools_{version}_{buildtype} - defaults: lttng-tools +## Anchors +- lttng-tools_build_axes_defaults: <tng-tools_build_axes_defaults + name: 'lttng-tools_build_axes_defaults' project-type: matrix - node: 'x86-32 || x86-64' # Applies only to matrix flyweight task + node: 'master' # Applies only to matrix flyweight task execution-strategy: - combination-filter: | - (build=="std") || (liburcu_version=="master") + combination-filter: '{filter}' axes: - axis: type: slave @@ -52,80 +61,745 @@ - axis: type: user-defined name: conf - values: - - std - - no_ust - - python_bindings - - java_agents - - axis: - type: user-defined - name: babeltrace_version - values: - !include jobs/inc/babeltrace-versions.yaml.inc + values: '{obj:conf}' - axis: type: user-defined name: liburcu_version - values: - !include jobs/inc/liburcu-versions.yaml.inc + values: '{obj:urcuversion}' - axis: type: user-defined - name: lttng-ust_version - values: - - {version} + name: babeltrace_version + values: '{obj:babelversion}' - axis: type: user-defined name: build values: '{obj:build}' + - axis: + type: user-defined + name: test_type + values: '{obj:testtype}' + +- lttng-tools_build_builders_defaults: <tng-tools_build_builders_defaults + name: 'lttng-tools_build_builders_defaults' + builders: + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: (std|static) + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: no-ust + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: agents + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: (relayd-only) + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: debug-rcu + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=debug-rcu,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=debug-rcu,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: tls_fallback + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=tls_fallback,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_{ustversion}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=tls_fallback,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - shell: + !include-raw-escape: scripts/lttng-tools/clean_processes_coredump.sh + - shell: + !include-raw-escape: scripts/lttng-tools/build.sh +- lttng-tools_build_builders_gerrit: <tng-tools_build_builders_gerrit + name: 'lttng-tools_build_builders_gerrit' builders: + - shell: + !include-raw-escape: scripts/lttng-tools/gerrit-depends-on.sh + - inject: + properties-file: gerrit_custom_dependencies.properties + - conditional-step: + condition-kind: and + on-evaluation-failure: run + condition-operands: + - condition-kind: shell + condition-command: 'test -z "$GERRIT_DEP_LTTNG_UST"' + - condition-kind: regex-match + label: '$conf' + regex: (std|static|agents|debug-rcu) + steps: + - copyartifact: + project: lttng-ust_${{GERRIT_BRANCH}}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: (std|static) + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: no-ust + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_${{GERRIT_BRANCH}}_{buildtype}/liburcu_version=${{liburcu_version}},arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: (agents|relayd-only) + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: regex-match + label: '$conf' + regex: debug-rcu + on-evaluation-failure: run + steps: + - copyartifact: + project: liburcu_${{liburcu_version}}_{buildtype}/arch=${{arch}},conf=${{conf}},build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - shell: + !include-raw-escape: scripts/lttng-tools/clean_processes_coredump.sh + - conditional-step: + condition-kind: shell + condition-command: 'test ! -z "$GERRIT_DEP_LTTNG_UST"' + steps: + - shell: + !include-raw-escape: + - scripts/lttng-tools/gerrit-build-override.sh + - scripts/lttng-ust/build.sh + - shell: + !include-raw-escape: scripts/lttng-tools/gerrit-install-deps.sh + - shell: + !include-raw-escape: scripts/lttng-tools/build.sh + +- lttng-tools_build_builders_win: <tng-tools_build_builders_win + name: 'lttng-tools_build_builders_win' + builders: + - copyartifact: + project: liburcu_${{liburcu_version}}_winbuild/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: babeltrace_${{babeltrace_version}}_winbuild/arch=${{arch}},conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - conditional-step: + condition-kind: strings-match + on-evaluation-failure: run + condition-string1: '${{arch}}' + condition-string2: 'cygwin64' + steps: + - shell: + !include-raw-escape: + - scripts/common/cygwin64-shebang + - scripts/common/cygpath-prefix + - scripts/lttng-tools/build.sh - conditional-step: condition-kind: strings-match - condition-string1: $conf - condition-string2: static on-evaluation-failure: run + condition-string1: '${{arch}}' + condition-string2: 'msys2-mingw32' + steps: + - inject: + properties-content: 'MSYSTEM=MINGW32' + - shell: + !include-raw-escape: + - scripts/common/msys2-shebang + - scripts/common/cygpath-prefix + - scripts/lttng-tools/build.sh + - conditional-step: + condition-kind: strings-match + on-evaluation-failure: run + condition-string1: '${{arch}}' + condition-string2: 'msys2-mingw64' + steps: + - inject: + properties-content: 'MSYSTEM=MINGW64' + - shell: + !include-raw-escape: + - scripts/common/msys2-shebang + - scripts/common/cygpath-prefix + - scripts/lttng-tools/build.sh + +- lttng-tools_build_publishers_dev: <tng-tools_build_publishers_dev + name: 'lttng-tools_build_publishers_dev' + publishers: + - 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 + - tap: + results: 'tap/**/*.*' + fail-if-no-results: true + failed-tests-mark-build-as-failure: true + todo-is-failure: false + - warnings: + console-log-parsers: + - 'GNU Make + GNU C Compiler (gcc)' + total-thresholds: + unstable: + total-all: 0 + total-high: 0 + total-normal: 0 + total-low: 0 + - archive: + artifacts: 'build/**,deps/**,tap/**' + allow-empty: false + - workspace-cleanup: + clean-if: + - failure: false + - email-ext: + recipients: '{obj:email_to}' + 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 + +- lttng-tools_build_publishers_prod: <tng-tools_build_publishers_prod + name: 'lttng-tools_build_publishers_prod' + publishers: + - 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 + - tap: + results: 'tap/**/*.*' + fail-if-no-results: true + failed-tests-mark-build-as-failure: true + todo-is-failure: false + - warnings: + console-log-parsers: + - 'GNU Make + GNU C Compiler (gcc)' + total-thresholds: + unstable: + total-all: 0 + total-high: 0 + total-normal: 0 + total-low: 0 + - workspace-cleanup: + clean-if: + - failure: false + - archive: + artifacts: 'build/**,deps/**,tap/**' + allow-empty: false + - 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 + +- lttng-tools_build_publishers_win: <tng-tools_build_publishers_win + name: 'lttng-tools_build_publishers_win' + publishers: + - tap: + results: 'tap/**/*.*' + fail-if-no-results: true + failed-tests-mark-build-as-failure: true + todo-is-failure: false + - warnings: + console-log-parsers: + - 'GNU Make + GNU C Compiler (gcc)' + total-thresholds: + unstable: + total-all: 0 + total-high: 0 + total-normal: 0 + total-low: 0 + - workspace-cleanup: + clean-if: + - failure: false + - archive: + artifacts: 'build/**,deps/**,tap/**' + allow-empty: false + - 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 + +## Templates +- job-template: + name: lttng-tools_{version}_{buildtype} + defaults: lttng-tools + + <<: *lttng-tools_build_axes_defaults + <<: *lttng-tools_build_builders_defaults + <<: *lttng-tools_build_publishers_prod + + triggers: + - pollscm: + cron: "@hourly" + - reverse: + jobs: 'lttng-ust_{version}_{buildtype}' + result: 'success' + +- job-template: + name: lttng-tools_{version}_long_regression + defaults: lttng-tools + wrappers: + - ansicolor + - timeout: + timeout: 10 + fail: true + type: likely-stuck + - timestamps + - workspace-cleanup: + clean-if: + - failure: false + + <<: *lttng-tools_build_axes_defaults + <<: *lttng-tools_build_builders_defaults + <<: *lttng-tools_build_publishers_prod + + triggers: + - pollscm: + cron: "@hourly" + - reverse: + jobs: 'lttng-ust_{version}_{buildtype}' + result: 'success' + +- job-template: + name: lttng-tools_{version}_winbuild + defaults: lttng-tools + + <<: *lttng-tools_build_axes_defaults + <<: *lttng-tools_build_builders_win + <<: *lttng-tools_build_publishers_win + +- job-template: + name: dev_{user}_lttng-tools_{version}_{buildtype} + defaults: lttng-tools + + <<: *lttng-tools_build_axes_defaults + <<: *lttng-tools_build_builders_defaults + <<: *lttng-tools_build_publishers_dev + +- job-template: + name: dev_gerrit_lttng-tools_{buildtype} + defaults: lttng-tools + concurrent: true + + scm: + - git: + url: https://review.lttng.org/lttng-tools + refspec: 'refs/changes/*:refs/changes/*' + branches: + - '$GERRIT_REFSPEC' + basedir: src/lttng-tools + skip-tag: true + + triggers: + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'lttng-tools' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**' + trigger-for-unreviewed-patches: true + + properties: + - inject: + properties-content: | + PROJECT_NAME=lttng-tools + - build-discarder: + days-to-keep: 1 + - throttle: + option: 'category' + categories: + - 'gerrit-{buildtype}' + + <<: *lttng-tools_build_axes_defaults + <<: *lttng-tools_build_builders_gerrit + + publishers: + - 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 + - tap: + results: 'tap/**/*.*' + fail-if-no-results: true + failed-tests-mark-build-as-failure: true + todo-is-failure: false + - warnings: + console-log-parsers: + - 'GNU Make + GNU C Compiler (gcc)' + total-thresholds: + unstable: + total-all: 0 + total-high: 0 + total-normal: 0 + total-low: 0 + - archive: + artifacts: 'build/**,deps/**,tap/**' + allow-empty: false + - workspace-cleanup: + clean-if: + - failure: false + +- job-template: + name: lttng-tools_{version}_release + defaults: lttng-tools + node: 'amd64' + + triggers: + - pollscm: + cron: "@daily" + + scm: + - git: + url: git://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/lttng-tools + + builders: - copyartifact: - project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std + project: liburcu_{urcuversion}_build/arch=amd64,conf=std,build=std which-build: last-successful - stable: true + stable: false filter: 'build/**' - target: 'deps/liburcu' + target: 'deps' do-not-fingerprint: true - copyartifact: - project: babeltrace_${{babeltrace_version}}_{buildtype}/arch=$arch,conf=std,build=std + project: babeltrace_{babelversion}_build/arch=amd64,conf=std,build=std which-build: last-successful - stable: true + stable: false filter: 'build/**' - target: 'deps/liburcu' + target: 'deps' do-not-fingerprint: true - copyartifact: - project: lttng-ust_${{lttng-ust_version}}_{buildtype}/arch=$arch,conf=std,build=std + project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=amd64,conf=agents,build=std which-build: last-successful - stable: true + stable: false filter: 'build/**' - target: 'deps/liburcu' + target: 'deps' do-not-fingerprint: true - shell: - !include-raw-escape scripts/lttng-tools/build.sh + !include-raw-escape: scripts/lttng-tools/clean_processes_coredump.sh + - shell: + !include-raw-escape: scripts/lttng-tools/release.sh - # TODO: Scan for open tasks publishers: + - 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 - tap: - results: 'tap/**/*.tap' + results: 'tap/**/*.*' + fail-if-no-results: true failed-tests-mark-build-as-failure: true + todo-is-failure: false - warnings: console-log-parsers: - 'GNU Make + GNU C Compiler (gcc)' - #total-thresholds: - # failed: - # total-all: 0 - # total-high: 0 - # total-normal: 0 - # total-low: 0 + total-thresholds: + unstable: + total-all: 0 + total-high: 0 + total-normal: 0 + total-low: 0 + - workspace-cleanup: + clean-if: + - failure: false - archive: - artifacts: 'build/**' + artifacts: 'out/**' allow-empty: false - - workspace-cleanup - - job-template: name: lttng-tools_{version}_cppcheck @@ -137,32 +811,64 @@ builders: - shell: | - rm -f lttng-tools-cppcheck.xml - cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> lttng-tools-cppcheck.xml + rm -f cppcheck-result.xml + cppcheck --enable=all --xml --xml-version=2 $WORKSPACE 2> cppcheck-result.xml publishers: - archive: - artifacts: 'lttng-tools-cppcheck.xml' + artifacts: 'cppcheck-result.xml' allow-empty: false - cppcheck: - pattern: 'lttng-tools-cppcheck.xml' - - email: + pattern: 'cppcheck-result.xml' + - email-ext: recipients: 'ci-notification@lists.lttng.org' - notify-every-unstable-build: true - send-to-individuals: false + 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 - job-template: name: lttng-tools_{version}_scan-build defaults: lttng-tools - node: 'x86-64' + node: 'amd64' triggers: - pollscm: cron: "@daily" builders: + - copyartifact: + project: liburcu_{urcuversion}_build/arch=amd64,conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=amd64,conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true - shell: - !include-raw-escape scripts/lttng-tools/scan-build.sh + !include-raw-escape: scripts/common/scan-build.sh publishers: - html-publisher: @@ -170,82 +876,620 @@ dir: 'scan-build-archive/' files: 'index.html' -# TODO: lttng-tools_{version}_coverity -#- job-template: -# name: lttng-tools_{version}_coverity -# defaults: lttng-tools -# node: 'x86-64' -# -# triggers: -# - pollscm: -# cron: "@daily" -# -# builders: -# - shell: -# !include-raw-escape scripts/lttng-tools/coverity.sh -# -# publishers: -# - html-publisher: -# name: 'HTML Report' -# dir: 'scan-build-archive/' -# files: 'index.html' - - job-template: - name: lttng-tools_{version}_pylint + name: lttng-tools_{version}_coverity defaults: lttng-tools - node: 'x86-64' - - scm: [] + node: 'amd64' triggers: - pollscm: cron: "@daily" + wrappers: + - workspace-cleanup + - timestamps + - ansicolor: + colormap: xterm + - credentials-binding: + - username-password-separated: + credential-id: lttng-tools_coverity_token + username: COVERITY_SCAN_PROJECT_NAME + password: COVERITY_SCAN_TOKEN + builders: - - copyartifact: - project: lttng-tools-{version}/arch=x86-64,build=std,conf=python-agent - which-build: last-successful - stable: true - filter: 'build/**' - target: 'deps/lttng-tools' - do-not-fingerprint: true - - shell: - !include-raw-escape scripts/lttng-tools/pylint.sh + - copyartifact: + project: liburcu_{urcuversion}_build/arch=amd64,conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - copyartifact: + project: lttng-ust_{ustversion}_build/liburcu_version={urcuversion},arch=amd64,conf=std,build=std + which-build: last-successful + stable: false + filter: 'build/**' + target: 'deps' + do-not-fingerprint: true + - shell: + !include-raw-escape: scripts/common/coverity.sh publishers: - archive: - artifacts: 'pep8.out,pylint.out' - - violations: - pep8: - pattern: pep8.out - min: 10 - max: 999 - unstable: 999 - pylint: - pattern: pylint.out - min: 10 - max: 999 - unstable: 999 - - email: - recipients: 'ci-notification@lists.lttng.org' - notify-every-unstable-build: true - send-to-individuals: false + artifacts: 'analysis-results.tgz,cov-int/**' + allow-empty: false + - workspace-cleanup + +## Views +- view-template: + name: 'LTTng-tools' + view-type: list + regex: 'lttng-tools[-_].*' -## Project + +## Projects - project: name: lttng-tools + github_user: lttng + github_name: lttng-tools + email_to: 'ci-notification@lists.lttng.org, cc:jgalar@efficios.com' version: - !include jobs/inc/lttng-tools-versions.yaml.inc + - stable-2.10 + - stable-2.11 + - stable-2.12 + - master jobs: + # Master # - 'lttng-tools_{version}_{buildtype}': buildtype: build - arch: !!python/tuple [x86-32, x86-64] + version: master + ustversion: master + arch: !!python/tuple [amd64] build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents, debug-rcu, tls_fallback] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5, master] + testtype: !!python/tuple [base] + filter: '(build=="std") || ((babeltrace_version=="master" && (conf=="std" || conf=="agents" || conf=="no-ust")))' - 'lttng-tools_{version}_{buildtype}': buildtype: portbuild - arch: !!python/tuple [armhf, powerpc] + version: master + ustversion: master + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: slesbuild + version: master + ustversion: master + arch: !!python/tuple [sles12sp2] + build: !!python/tuple [std] + conf: !!python/tuple [agents] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: elbuild + version: master + ustversion: master + arch: !!python/tuple [el8] + build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: macosxbuild + version: master + ustversion: master + arch: !!python/tuple [macosx] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: solarisbuild + version: master + ustversion: master + arch: !!python/tuple [sol10-i386, sol11-i386] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_winbuild': + version: master + ustversion: master + arch: !!python/tuple [cygwin64] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_long_regression': + buildtype: build + version: master + ustversion: master + arch: !!python/tuple [amd64] + build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [full] + filter: '' + + # stable-2.12 + - 'lttng-tools_{version}_{buildtype}': + buildtype: build + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents, debug-rcu, tls_fallback] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [base] + filter: '(build=="std") || ((babeltrace_version=="stable-2.0" && (conf=="std" || conf=="agents" || conf=="no-ust")))' + - 'lttng-tools_{version}_{buildtype}': + buildtype: portbuild + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: slesbuild + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [sles12sp2] + build: !!python/tuple [std] + conf: !!python/tuple [agents] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: elbuild + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [el8] + build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: solarisbuild + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [sol10-i386, sol11-i386] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: macosxbuild + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [macosx] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_winbuild': + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [cygwin64] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_long_regression': + buildtype: build + version: stable-2.12 + ustversion: stable-2.12 + arch: !!python/tuple [amd64] build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [full] + filter: '' + - 'lttng-tools_{version}_release': + version: v2.12 + ustversion: stable-2.12 + urcuversion: stable-0.12 + babelversion: stable-2.0 + + # stable-2.11 + - 'lttng-tools_{version}_{buildtype}': + buildtype: build + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents, debug-rcu, tls_fallback] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '(build=="std") || ((babeltrace_version=="stable-1.5" && (conf=="std" || conf=="agents" || conf=="no-ust")))' + - 'lttng-tools_{version}_{buildtype}': + buildtype: portbuild + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: slesbuild + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [sles12sp2] + build: !!python/tuple [std] + conf: !!python/tuple [agents] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: elbuild + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [el8] + build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: solarisbuild + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [sol10-i386, sol11-i386] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: macosxbuild + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [macosx] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_winbuild': + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [cygwin64] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_long_regression': + buildtype: build + version: stable-2.11 + ustversion: stable-2.11 + arch: !!python/tuple [amd64] + build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [full] + filter: '' + - 'lttng-tools_{version}_release': + version: v2.11 + ustversion: stable-2.11 + urcuversion: stable-0.10 + babelversion: stable-1.5 + + # stable-2.10 + - 'lttng-tools_{version}_{buildtype}': + buildtype: build + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents, debug-rcu, tls_fallback] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '(build=="std") || ((babeltrace_version=="stable-1.5" && (conf=="std" || conf=="agents" || conf=="no-ust")))' + - 'lttng-tools_{version}_{buildtype}': + buildtype: portbuild + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: slesbuild + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [sles12sp2] + build: !!python/tuple [std] + conf: !!python/tuple [agents] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: elbuild + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [el8] + build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: solarisbuild + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [sol10-i386, sol11-i386] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_{buildtype}': + buildtype: macosxbuild + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [macosx] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_winbuild': + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [cygwin64] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_long_regression': + buildtype: build + version: stable-2.10 + ustversion: stable-2.10 + arch: !!python/tuple [amd64] + build: !!python/tuple [std] + conf: !!python/tuple [std] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [full] + filter: '' + - 'lttng-tools_{version}_release': + version: v2.10 + ustversion: stable-2.10 + urcuversion: stable-0.9 + babelversion: stable-1.5 + + # stable-2.9 # + - 'lttng-tools_{version}_{buildtype}': + buildtype: slesbuild + version: stable-2.9 + ustversion: stable-2.9 + arch: !!python/tuple [sles12sp2] + build: !!python/tuple [std] + conf: !!python/tuple [agents] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + + # stable-2.8 # + - 'lttng-tools_{version}_{buildtype}': + buildtype: slesbuild + version: stable-2.8 + ustversion: stable-2.8 + arch: !!python/tuple [sles12sp2] + build: !!python/tuple [std] + conf: !!python/tuple [agents] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'lttng-tools_{version}_cppcheck' - - 'lttng-tools_{version}_scan-build' + - 'lttng-tools_{version}_scan-build': + version: master + urcuversion: master + ustversion: master + - 'lttng-tools_{version}_scan-build': + version: stable-2.11 + urcuversion: stable-0.10 + ustversion: stable-2.11 + - 'lttng-tools_{version}_scan-build': + version: stable-2.10 + urcuversion: stable-0.9 + ustversion: stable-2.10 + - 'lttng-tools_{version}_coverity': + version: master + urcuversion: master + ustversion: master + +- project: + name: dev_jgalar_lttng-tools + user: jgalar + github_user: jgalar + github_name: lttng-tools + email_to: 'jgalar@efficios.com' + jobs: + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: build + version: master-staging + ustversion: master + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5, master] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: build + version: stable-2.12-staging + ustversion: stable-2.12 + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0, master] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: build + version: stable-2.11-staging + ustversion: stable-2.11 + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5, master] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: build + version: stable-2.10-staging + ustversion: stable-2.10 + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: portbuild + version: master-staging + ustversion: master + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: portbuild + version: stable-2.12-staging + ustversion: stable-2.12 + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-2.0] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: portbuild + version: stable-2.11-staging + ustversion: stable-2.11 + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.10] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: portbuild + version: stable-2.10-staging + ustversion: stable-2.10 + arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] + build: !!python/tuple [std] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.9] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: macosxbuild + version: master-staging + ustversion: master + arch: !!python/tuple [macosx] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + - 'dev_{user}_lttng-tools_{version}_{buildtype}': + buildtype: solarisbuild + version: master-staging + ustversion: master + arch: !!python/tuple [sol10-i386, sol11-i386] + build: !!python/tuple [std] + conf: !!python/tuple [relayd-only] + urcuversion: !!python/tuple [master] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + +- project: + name: gerrit-lttng-tools + github_user: lttng + github_name: lttng-tools + jobs: + - 'dev_gerrit_lttng-tools_{buildtype}': + buildtype: build + arch: !!python/tuple [amd64] + build: !!python/tuple [std, oot, dist, oot-dist] + conf: !!python/tuple [std, no-ust, agents] + urcuversion: !!python/tuple [stable-0.12] + babelversion: !!python/tuple [stable-1.5] + testtype: !!python/tuple [base] + filter: '' + +- project: + name: lttng-tools-views + views: + - LTTng-tools