From e928cf5b224b1c96e67698de9f9482c9637d0c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branislav=20N=C3=A1ter?= Date: Thu, 16 May 2024 11:40:15 +0200 Subject: [PATCH] Test plans and gating configuration --- ci.fmf | 1 + gating.yaml | 10 ++++++++++ plans/tier1-internal.fmf | 10 ++++++++++ plans/{all.fmf => tier1-public.fmf} | 3 ++- plans/tier2-internal.fmf | 10 ++++++++++ plans/tier3-internal.fmf | 10 ++++++++++ 6 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 ci.fmf create mode 100644 plans/tier1-internal.fmf rename plans/{all.fmf => tier1-public.fmf} (58%) create mode 100644 plans/tier2-internal.fmf create mode 100644 plans/tier3-internal.fmf diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml index d2f0c2e..bb736d2 100644 --- a/gating.yaml +++ b/gating.yaml @@ -14,3 +14,13 @@ decision_contexts: [bodhi_update_push_stable] subject_type: koji_build rules: - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} + +#gating rhel +--- !Policy +product_versions: + - rhel-* +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-public.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier2-internal.functional} diff --git a/plans/tier1-internal.fmf b/plans/tier1-internal.fmf new file mode 100644 index 0000000..42502f2 --- /dev/null +++ b/plans/tier1-internal.fmf @@ -0,0 +1,10 @@ +summary: Internal Tier1 beakerlib tests +discover: + how: fmf + url: git://pkgs.devel.redhat.com/tests/php + filter: 'tier: 1' +execute: + how: tmt +adjust: + enabled: false + when: distro == centos-stream-10 diff --git a/plans/all.fmf b/plans/tier1-public.fmf similarity index 58% rename from plans/all.fmf rename to plans/tier1-public.fmf index c7cfba5..ffa0ee3 100644 --- a/plans/all.fmf +++ b/plans/tier1-public.fmf @@ -1,6 +1,7 @@ -summary: Test plan with all beakerlib tests +summary: Public (Fedora) Tier1 beakerlib tests discover: how: fmf url: https://src.fedoraproject.org/tests/php.git + filter: 'tier: 1' execute: how: tmt diff --git a/plans/tier2-internal.fmf b/plans/tier2-internal.fmf new file mode 100644 index 0000000..d5fe44b --- /dev/null +++ b/plans/tier2-internal.fmf @@ -0,0 +1,10 @@ +summary: Internal Tier2 beakerlib tests +discover: + how: fmf + url: git://pkgs.devel.redhat.com/tests/php + filter: 'tier: 2' +execute: + how: tmt +adjust: + enabled: false + when: distro == centos-stream-10 diff --git a/plans/tier3-internal.fmf b/plans/tier3-internal.fmf new file mode 100644 index 0000000..ca0280f --- /dev/null +++ b/plans/tier3-internal.fmf @@ -0,0 +1,10 @@ +summary: Internal Tier3 beakerlib tests +discover: + how: fmf + url: git://pkgs.devel.redhat.com/tests/php + filter: 'tier: 3' +execute: + how: tmt +adjust: + enabled: false + when: distro == centos-stream-10