From e0716f2a1c22e3018333648f0dcf98db9d27ce6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Thu, 2 Jul 2026 13:43:57 +0200 Subject: [PATCH] Update testing plans and gating, remove inline tests Co-Authored-By: Claude Opus 4.6 (1M context) --- .fmf/version | 1 + ci.fmf | 1 + gating.yaml | 23 +++++++++++++++++++++-- plans.fmf | 35 +++++++++++++++++++++++++++++++++++ tests/smoke/runtest.sh | 27 --------------------------- tests/tests.yml | 7 ------- 6 files changed, 58 insertions(+), 36 deletions(-) create mode 100644 .fmf/version create mode 100644 ci.fmf create mode 100644 plans.fmf delete mode 100755 tests/smoke/runtest.sh delete mode 100644 tests/tests.yml 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..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml index 89c5b54..71d105b 100644 --- a/gating.yaml +++ b/gating.yaml @@ -1,6 +1,25 @@ --- !Policy product_versions: - - rhel-* + - fedora-* +decision_context: bodhi_update_push_testing +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional} + +#Rawhide +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional} + +#gating rhel +--- !Policy +product_versions: + - rhel-* decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-public.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional} diff --git a/plans.fmf b/plans.fmf new file mode 100644 index 0000000..1d7eeea --- /dev/null +++ b/plans.fmf @@ -0,0 +1,35 @@ +/tier1-internal: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/gpsd.git + name: /plans/tier1/internal + +/tier1-public: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/gpsd.git + name: /plans/tier1/public + +/tier2-tier3-internal: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/gpsd.git + name: /plans/tier2-tier3/internal + +/tier2-tier3-public: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/gpsd.git + name: /plans/tier2-tier3/public + +/others-internal: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/gpsd.git + name: /plans/others/internal + +/others-public: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/gpsd.git + name: /plans/others/public diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh deleted file mode 100755 index facfead..0000000 --- a/tests/smoke/runtest.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -e - -r=0 - -executables=$(rpm -ql gpsd gpsd-clients | grep -E '/s?bin/') -for b in $executables; do - case "$(basename "$b")" in - gpsdebuginfo) - continue;; - zerk) - h="-h";; - *) - h="--help";; - esac - - if "$b" "$h" |& grep -qi '^usage *:'; then - echo "$b OK" - else - echo "$b FAILED" - "$b" "$h" || : - r=1 - fi -done - -exit $r diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 1725279..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,7 +0,0 @@ -- hosts: localhost - roles: - - role: standard-test-basic - tags: - - classic - tests: - - smoke