From: Herton R. Krzesinski <herton(a)redhat.com>
redhat: add gating configuration for centos stream/rhel9
Right now when we do the dist-git sync, it overrides/deletes everything
which is not on the src.rpm, which might delete any gating configuration
on dist-git. Make sure we always copy the gating configuration for
centos/rhel9. This might need some tweak later if Fedora or future RHEL
uses the same gating file but with different config.
Signed-off-by: Herton R. Krzesinski <herton(a)redhat.com>
diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -260,6 +260,7 @@ sources-rh: $(TARBALL) generate-testpatch-tmp setup-source
dist-configs-check
keys/rhel*.x509 \
kabi/check-kabi \
configs/$(PACKAGE_NAME)-*.config \
+ gating.yaml \
rpminspect.yaml \
update_scripts.sh \
kvm_stat.logrotate \
diff --git a/redhat/gating.yaml b/redhat/gating.yaml
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/gating.yaml
@@ -0,0 +1,9 @@
+--- !Policy
+product_versions:
+ - rhel-9
+decision_context: osci_compose_gate
+rules:
+ - !PassingTestCaseRule {test_case_name: cki.tier1-aarch64.functional}
+ - !PassingTestCaseRule {test_case_name: cki.tier1-ppc64le.functional}
+ - !PassingTestCaseRule {test_case_name: cki.tier1-s390x.functional}
+ - !PassingTestCaseRule {test_case_name: cki.tier1-x86_64.functional}
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -821,6 +821,7 @@ Source3003: Patchlist.changelog
Source4000: README.rst
Source4001: rpminspect.yaml
+Source4002: gating.yaml
## Patches needed for building this package
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1282