ansible: Manage multiple netplan configurations
[lttng-ci.git] / jobs / liburcu.yaml
index abd0878c0ec1c324081675952d77196e90fd859d..412aae4c52bcaa3496f7eb36111bbb12fb9dff93 100644 (file)
       - ansicolor: &liburcu_wrapper_ansicolor_defaults
           colormap: xterm
       - timeout: &liburcu_wrapper_timeout_defaults
-          timeout: 90
-          fail: true
-          type: absolute
+          timeout: 30
+          abort: true
+          type: no-activity
+          write-description: "<h1 style=\"color:red\">This build failed due to timeout.</h1>"
       - timestamps
       - workspace-cleanup
 
@@ -62,7 +63,7 @@
 
 
 ## Anchors
-- liburcu_matrix_axes_defaults: &liburcu_matrix_axes_defaults
+- _liburcu_matrix_axes_defaults: &liburcu_matrix_axes_defaults
     name: 'liburcu_matrix_axes_defaults'
     project-type: matrix
     node: 'master' # Applies only to matrix flyweight task
@@ -84,7 +85,7 @@
          name: build
          values: '{obj:builds}'
 
-- liburcu_builders_defaults: &liburcu_builders_defaults
+- _liburcu_builders_defaults: &liburcu_builders_defaults
     name: 'liburcu_builders_defaults'
     builders:
       !j2-yaml: |
            - scripts/liburcu/build.sh
       {% endif %}
 
-- liburcu_publishers_defaults: &liburcu_publishers_defaults
+- _liburcu_publishers_defaults: &liburcu_publishers_defaults
     name: 'liburcu_publishers_defaults'
     publishers:
       - tap: &liburcu_publisher_tap_defaults
               <scm/>
             </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
       - archive: &liburcu_publisher_archive_defaults
-          artifacts: 'build/**,tap/**'
+          artifacts: 'build/**,tap/**,log/**'
+          follow-symlinks: true
           allow-empty: false
       - workspace-cleanup: &liburcu_publisher_workspace_cleanup_defaults
           clean-if:
             - failure: false
+      - ircbot: &liburcu_publisher_ircbot_defaults
+          strategy: statechange-only
+          message-type: summary
+          matrix-notifier: only-parent
       - email-ext: &liburcu_publisher_email_ext_defaults
           recipients: '{obj:email_to}'
           reply-to: ci-notification@lists.lttng.org
     <<: *liburcu_publishers_defaults
 
 - job-template:
-    name: dev_gerrit_liburcu_{buildtype}
+    name: '{job_prefix}liburcu_{version}_{cctype}'
+    defaults: liburcu
+
+    <<: *liburcu_matrix_axes_defaults
+    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:
+         type: user-defined
+         name: cc
+         values: '{obj:ccs}'
+    <<: *liburcu_builders_defaults
+    <<: *liburcu_publishers_defaults
+
+- job-template:
+    name: dev_review_liburcu_{version}_{buildtype}
     defaults: liburcu
     concurrent: true
 
             - project-compare-type: 'PLAIN'
               project-pattern: 'userspace-rcu'
               branches:
-                - branch-compare-type: 'ANT'
-                  branch-pattern: '**'
+                - branch-compare-type: 'PLAIN'
+                  branch-pattern: '{version}'
+
+    properties:
+      - inject:
+          properties-content: |
+            PROJECT_NAME=liburcu
+      - build-discarder:
+          days-to-keep: 1
+      - throttle:
+          option: 'category'
+          categories:
+            - 'gerrit-{buildtype}'
 
     <<: *liburcu_matrix_axes_defaults
     <<: *liburcu_builders_defaults
 - job-template:
     name: liburcu_{version}_scan-build
     defaults: liburcu
-    node: 'bionic-amd64'
+    node: 'deb12-amd64'
 
     triggers:
       - pollscm:
           dir: 'scan-build-archive/'
           files: 'index.html'
       - workspace-cleanup: *liburcu_publisher_workspace_cleanup_defaults
+      - ircbot: *liburcu_publisher_ircbot_defaults
 
 - job-template:
     name: liburcu_{version}_coverity
     defaults: liburcu
-    node: 'bionic-amd64'
+    node: 'deb12-amd64'
 
     triggers:
       - pollscm:
           artifacts: 'analysis-results.tgz,cov-int/**'
           allow-empty: false
       - workspace-cleanup: *liburcu_publisher_workspace_cleanup_defaults
+      - ircbot: *liburcu_publisher_ircbot_defaults
 
 
 ## Views
       - master
     jobs:
       - '{job_prefix}liburcu_{version}_{buildtype}':
+          version: master
+          buildtype: linuxbuild
+          platforms: !!python/tuple [deb12-amd64]
+          builds: !!python/tuple [std, oot, dist]
+          confs: !!python/tuple [std, static, atomic-builtins, tls_fallback, debug-rcu]
+          touchstone: '(build == "std") && (conf == "std")'
+      - '{job_prefix}liburcu_{version}_{buildtype}':
+          version: stable-0.14
           buildtype: linuxbuild
-          platforms: !!python/tuple [jammy-amd64]
+          platforms: !!python/tuple [deb12-amd64]
           builds: !!python/tuple [std, oot, dist]
           confs: !!python/tuple [std, static, tls_fallback, debug-rcu]
           touchstone: '(build == "std") && (conf == "std")'
       - '{job_prefix}liburcu_{version}_{buildtype}':
-          buildtype: build
-          platforms: !!python/tuple [bionic-amd64]
+          version: stable-0.13
+          buildtype: linuxbuild
+          platforms: !!python/tuple [deb12-amd64]
           builds: !!python/tuple [std, oot, dist]
           confs: !!python/tuple [std, static, tls_fallback, debug-rcu]
           touchstone: '(build == "std") && (conf == "std")'
+      # Common
       - '{job_prefix}liburcu_{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, deb13-riscv64, deb12-i386]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std, static, tls_fallback, debug-rcu]
-          touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
+          touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
       - '{job_prefix}liburcu_{version}_{buildtype}':
           buildtype: slesbuild
-          platforms: !!python/tuple [sles12sp5-amd64]
+          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           touchstone: '(build == "std")'
       - '{job_prefix}liburcu_{version}_{buildtype}':
           buildtype: elbuild
-          platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
+          platforms: !!python/tuple [el8-amd64, el9-amd64, el8-arm64, el9-arm64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           touchstone: '(build == "std")'
       - '{job_prefix}liburcu_{version}_{buildtype}':
           buildtype: yoctobuild
-          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]
           touchstone: '(build == "std")'
       - '{job_prefix}liburcu_{version}_{buildtype}':
           buildtype: macosbuild
-          platforms: !!python/tuple [macos-amd64, macos-arm64]
+          platforms: !!python/tuple [macos-arm64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           touchstone: '(build == "std")'
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           touchstone: '(build == "std")'
+      - '{job_prefix}liburcu_{version}_{cctype}':
+          buildtype: linuxbuild
+          cctype: clangbuild
+          ccs: !!python/tuple [clang-13, clang-14, clang-15, clang-16]
+          platforms: !!python/tuple [deb12-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [std, static, atomic-builtins, tls_fallback, debug-rcu]
+          touchstone: '(build == "std") && (conf == "std")'
       - 'liburcu_{version}_scan-build'
       - 'liburcu_{version}_coverity':
           version: master
     jobs:
       - '{job_prefix}liburcu_{version}_{buildtype}':
           buildtype: linuxbuild
-          platforms: !!python/tuple [jammy-amd64]
+          platforms: !!python/tuple [deb12-amd64]
           builds: !!python/tuple [std, oot, dist]
           confs: !!python/tuple [std, static, tls_fallback, debug-rcu]
           touchstone: '(build == "std") && (conf == "std")'
       - '{job_prefix}liburcu_{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, tls_fallback, debug-rcu]
-          touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
+          touchstone: '(build == "std") && (conf == "std") && (platform == "deb12-i386")'
       - '{job_prefix}liburcu_{version}_{buildtype}':
           buildtype: slesbuild
-          platforms: !!python/tuple [sles12sp5-amd64]
+          platforms: !!python/tuple [sles12sp5-amd64, sles15sp4-amd64, sles15sp5-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           touchstone: '(build == "std")'
       - '{job_prefix}liburcu_{version}_{buildtype}':
           buildtype: elbuild
-          platforms: !!python/tuple [el7-amd64, el8-amd64, el9-amd64]
+          platforms: !!python/tuple [el8-amd64, el9-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std]
           touchstone: '(build == "std")'
 
 
 - project:
-    name: gerrit-liburcu
+    name: review-liburcu
     github_user: urcu
     github_name: userspace-rcu
+    version:
+      - stable-0.13
+      - stable-0.14
+      - master
     jobs:
-      - 'dev_gerrit_liburcu_{buildtype}':
-          buildtype: build
-          platforms: !!python/tuple [bionic-amd64]
+      - 'dev_review_liburcu_{version}_{buildtype}':
+          buildtype: linuxbuild
+          platforms: !!python/tuple [deb12-amd64]
           builds: !!python/tuple [std, oot, dist]
           confs: !!python/tuple [std, static, tls_fallback, debug-rcu]
           touchstone: '(build == "std")'
-      - 'dev_gerrit_liburcu_{buildtype}':
+      - 'dev_review_liburcu_{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]
-          touchstone: '(build == "std")'
-      - 'dev_gerrit_liburcu_{buildtype}':
+          touchstone: ''
+      - 'dev_review_liburcu_{version}_{buildtype}':
           buildtype: winbuild
           platforms: !!python/tuple [cygwin64]
           builds: !!python/tuple [std]
This page took 0.028018 seconds and 4 git commands to generate.