jjb: Update regex match for lttng-modules detection on dev_review jobs
[lttng-ci.git] / jobs / lttng-tools.yaml
index 7b3b468d05f4b9cdbc824b8c0310f3c53dca56e5..f32ce045c6a118cb1f7ed2251827482da365520d 100644 (file)
          name: node
          values:
            - 'amd64-rootnode'
+           - 'el8-amd64-rootnode'
            - 'i386-rootnode'
+           - 'sles15sp4-amd64-rootnode'
       - axis:
           <<: *lttng-tools_matrix_axis_platform
           type: user-defined
       - axis: *lttng-tools_matrix_axis_liburcu_version
       - axis: *lttng-tools_matrix_axis_babeltrace_version
 
-
 ## Builders Anchors
 - _lttng-tools_builders_defaults: &lttng-tools_builders_defaults
     name: 'lttng-tools_builders_defaults'
               ust_conf=std
               ;;
           esac
-          # Run java tests only on 'linuxbuild' jobs
-          if [ "{buildtype}" = "linuxbuild" ]; then
+          # Run java tests only on 'linuxbuild' and 'slesbuild' jobs
+          if [ "{buildtype}" = "linuxbuild" ] || [ "{buildtype}" = "slesbuild" ]; then
             echo "LTTNG_TOOLS_RUN_UST_JAVA_TESTS=yes" >> env.properties
           else
             echo "LTTNG_TOOLS_RUN_UST_JAVA_TESTS=no" >> env.properties
           fi
+          if [ "{buildtype}" = "slesbuild" ] ; then
+            echo "TAP_AUTOTIME=0" >> env.properties
+            echo "LTTNG_TESTS_TAP_AUTOTIME=0" >> env.properties
+            # On SLES, force log4j to 2.17.1
+            echo "LTTNG_TOOLS_UST_JAVA_TESTS_LOG4J_API_VERSION=2.17.1" >> env.properties
+          fi
           echo "liburcu_conf=$liburcu_conf" >> env.properties
           echo "babeltrace_conf=$babeltrace_conf" >> env.properties
           echo "ust_conf=$ust_conf" >> env.properties
       - conditional-step:
           condition-kind: regex-match
           label: '$JOB_NAME'
-          regex: '.*_rootbuild.*'
+          regex: '.*_root(?:_[a-z]+)?build.*'
           steps:
             - shell: |
                 #!/bin/bash
 - _lttng-tools_builders_review: &lttng-tools_builders_review
     name: 'lttng-tools_builders_review'
     builders:
+      - shell: |
+          #!/bin/bash
+          set -exu
+          # Run java tests only on 'linuxbuild' and 'slesbuild' jobs
+          if [ "{buildtype}" = "linuxbuild" ] || [ "{buildtype}" = "slesbuild" ]; then
+            echo "LTTNG_TOOLS_RUN_UST_JAVA_TESTS=yes" >> env.properties
+          else
+            echo "LTTNG_TOOLS_RUN_UST_JAVA_TESTS=no" >> env.properties
+          fi
+          if [ "{buildtype}" = "slesbuild" ] ; then
+            echo "TAP_AUTOTIME=0" >> env.properties
+            echo "LTTNG_TESTS_TAP_AUTOTIME=0" >> env.properties
+          fi
+      - inject:
+          properties-file: env.properties
       - shell:
          !include-raw-escape: scripts/lttng-tools/gerrit-depends-on.sh
 
       - conditional-step:
           condition-kind: regex-match
           label: '$JOB_NAME'
-          regex: '.*_rootbuild.*'
+          regex: '.*_root(?:_[a-z]+)?build.*'
           steps:
             - shell: |
                 #!/bin/bash
           include-comment-diagnostics: true
           output-tap-to-console: false
           todo-is-failure: false
+          remove-yaml-if-corrupted: true
 
       - raw: &lttng-tools_publisher_warnings-ng_defaults
           xml: |
             jobs: '{ust_job_prefix}lttng-ust_{version}_{buildtype}'
             result: 'success'
 
+- job-template:
+    name: '{job_prefix}lttng-tools_{version}_root_{buildtype}'
+    defaults: lttng-tools
+
+    scm:
+      - git: *lttng-tools_scm_git_default
+
+    wrappers:
+      - ansicolor: *lttng-tools_wrapper_ansicolor_defaults
+      - timeout:
+          <<: *lttng-tools_wrapper_timeout_defaults
+          timeout: 10
+      - timestamps
+
+    <<: *lttng-tools_matrix_axes_rootbuild
+    <<: *lttng-tools_builders_defaults
+    <<: *lttng-tools_publishers_rootbuild
+
+    triggers:
+      - pollscm: *lttng-tools_trigger_pollscm_default
+      - reverse:
+            jobs: '{ust_job_prefix}lttng-ust_{version}_{buildtype}'
+            result: 'success'
+
 - job-template:
     name: '{job_prefix}lttng-tools_{version}_macosbuild'
     defaults: lttng-tools
       - archive: *lttng-tools_publisher_archive_defaults
       - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
 
+- job-template:
+    name: 'dev_review_lttng-tools_{version}_root_{buildtype}'
+    defaults: lttng-tools
+    concurrent: true
+
+    scm:
+      - git: *lttng-tools_scm_git_review
+
+    triggers:
+      - gerrit: *lttng-tools_trigger_gerrit_default
+
+    properties:
+      - inject: *lttng-tools_property_inject_defaults
+      - build-discarder:
+          days-to-keep: 1
+      - throttle:
+          option: 'category'
+          categories:
+            - 'gerrit-{buildtype}'
+
+    <<: *lttng-tools_matrix_axes_rootbuild
+    <<: *lttng-tools_builders_review
+
+    publishers:
+      - tap: *lttng-tools_publisher_tap_defaults
+      - raw: *lttng-tools_publisher_warnings-ng_defaults
+      - archive: *lttng-tools_publisher_archive_defaults
+      - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+
 - job-template:
     name: 'dev_review_lttng-tools_{version}_check-format'
     defaults: lttng-tools
       - copyartifact:
           <<: *lttng-tools_steps_copyartifact_defaults
           project: 'liburcu_{urcuversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
+      - copyartifact:
+          <<: *lttng-tools_steps_copyartifact_defaults
+          project: 'babeltrace_{babelversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
       - copyartifact:
           <<: *lttng-tools_steps_copyartifact_defaults
           project: 'lttng-ust_{ustversion}_linuxbuild/liburcu_version={urcuversion},platform=deb12-amd64,conf=std,build=std'
       - copyartifact:
           <<: *lttng-tools_steps_copyartifact_defaults
           project: 'liburcu_{urcuversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
+      - copyartifact:
+          <<: *lttng-tools_steps_copyartifact_defaults
+          project: 'babeltrace_{babelversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
       - copyartifact:
           <<: *lttng-tools_steps_copyartifact_defaults
           project: 'lttng-ust_{ustversion}_linuxbuild/liburcu_version={urcuversion},platform=deb12-amd64,conf=std,build=std'
           buildtype: slesbuild
           version: master
           ustversion: master
-          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
+          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [agents]
           urcuversions: !!python/tuple [master]
           buildtype: yoctobuild
           version: master
           ustversion: master
-          platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
+          platforms: !!python/tuple [yocto23-powerpcspe, yocto40-powerpc, yocto40-ppc64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           urcuversions: !!python/tuple [master]
           babelversions: !!python/tuple [stable-2.0]
           filter: '(node=="amd64-rootnode" && platform=="deb12-amd64")'
           touchstone: ''
+      - '{job_prefix}lttng-tools_{version}_root_{buildtype}':
+          buildtype: slesbuild
+          version: master
+          ustversion: master
+          platforms: !!python/tuple [sles15sp4-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [agents]
+          urcuversions: !!python/tuple [master]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="sles15sp4-amd64-rootnode" && platform=="sles15sp4-amd64")'
+          touchstone: ''
+      - '{job_prefix}lttng-tools_{version}_root_{buildtype}':
+          buildtype: elbuild
+          version: master
+          ustversion: master
+          platforms: !!python/tuple [el8-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [std]
+          urcuversions: !!python/tuple [master]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="el8-amd64-rootnode" && platform=="el8-amd64")'
+          touchstone: ''
       - '{job_prefix}lttng-tools_{version}_rootbuild_i386':
           buildtype: portbuild
           version: master
           version: master
           urcuversion: master
           ustversion: master
+          babelversion: master
       - 'lttng-tools_{version}_coverity':
           version: master
           urcuversion: master
           ustversion: master
+          babelversion: master
 
       # stable-2.13
       - '{job_prefix}lttng-tools_{version}_{buildtype}':
           buildtype: slesbuild
           version: stable-2.13
           ustversion: stable-2.13
-          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
+          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [agents]
           urcuversions: !!python/tuple [stable-0.13]
           buildtype: yoctobuild
           version: stable-2.13
           ustversion: stable-2.13
-          platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
+          platforms: !!python/tuple [yocto23-powerpcspe, yocto40-powerpc, yocto40-ppc64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           urcuversions: !!python/tuple [stable-0.13]
           babelversions: !!python/tuple [stable-2.0]
           filter: '(node=="amd64-rootnode" && platform=="deb12-amd64")'
           touchstone: ''
+      - '{job_prefix}lttng-tools_{version}_root_{buildtype}':
+          buildtype: slesbuild
+          version: stable-2.13
+          ustversion: stable-2.13
+          platforms: !!python/tuple [sles15sp4-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [agents]
+          urcuversions: !!python/tuple [stable-0.13]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="sles15sp4-amd64-rootnode" && platform=="sles15sp4-amd64")'
+          touchstone: ''
+      - '{job_prefix}lttng-tools_{version}_root_{buildtype}':
+          buildtype: elbuild
+          version: stable-2.13
+          ustversion: stable-2.13
+          platforms: !!python/tuple [el8-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [std]
+          urcuversions: !!python/tuple [stable-0.13]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="el8-amd64-rootnode" && platform=="el8-amd64")'
+          touchstone: ''
       - 'lttng-tools_{version}_release':
           version: v2.13
           ustversion: stable-2.13
           version: stable-2.13
           urcuversion: stable-0.13
           ustversion: stable-2.13
+          babelversion: stable-2.0
 
       # stable-2.12
       - '{job_prefix}lttng-tools_{version}_{buildtype}':
           buildtype: slesbuild
           version: stable-2.12
           ustversion: stable-2.12
-          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64]
+          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [agents]
           urcuversions: !!python/tuple [stable-0.13]
           buildtype: yoctobuild
           version: stable-2.12
           ustversion: stable-2.12
-          platforms: !!python/tuple [yocto23-powerpcspe, yocto23-powerpc, yocto31-ppc64]
+          platforms: !!python/tuple [yocto23-powerpcspe, yocto40-powerpc, yocto40-ppc64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           urcuversions: !!python/tuple [stable-0.13]
           babelversions: !!python/tuple [stable-2.0]
           filter: '(node=="amd64-rootnode-linux5" && platform=="deb12-amd64")'
           touchstone: ''
+      - '{job_prefix}lttng-tools_{version}_root_{buildtype}':
+          buildtype: slesbuild
+          version: stable-2.12
+          ustversion: stable-2.12
+          platforms: !!python/tuple [sles15sp4-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [agents]
+          urcuversions: !!python/tuple [stable-0.13]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="sles15sp4-amd64-rootnode" && platform=="sles15sp4-amd64")'
+          touchstone: ''
+      - '{job_prefix}lttng-tools_{version}_root_{buildtype}':
+          buildtype: elbuild
+          version: stable-2.12
+          ustversion: stable-2.12
+          platforms: !!python/tuple [el8-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [std]
+          urcuversions: !!python/tuple [stable-0.13]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="el8-amd64-rootnode" && platform=="el8-amd64")'
+          touchstone: ''
       - 'lttng-tools_{version}_release':
           version: v2.12
           ustversion: stable-2.12
           version: stable-2.12
           urcuversion: stable-0.13
           ustversion: stable-2.12
+          babelversion: stable-2.0
 
 - project:
     name: dev_jgalar_lttng-tools
           babelversions: !!python/tuple [stable-2.0]
           filter: ''
           touchstone: ''
+      - 'dev_review_lttng-tools_{version}_{buildtype}':
+          version: master
+          buildtype: slesbuild
+          ustversion: master
+          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [agents]
+          urcuversions: !!python/tuple [master]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: ''
+          touchstone: ''
       - 'dev_review_lttng-tools_{version}_rootbuild':
           version: master
           buildtype: linuxbuild
           babelversions: !!python/tuple [stable-2.0]
           filter: '(node=="amd64-rootnode" && platform=="deb12-amd64")'
           touchstone: ''
+      - 'dev_review_lttng-tools_{version}_root_{buildtype}':
+          version: master
+          buildtype: slesbuild
+          platforms: !!python/tuple [sles15sp4-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [agents]
+          urcuversions: !!python/tuple [stable-0.14]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="sles15sp4-amd64-rootnode" && platform=="sles15sp4-amd64")'
+          touchstone: ''
       - 'dev_review_lttng-tools_{version}_smokebuild':
           version: master
           buildtype: linuxbuild
           babelversions: !!python/tuple [stable-2.0]
           filter: '(node=="amd64-rootnode" && platform=="deb12-amd64")'
           touchstone: ''
+      - 'dev_review_lttng-tools_{version}_root_{buildtype}':
+          version: stable-2.13
+          buildtype: slesbuild
+          platforms: !!python/tuple [sles15sp4-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [agents]
+          urcuversions: !!python/tuple [stable-0.13]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="sles15sp4-amd64-rootnode" && platform=="sles15sp4-amd64")'
+          touchstone: ''
 
     ## Stable 2.12 ##
       - 'dev_review_lttng-tools_{version}_{buildtype}':
           babelversions: !!python/tuple [stable-2.0]
           filter: '(node=="amd64-rootnode-linux5" && platform=="deb12-amd64")'
           touchstone: ''
-
-- project:
-    name: lttng-tools-mjeanson
-    job_prefix: 'dev_mjeanson_'
-    ust_job_prefix: 'dev_mjeanson_'
-    urcu_job_prefix: 'dev_mjeanson_'
-    bt_job_prefix: 'dev_mjeanson_'
-    github_user: lttng
-    github_name: lttng-tools
-    email_to: "mjeanson@efficios.com"
-    version:
-      - master
-    jobs:
-      - '{job_prefix}lttng-tools_{version}_{buildtype}':
-          buildtype: portbuild
-          version: master
-          ustversion: master
-          platforms: !!python/tuple [sid-riscv64]
-          builds: !!python/tuple [std]
-          confs: !!python/tuple [std, no-ust, agents]
-          urcuversions: !!python/tuple [master]
-          babelversions: !!python/tuple [master]
-          filter: ''
-          touchstone: ''
-      - '{job_prefix}lttng-tools_{version}_rootbuild':
-          version: master
-          buildtype: linuxbuild
-          ustversion: master
-          platforms: !!python/tuple [deb12-amd64]
+      - 'dev_review_lttng-tools_{version}_root_{buildtype}':
+          version: stable-2.12
+          buildtype: slesbuild
+          platforms: !!python/tuple [sles15sp4-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [agents]
-          urcuversions: !!python/tuple [master]
-          ustversion: master
-          babelversions: !!python/tuple [master]
-          filter: '(node=="amd64-rootnode" && platform=="deb12-amd64")'
+          urcuversions: !!python/tuple [stable-0.13]
+          babelversions: !!python/tuple [stable-2.0]
+          filter: '(node=="sles15sp4-amd64-rootnode" && platform=="sles15sp4-amd64")'
           touchstone: ''
 
+
 - project:
     name: lttng-tools-views
     views:
This page took 0.028899 seconds and 4 git commands to generate.