From aec7b4223d69418e69ecf94a09d731c7340a6e4a Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 27 Nov 2024 15:17:14 +0100 Subject: [PATCH] Migrate to TMT-style gating in C9S This is required for RHIVOS, see VROOM-23635. --- .fmf/version | 1 + ci.fmf | 2 ++ gating.yaml | 6 +++--- plans/file-CI-plan.fmf | 5 +++++ plans/tier1-internal.fmf | 11 +++++++++++ 5 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .fmf/version create mode 100644 ci.fmf create mode 100644 plans/file-CI-plan.fmf create mode 100644 plans/tier1-internal.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..da71d9f --- /dev/null +++ b/ci.fmf @@ -0,0 +1,2 @@ +# Docs: https://docs.fedoraproject.org/en-US/ci/tmt/#_multiple_plans +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml index 475371b..25cfcb0 100644 --- a/gating.yaml +++ b/gating.yaml @@ -1,7 +1,7 @@ --- !Policy product_versions: - - rhel-9 + - rhel-* decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/file-CI-plan.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional} diff --git a/plans/file-CI-plan.fmf b/plans/file-CI-plan.fmf new file mode 100644 index 0000000..c624d29 --- /dev/null +++ b/plans/file-CI-plan.fmf @@ -0,0 +1,5 @@ +summary: fedora CI tests plan +discover: + how: fmf +execute: + how: tmt diff --git a/plans/tier1-internal.fmf b/plans/tier1-internal.fmf new file mode 100644 index 0000000..6b63572 --- /dev/null +++ b/plans/tier1-internal.fmf @@ -0,0 +1,11 @@ +summary: Internal Tier 1 tests + +discover: + how: fmf + url: https://pkgs.devel.redhat.com/git/tests/file + filter: 'tier: 1 | tag: CI-Tier-1' +execute: + how: tmt +adjust: + enabled: false + when: distro == centos-stream or distro == fedora