dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
ac3a84
From cdfc360ed871f54faa6d10c0fe9cf4cd28061a28 Mon Sep 17 00:00:00 2001
ac3a84
From: Jan Macku <jamacku@redhat.com>
ac3a84
Date: Thu, 8 Dec 2022 15:42:41 +0100
ac3a84
Subject: [PATCH] ci(Mergify): v252 configuration update
ac3a84
ac3a84
rhel-only
ac3a84
ac3a84
Related: #2138081
ac3a84
---
ac3a84
 .mergify.yml | 101 +++++++++++++++++++++++++++++++++++++++++++++------
ac3a84
 1 file changed, 89 insertions(+), 12 deletions(-)
ac3a84
ac3a84
diff --git a/.mergify.yml b/.mergify.yml
ac3a84
index ddc79a1d7a..bc1743e8ea 100644
ac3a84
--- a/.mergify.yml
ac3a84
+++ b/.mergify.yml
ac3a84
@@ -2,23 +2,31 @@
ac3a84
 ---
ac3a84
 
ac3a84
 pull_request_rules:
ac3a84
-  - name: Add `needs-ci` label on CI fail
ac3a84
+  - name: Add `needs-ci` label on CI fail - v252
ac3a84
     conditions:
ac3a84
+      # Policy is relevant for rhel-9.2.0 branches and newer & main branch
ac3a84
+      - base~=^main$|^rhel-9.([2-9]|\d{2,}).0$
ac3a84
       - label!=ci-waived
ac3a84
       - or:
ac3a84
         # Build test
ac3a84
-        - -check-success=build (gcc, 10, bfd)
ac3a84
-        - -check-success=build (gcc, 11, gold)
ac3a84
-        - -check-success=build (clang, 11, bfd)
ac3a84
-        - -check-success=build (clang, 12, gold)
ac3a84
-        - -check-success=build (clang, 13, lld)
ac3a84
+        - -check-success=build (gcc, 11, bfd, gcrypt)
ac3a84
+        - -check-success=build (gcc, 12, gold, openssl)
ac3a84
+        - -check-success=build (clang, 13, mold, gcrypt) 
ac3a84
+        - -check-success=build (clang, 14, lld, openssl)
ac3a84
+        - -check-success=build (clang, 15, bfd, auto)
ac3a84
         # Unit tests
ac3a84
         - -check-success=build (GCC, auto)
ac3a84
         - -check-success=build (GCC_ASAN_UBSAN, auto)
ac3a84
         - -check-success=build (CLANG, auto)
ac3a84
+        - -check-success=build (CLANG_RELEASE, auto)
ac3a84
         - -check-success=build (CLANG_ASAN_UBSAN, auto)
ac3a84
+        - -check-success=build (CLANG_ASAN_UBSAN_NO_DEPS, auto)
ac3a84
         - -check-success=build (GCC, openssl)
ac3a84
         - -check-success=build (CLANG, gcrypt)
ac3a84
+        # ClusterFuzzingLite
ac3a84
+        - -check-success=PR (address) 
ac3a84
+        - -check-success=PR (undefined)
ac3a84
+        - -check-success=PR (memory)
ac3a84
         # CentOS CI
ac3a84
         - -check-success=CentOS CI (CentOS Stream 9)
ac3a84
         - -check-success=CentOS CI (CentOS Stream 9 + sanitizers)
ac3a84
@@ -35,24 +43,62 @@ pull_request_rules:
ac3a84
         add:
ac3a84
           - needs-ci
ac3a84
 
ac3a84
-  - name: Remove `needs-ci` label on CI success
ac3a84
+  - name: Add `needs-ci` label on CI fail - v250
ac3a84
     conditions:
ac3a84
+      # Policy is relevant branches before rhel-9.2.0
ac3a84
+      - base~=^rhel-9.0.0-beta$|^rhel-9.[0-1].0$
ac3a84
+      - label!=ci-waived
ac3a84
+      - or:
ac3a84
+        # Build test
ac3a84
+        - -check-success=build (gcc, 10, bfd)
ac3a84
+        - -check-success=build (gcc, 11, gold)
ac3a84
+        - -check-success=build (clang, 11, bfd)
ac3a84
+        - -check-success=build (clang, 12, gold)
ac3a84
+        - -check-success=build (clang, 13, lld)
ac3a84
+        # Unit tests
ac3a84
+        - -check-success=build (GCC, auto)
ac3a84
+        - -check-success=build (GCC_ASAN_UBSAN, auto)
ac3a84
+        - -check-success=build (CLANG, auto)
ac3a84
+        - -check-success=build (CLANG_ASAN_UBSAN, auto)
ac3a84
+        - -check-success=build (GCC, openssl)
ac3a84
+        - -check-success=build (CLANG, gcrypt)
ac3a84
+        # CentOS CI
ac3a84
+        - -check-success=CentOS CI (CentOS Stream 9)
ac3a84
+        - -check-success=CentOS CI (CentOS Stream 9 + sanitizers)
ac3a84
+        # Packit
ac3a84
+        - -check-success=rpm-build:centos-stream-9-aarch64
ac3a84
+        - -check-success=rpm-build:centos-stream-9-x86_64
ac3a84
+    actions:
ac3a84
+      label:
ac3a84
+        add:
ac3a84
+          - needs-ci
ac3a84
+
ac3a84
+  - name: Remove `needs-ci` label on CI success - v252
ac3a84
+    conditions:
ac3a84
+      # Policy is relevant for rhel-9.2.0 branches and newer & main branch
ac3a84
+      - base~=^main$|^rhel-9.([2-9]|\d{2,}).0$
ac3a84
       - or:
ac3a84
         - label=ci-waived
ac3a84
         - and:
ac3a84
           # Build test
ac3a84
-          - check-success=build (gcc, 10, bfd)
ac3a84
-          - check-success=build (gcc, 11, gold)
ac3a84
-          - check-success=build (clang, 11, bfd)
ac3a84
-          - check-success=build (clang, 12, gold)
ac3a84
-          - check-success=build (clang, 13, lld)
ac3a84
+          - check-success=build (gcc, 11, bfd, gcrypt)
ac3a84
+          - check-success=build (gcc, 12, gold, openssl)
ac3a84
+          - check-success=build (clang, 13, mold, gcrypt) 
ac3a84
+          - check-success=build (clang, 14, lld, openssl)
ac3a84
+          - check-success=build (clang, 15, bfd, auto)
ac3a84
           # Unit tests
ac3a84
           - check-success=build (GCC, auto)
ac3a84
           - check-success=build (GCC_ASAN_UBSAN, auto)
ac3a84
           - check-success=build (CLANG, auto)
ac3a84
+          - check-success=build (CLANG_RELEASE, auto)
ac3a84
           - check-success=build (CLANG_ASAN_UBSAN, auto)
ac3a84
+          - check-success=build (CLANG_ASAN_UBSAN_NO_DEPS, auto)
ac3a84
           - check-success=build (GCC, openssl)
ac3a84
           - check-success=build (CLANG, gcrypt)
ac3a84
+          # ClusterFuzzingLite
ac3a84
+          - check-success=PR (address) 
ac3a84
+          - check-success=PR (undefined)
ac3a84
+          - check-success=PR (memory)
ac3a84
           # CentOS CI
ac3a84
           - check-success=CentOS CI (CentOS Stream 9)
ac3a84
           - check-success=CentOS CI (CentOS Stream 9 + sanitizers)
ac3a84
@@ -68,3 +114,34 @@ pull_request_rules:
ac3a84
       label:
ac3a84
         remove:
ac3a84
           - needs-ci
ac3a84
+
ac3a84
+  - name: Remove `needs-ci` label on CI success - v250
ac3a84
+    conditions:
ac3a84
+      # Policy is relevant branches before rhel-9.2.0
ac3a84
+      - base~=^rhel-9.0.0-beta$|^rhel-9.[0-1].0$
ac3a84
+      - or:
ac3a84
+        - label=ci-waived
ac3a84
+        - and:
ac3a84
+          # Build test
ac3a84
+          - check-success=build (gcc, 10, bfd)
ac3a84
+          - check-success=build (gcc, 11, gold)
ac3a84
+          - check-success=build (clang, 11, bfd)
ac3a84
+          - check-success=build (clang, 12, gold)
ac3a84
+          - check-success=build (clang, 13, lld)
ac3a84
+          # Unit tests
ac3a84
+          - check-success=build (GCC, auto)
ac3a84
+          - check-success=build (GCC_ASAN_UBSAN, auto)
ac3a84
+          - check-success=build (CLANG, auto)
ac3a84
+          - check-success=build (CLANG_ASAN_UBSAN, auto)
ac3a84
+          - check-success=build (GCC, openssl)
ac3a84
+          - check-success=build (CLANG, gcrypt)
ac3a84
+          # CentOS CI
ac3a84
+          - check-success=CentOS CI (CentOS Stream 9)
ac3a84
+          - check-success=CentOS CI (CentOS Stream 9 + sanitizers)
ac3a84
+          # Packit
ac3a84
+          - check-success=rpm-build:centos-stream-9-aarch64
ac3a84
+          - check-success=rpm-build:centos-stream-9-x86_64
ac3a84
+    actions:
ac3a84
+      label:
ac3a84
+        remove:
ac3a84
+          - needs-ci