dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
8d419f
From 09eeda8d25f0f45d2c545c05fd8ae84404c83d83 Mon Sep 17 00:00:00 2001
8d419f
From: Jan Macku <jamacku@redhat.com>
8d419f
Date: Tue, 19 Jul 2022 12:29:28 +0200
8d419f
Subject: [PATCH] ci(Mergify): Add `ci-waived` logic
8d419f
8d419f
RHEL-only
8d419f
8d419f
Related: #2087652
8d419f
---
8d419f
 .mergify.yml | 66 ++++++++++++++++++++++++++++------------------------
8d419f
 1 file changed, 35 insertions(+), 31 deletions(-)
8d419f
8d419f
diff --git a/.mergify.yml b/.mergify.yml
8d419f
index b7852b201c..be25e52c76 100644
8d419f
--- a/.mergify.yml
8d419f
+++ b/.mergify.yml
8d419f
@@ -4,6 +4,7 @@
8d419f
 pull_request_rules:
8d419f
   - name: Add `needs-ci` label on CI fail
8d419f
     conditions:
8d419f
+      - label!=ci-waived
8d419f
       - or:
8d419f
         # Build test
8d419f
         - -check-success=build (gcc, 10, bfd)
8d419f
@@ -31,9 +32,9 @@ pull_request_rules:
8d419f
         - and:    
8d419f
           - "-check-success=LGTM analysis: C/C++"
8d419f
           - "-check-neutral=LGTM analysis: C/C++"
8d419f
-      # Packit
8d419f
-      - -check-success=rpm-build:centos-stream-9-aarch64
8d419f
-      - -check-success=rpm-build:centos-stream-9-x86_64
8d419f
+        # Packit
8d419f
+        - -check-success=rpm-build:centos-stream-9-aarch64
8d419f
+        - -check-success=rpm-build:centos-stream-9-x86_64
8d419f
     actions:
8d419f
       label:
8d419f
         add:
8d419f
@@ -41,35 +42,38 @@ pull_request_rules:
8d419f
           
8d419f
   - name: Remove `needs-ci` label on CI success
8d419f
     conditions:
8d419f
-      # Build test
8d419f
-      - check-success=build (gcc, 10, bfd)
8d419f
-      - check-success=build (gcc, 11, gold)
8d419f
-      - check-success=build (clang, 11, bfd)
8d419f
-      - check-success=build (clang, 12, gold)
8d419f
-      - check-success=build (clang, 13, lld)
8d419f
-      # Unit tests
8d419f
-      - check-success=build (GCC, auto)
8d419f
-      - check-success=build (GCC_ASAN_UBSAN, auto)
8d419f
-      - check-success=build (CLANG, auto)
8d419f
-      - check-success=build (CLANG_ASAN_UBSAN, auto)
8d419f
-      - check-success=build (GCC, openssl)
8d419f
-      - check-success=build (CLANG, gcrypt)
8d419f
-      # CentOS CI
8d419f
-      - check-success=CentOS CI (CentOS Stream 9)
8d419f
-      - check-success=CentOS CI (CentOS Stream 9 + sanitizers)
8d419f
-      # LGTM
8d419f
       - or:
8d419f
-        - "check-success=LGTM analysis: JavaScript"
8d419f
-        - "check-neutral=LGTM analysis: JavaScript"
8d419f
-      - or:
8d419f
-        - "check-success=LGTM analysis: Python"
8d419f
-        - "check-neutral=LGTM analysis: Python"
8d419f
-      - or:    
8d419f
-        - "check-success=LGTM analysis: C/C++"
8d419f
-        - "check-neutral=LGTM analysis: C/C++"
8d419f
-      # Packit
8d419f
-      - check-success=rpm-build:centos-stream-9-aarch64
8d419f
-      - check-success=rpm-build:centos-stream-9-x86_64
8d419f
+        - label=ci-waived
8d419f
+        - and:
8d419f
+          # Build test
8d419f
+          - check-success=build (gcc, 10, bfd)
8d419f
+          - check-success=build (gcc, 11, gold)
8d419f
+          - check-success=build (clang, 11, bfd)
8d419f
+          - check-success=build (clang, 12, gold)
8d419f
+          - check-success=build (clang, 13, lld)
8d419f
+          # Unit tests
8d419f
+          - check-success=build (GCC, auto)
8d419f
+          - check-success=build (GCC_ASAN_UBSAN, auto)
8d419f
+          - check-success=build (CLANG, auto)
8d419f
+          - check-success=build (CLANG_ASAN_UBSAN, auto)
8d419f
+          - check-success=build (GCC, openssl)
8d419f
+          - check-success=build (CLANG, gcrypt)
8d419f
+          # CentOS CI
8d419f
+          - check-success=CentOS CI (CentOS Stream 9)
8d419f
+          - check-success=CentOS CI (CentOS Stream 9 + sanitizers)
8d419f
+          # LGTM
8d419f
+          - or:
8d419f
+            - "check-success=LGTM analysis: JavaScript"
8d419f
+            - "check-neutral=LGTM analysis: JavaScript"
8d419f
+          - or:
8d419f
+            - "check-success=LGTM analysis: Python"
8d419f
+            - "check-neutral=LGTM analysis: Python"
8d419f
+          - or:    
8d419f
+            - "check-success=LGTM analysis: C/C++"
8d419f
+            - "check-neutral=LGTM analysis: C/C++"
8d419f
+          # Packit
8d419f
+          - check-success=rpm-build:centos-stream-9-aarch64
8d419f
+          - check-success=rpm-build:centos-stream-9-x86_64
8d419f
     actions:
8d419f
       label:
8d419f
         remove: