X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=jobs%2Flibrseq.yaml;h=1c8884be1e8dd8b8e42a26d52bd83d02bf2811cd;hb=9a07183cc9c8aa389f227c4455b8e33c3a386837;hp=db7fa74d27d650a02e394a7b18c4ee35fdf54a36;hpb=733146f2cf2f1742aabf74b7b800433b400fce73;p=lttng-ci.git diff --git a/jobs/librseq.yaml b/jobs/librseq.yaml index db7fa74..1c8884b 100644 --- a/jobs/librseq.yaml +++ b/jobs/librseq.yaml @@ -30,7 +30,7 @@ scm: - git: - url: git://github.com/{github_user}/{github_name}.git + url: https://github.com/{github_user}/{github_name}.git browser: githubweb browser-url: https://github.com/{github_user}/{github_name} branches: @@ -57,51 +57,66 @@ name: 'librseq_build_axes_defaults' project-type: matrix node: 'master' # Applies only to matrix flyweight task + execution-strategy: + touchstone: + expr: '{touchstone}' + result: unstable axes: - axis: type: slave - name: arch - values: '{obj:arch}' + name: platform + values: '{obj:platforms}' - axis: type: user-defined name: conf - values: '{obj:conf}' + values: '{obj:confs}' - axis: type: user-defined name: build - values: '{obj:build}' + values: '{obj:builds}' - librseq_build_axes_cc: &librseq_build_axes_cc name: 'librseq_build_axes_cc' project-type: matrix node: 'master' # Applies only to matrix flyweight task + execution-strategy: + touchstone: + expr: '{touchstone}' + result: unstable axes: - axis: type: slave - name: arch - values: '{obj:arch}' + name: platform + values: '{obj:platforms}' - axis: type: user-defined name: conf - values: '{obj:conf}' + values: '{obj:confs}' - axis: type: user-defined name: build - values: '{obj:build}' + values: '{obj:builds}' - axis: type: user-defined name: cc - values: '{obj:cc}' + values: '{obj:ccs}' - librseq_build_builders_defaults: &librseq_build_builders_defaults name: 'librseq_build_builders_defaults' builders: - shell: - !include-raw-escape: scripts/librseq/build.sh + !include-raw-escape: + - scripts/common/print.sh + - scripts/librseq/build.sh - librseq_build_publishers_defaults: &librseq_build_publishers_defaults name: 'librseq_build_publishers_defaults' publishers: + - tap: + results: 'tap/**/*.log' + 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)' @@ -112,13 +127,8 @@ total-normal: 0 total-low: 0 - archive: - artifacts: 'build/**' + artifacts: 'build/**,tap/**' allow-empty: false - - ircbot: - strategy: new-failure-and-fixed - matrix-notifier: only-parent - channels: - - name: '#lttng' - email-ext: recipients: '{obj:email_to}' reply-to: ci-notification@lists.lttng.org @@ -142,6 +152,28 @@ send-to: - recipients +- librseq_build_publishers_gerrit: &librseq_build_publishers_gerrit + name: 'librseq_build_publishers_gerrit' + publishers: + - tap: + results: 'tap/**/*.log' + 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 + - archive: + artifacts: 'build/**,tap/**' + allow-empty: false + + ## Templates - job-template: name: librseq_{version}_{buildtype} @@ -201,6 +233,48 @@ send-to: - recipients +- job-template: + name: dev_gerrit_librseq_{buildtype} + defaults: librseq + concurrent: true + + scm: + - git: + url: https://review.lttng.org/librseq + refspec: 'refs/changes/*:refs/changes/*' + branches: + - '$GERRIT_REFSPEC' + basedir: src/librseq + skip-tag: true + + triggers: + - gerrit: + trigger-on: + - comment-added-event: + approval-category: 'CI-Build' + approval-value: 1 + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'librseq' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**' + + <<: *librseq_build_axes_defaults + <<: *librseq_build_builders_defaults + <<: *librseq_build_publishers_gerrit + + properties: + - inject: + properties-content: | + PROJECT_NAME=librseq + - build-discarder: + days-to-keep: 1 + - throttle: + option: 'category' + categories: + - 'gerrit-{buildtype}' + - job-template: name: librseq_{version}_scan-build defaults: librseq @@ -256,10 +330,10 @@ allow-empty: false - view-template: - name: 'rseq' + name: 'Librseq' description: 'Restartable sequences' view-type: list - regex: 'librseq_.*|linux-rseq_.*' + regex: 'librseq_.*' ## Project @@ -273,32 +347,44 @@ jobs: - 'librseq_{version}_{buildtype}': buildtype: build - arch: !!python/tuple [amd64] - build: !!python/tuple [std, oot, dist, oot-dist] - conf: !!python/tuple [std, static] + platforms: !!python/tuple [jammy-amd64] + builds: !!python/tuple [std, oot, dist, oot-dist] + confs: !!python/tuple [std, static] + touchstone: '(build == "std") && (conf == "std")' - 'librseq_{version}_{cctype}': cctype: gccbuild - arch: !!python/tuple [amd64] - build: !!python/tuple [std] - conf: !!python/tuple [std, static] - cc: !!python/tuple [gcc-4.8, gcc-5, gcc-6, gcc-7, gcc-8] + platforms: !!python/tuple [jammy-amd64] + builds: !!python/tuple [std] + confs: !!python/tuple [std, static] + ccs: !!python/tuple [gcc-9, gcc-10, gcc-11, gcc-12] + touchstone: '(build == "std") && (conf == "std") && (cc == "gcc-11")' - 'librseq_{version}_{cctype}': cctype: clangbuild - arch: !!python/tuple [amd64] - build: !!python/tuple [std] - conf: !!python/tuple [std, static] - cc: !!python/tuple [clang-3.9, clang-4.0, clang-6.0, clang-7] + platforms: !!python/tuple [jammy-amd64] + builds: !!python/tuple [std] + confs: !!python/tuple [std, static] + ccs: !!python/tuple [clang-11, clang-12, clang-13, clang-14] + touchstone: '(build == "std") && (conf == "std") && (cc == "clang-14")' - 'librseq_{version}_{buildtype}': buildtype: portbuild - arch: !!python/tuple [armhf, arm64, powerpc, ppc64el, i386] - build: !!python/tuple [std] - conf: !!python/tuple [std, static] -# - 'librseq_{version}_cppcheck' -# - 'librseq_{version}_scan-build' -# - 'librseq_{version}_coverity': -# version: master + platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386] + builds: !!python/tuple [std] + confs: !!python/tuple [std, static] + touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")' + +- project: + name: gerrit-librseq + github_user: compudj + github_name: librseq + jobs: + - 'dev_gerrit_librseq_{buildtype}': + buildtype: build + platforms: !!python/tuple [jammy-amd64] + builds: !!python/tuple [std, oot, dist, oot-dist] + confs: !!python/tuple [std, static] + touchstone: '(build == "std") && (conf == "std")' - project: name: librseq-views views: - - rseq + - Librseq