jjb: babeltrace: use clang-format-16
[lttng-ci.git] / jobs / librseq.yaml
index 1c8884be1e8dd8b8e42a26d52bd83d02bf2811cd..ff7f4c285e030f21bd99cad4f2854b6272ebec84 100644 (file)
@@ -4,7 +4,6 @@
 # jobtypes:
 #   - build
 #   - portbuild
-#   - cppcheck
 #   - coverity
 #   - scan-build
 #   - pylint
     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:
           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:
         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:
         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: |
+            <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
+              <analysisTools>
+                <io.jenkins.plugins.analysis.warnings.Gcc4>
+                  <id/>
+                  <name/>
+                  <jenkins plugin="plugin-util-api"/>
+                  <pattern/>
+                  <reportEncoding/>
+                  <skipSymbolicLinks>false</skipSymbolicLinks>
+                </io.jenkins.plugins.analysis.warnings.Gcc4>
+              </analysisTools>
+              <sourceCodeEncoding/>
+              <sourceDirectory/>
+              <sourceDirectories/>
+              <ignoreQualityGate>false</ignoreQualityGate>
+              <ignoreFailedBuilds>true</ignoreFailedBuilds>
+              <failOnError>false</failOnError>
+              <healthy>0</healthy>
+              <unhealthy>0</unhealthy>
+              <minimumSeverity plugin="analysis-model-api">
+                <name>LOW</name>
+              </minimumSeverity>
+              <filters/>
+              <isEnabledForFailure>true</isEnabledForFailure>
+              <isAggregatingResults>true</isAggregatingResults>
+              <isBlameDisabled>false</isBlameDisabled>
+              <skipPublishingChecks>true</skipPublishingChecks>
+              <publishAllIssues>false</publishAllIssues>
+              <qualityGates>
+                <io.jenkins.plugins.analysis.core.util.QualityGate>
+                  <threshold>1</threshold>
+                  <type>TOTAL</type>
+                  <status>WARNING</status>
+                </io.jenkins.plugins.analysis.core.util.QualityGate>
+              </qualityGates>
+              <trendChartType>AGGREGATION_TOOLS</trendChartType>
+              <scm/>
+            </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
+      - 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
           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
     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
 
             - 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:
 - job-template:
     name: librseq_{version}_scan-build
     defaults: librseq
-    node: 'amd64'
+    node: 'deb12-amd64'
 
     triggers:
       - pollscm:
           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
       - archive:
           artifacts: 'analysis-results.tgz,cov-int/**'
           allow-empty: false
+      - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
 
 - view-template:
     name: 'Librseq'
       - 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
This page took 0.028021 seconds and 4 git commands to generate.