systemd/SOURCES/0154-ci-Mergify-v252-configuration-update.patch

159 lines
6.0 KiB
Diff
Raw Normal View History

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