X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=jobs%2Flibrseq.yaml;h=ff7f4c285e030f21bd99cad4f2854b6272ebec84;hb=HEAD;hp=1c8884be1e8dd8b8e42a26d52bd83d02bf2811cd;hpb=9a07183cc9c8aa389f227c4455b8e33c3a386837;p=lttng-ci.git diff --git a/jobs/librseq.yaml b/jobs/librseq.yaml index 1c8884b..ff7f4c2 100644 --- a/jobs/librseq.yaml +++ b/jobs/librseq.yaml @@ -4,7 +4,6 @@ # jobtypes: # - build # - portbuild -# - cppcheck # - coverity # - scan-build # - pylint @@ -18,15 +17,14 @@ project-type: freestyle wrappers: - - ansicolor - - timeout: + - ansicolor: &librseq_wrapper_ansicolor_defaults + colormap: xterm + - timeout: &librseq_wrapper_timeout_defaults timeout: 10 fail: true type: no-activity - timestamps - - workspace-cleanup: - clean-if: - - failure: false + - workspace-cleanup scm: - git: @@ -47,14 +45,15 @@ properties-content: | PROJECT_NAME=librseq - 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 -- librseq_build_axes_defaults: &librseq_build_axes_defaults - name: 'librseq_build_axes_defaults' +- _librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults + name: 'librseq_matrix_axes_defaults' project-type: matrix node: 'master' # Applies only to matrix flyweight task execution-strategy: @@ -62,21 +61,21 @@ expr: '{touchstone}' result: unstable axes: - - axis: + - axis: &librseq_matrix_axis_platform type: slave name: platform values: '{obj:platforms}' - - axis: + - axis: &librseq_matrix_axis_conf type: user-defined name: conf values: '{obj:confs}' - - axis: + - axis: &librseq_matrix_axis_build type: user-defined name: build values: '{obj:builds}' -- librseq_build_axes_cc: &librseq_build_axes_cc - name: 'librseq_build_axes_cc' +- _librseq_matrix_axes_cc: &librseq_matrix_axes_cc + name: 'librseq_matrix_axes_cc' project-type: matrix node: 'master' # Applies only to matrix flyweight task execution-strategy: @@ -84,52 +83,84 @@ expr: '{touchstone}' result: unstable axes: - - axis: - type: slave - name: platform - values: '{obj:platforms}' - - axis: - type: user-defined - name: conf - values: '{obj:confs}' - - axis: - type: user-defined - name: build - values: '{obj:builds}' - - axis: + - axis: *librseq_matrix_axis_platform + - axis: *librseq_matrix_axis_conf + - axis: *librseq_matrix_axis_build + - axis: &librseq_matrix_axis_cc type: user-defined name: cc values: '{obj:ccs}' -- librseq_build_builders_defaults: &librseq_build_builders_defaults - name: 'librseq_build_builders_defaults' +- _librseq_builders_defaults: &librseq_builders_defaults + name: 'librseq_builders_defaults' builders: - shell: !include-raw-escape: - scripts/common/print.sh - scripts/librseq/build.sh -- librseq_build_publishers_defaults: &librseq_build_publishers_defaults - name: 'librseq_build_publishers_defaults' +- _librseq_publishers_defaults: &librseq_publishers_defaults + name: 'librseq_publishers_defaults' publishers: - - tap: + - tap: &librseq_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 - - 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/**,tap/**' + - raw: &librseq_publisher_warnings-ng_defaults + xml: | + + + + + + + + + false + + + + + + false + true + false + 0 + 0 + + LOW + + + true + true + false + true + false + + + 1 + TOTAL + WARNING + + + AGGREGATION_TOOLS + + + - archive: &librseq_publisher_archive_defaults + artifacts: 'build/**,tap/**,log/**' + follow-symlinks: true allow-empty: false - - email-ext: + - workspace-cleanup: &librseq_publisher_workspace-cleanup_defaults + clean-if: + - failure: false + - ircbot: &librseq_publisher_ircbot_defaults + strategy: statechange-only + message-type: summary + matrix-notifier: only-parent + - email-ext: &librseq_publisher_email-ext_defaults recipients: '{obj:email_to}' reply-to: ci-notification@lists.lttng.org always: false @@ -152,26 +183,13 @@ send-to: - recipients -- librseq_build_publishers_gerrit: &librseq_build_publishers_gerrit - name: 'librseq_build_publishers_gerrit' +- _librseq_publishers_review: &librseq_publishers_review + name: 'librseq_publishers_review' 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 + - tap: *librseq_publisher_tap_defaults + - raw: *librseq_publisher_warnings-ng_defaults + - archive: *librseq_publisher_archive_defaults + - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults ## Templates @@ -179,62 +197,20 @@ name: librseq_{version}_{buildtype} defaults: librseq - <<: *librseq_build_axes_defaults - <<: *librseq_build_builders_defaults - <<: *librseq_build_publishers_defaults + <<: *librseq_matrix_axes_defaults + <<: *librseq_builders_defaults + <<: *librseq_publishers_defaults - job-template: name: librseq_{version}_{cctype} defaults: librseq - <<: *librseq_build_axes_cc - <<: *librseq_build_builders_defaults - <<: *librseq_build_publishers_defaults - -- job-template: - name: librseq_{version}_cppcheck - defaults: librseq - - triggers: - - pollscm: - cron: "@daily" - - builders: - - shell: | - rm -f cppcheck-result.xml - cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml - - publishers: - - archive: - artifacts: 'cppcheck-result.xml' - allow-empty: false - - cppcheck: - pattern: 'cppcheck-result.xml' - - email-ext: - recipients: '{obj:email_to}' - reply-to: ci-notification@lists.lttng.org - always: false - unstable: false - first-failure: true - first-unstable: false - 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: true - pre-build: false - matrix-trigger: only-parent - send-to: - - recipients + <<: *librseq_matrix_axes_cc + <<: *librseq_builders_defaults + <<: *librseq_publishers_defaults - job-template: - name: dev_gerrit_librseq_{buildtype} + name: dev_review_librseq_{version}_{buildtype} defaults: librseq concurrent: true @@ -257,12 +233,12 @@ - project-compare-type: 'PLAIN' project-pattern: 'librseq' branches: - - branch-compare-type: 'ANT' - branch-pattern: '**' + - branch-compare-type: 'PLAIN' + branch-pattern: '{version}' - <<: *librseq_build_axes_defaults - <<: *librseq_build_builders_defaults - <<: *librseq_build_publishers_gerrit + <<: *librseq_matrix_axes_defaults + <<: *librseq_builders_defaults + <<: *librseq_publishers_review properties: - inject: @@ -278,7 +254,7 @@ - job-template: name: librseq_{version}_scan-build defaults: librseq - node: 'amd64' + node: 'deb12-amd64' triggers: - pollscm: @@ -293,26 +269,22 @@ name: 'HTML Report' dir: 'scan-build-archive/' files: 'index.html' + - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults - job-template: name: librseq_{version}_coverity defaults: librseq - node: 'amd64' + node: 'deb12-amd64' triggers: - pollscm: cron: "@daily" wrappers: - - ansicolor - - timeout: - timeout: 10 - fail: true - type: no-activity + - ansicolor: *librseq_wrapper_ansicolor_defaults + - timeout: *librseq_wrapper_timeout_defaults - timestamps - - workspace-cleanup: - clean-if: - - failure: false + - workspace-cleanup - credentials-binding: - username-password-separated: credential-id: librseq_coverity_token @@ -328,6 +300,7 @@ - archive: artifacts: 'analysis-results.tgz,cov-int/**' allow-empty: false + - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults - view-template: name: 'Librseq' @@ -346,43 +319,44 @@ - master jobs: - 'librseq_{version}_{buildtype}': - buildtype: build - platforms: !!python/tuple [jammy-amd64] + buildtype: linuxbuild + platforms: !!python/tuple [deb12-amd64] builds: !!python/tuple [std, oot, dist, oot-dist] confs: !!python/tuple [std, static] - touchstone: '(build == "std") && (conf == "std")' - - 'librseq_{version}_{cctype}': - cctype: gccbuild - 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")' + touchstone: '' - 'librseq_{version}_{cctype}': cctype: clangbuild - platforms: !!python/tuple [jammy-amd64] + platforms: !!python/tuple [deb12-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")' + ccs: !!python/tuple [clang-13, clang-14, clang-15] + touchstone: '' - 'librseq_{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, static] - touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")' + touchstone: '' - project: - name: gerrit-librseq + name: review-librseq github_user: compudj github_name: librseq + version: + - master jobs: - - 'dev_gerrit_librseq_{buildtype}': - buildtype: build - platforms: !!python/tuple [jammy-amd64] + - 'dev_review_librseq_{version}_{buildtype}': + buildtype: linuxbuild + platforms: !!python/tuple [deb12-amd64] builds: !!python/tuple [std, oot, dist, oot-dist] confs: !!python/tuple [std, static] - touchstone: '(build == "std") && (conf == "std")' + touchstone: '' + - 'dev_review_librseq_{version}_{buildtype}': + buildtype: portbuild + platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386] + builds: !!python/tuple [std] + confs: !!python/tuple [std] + touchstone: '' - project: name: librseq-views