Create plans and update gating.yaml

- Add tier1 plan
- Add tier2 plan
- Update gating.yaml
- Add README.md
- Implement tier filter
- Create separate tests for centos and rhel
- Fix linting errors in plans/tier1.fmf and plans/tier2.fmf
- Update test case names for Fedora and RHEL
- Add .fmf/version
This commit is contained in:
Nikola Davidova 2025-03-10 14:56:06 +01:00
parent 9d548b9de3
commit a0c65effe7
5 changed files with 69 additions and 6 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -5,7 +5,7 @@ product_versions:
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1/centos.functional}
# gating rawhide
--- !Policy
@ -14,14 +14,14 @@ product_versions:
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1/centos.functional}
# gating rhel
--- !Policy
product_versions:
- rhel-9
- rhel-10
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier2.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1/centos.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier2/centos.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build./plans/tier1/rhel.functional}

5
plans/README.md Normal file
View File

@ -0,0 +1,5 @@
This directory contains test plans for libpq, structured in 2 tiers.
To manually run the tests, use:
tmt -c distro=rhel9 run -avvv --skip finish plan --name tier2 execute --how tmt --interactive test --name . provision --how minute --image rhel9 login prepare -h shell --script 'dnf config-manager --set-enabled beaker-tasks'
(rhel9 can be replace for rhel10 or other and plan --name for tier1)

27
plans/tier1.fmf Normal file
View File

@ -0,0 +1,27 @@
/centos:
summary: Tier 1 tests for libpq
discover:
- name: libpq
how: fmf
filter: 'tier: 1'
url: "https://gitlab.com/redhat/centos-stream/tests/libpq.git"
- name: python-psycopg2
how: fmf
filter: 'tier: 1'
url: https://gitlab.com/redhat/centos-stream/tests/python-psycopg2.git
execute:
how: tmt
/rhel:
summary: Internal tier 1 tests for libpq
discover:
- name: libpq
how: fmf
filter: 'tier: 1'
url: https://pkgs.devel.redhat.com/cgit/tests/libpq
- name: python-psycopg2
how: fmf
filter: 'tier: 1'
url: https://pkgs.devel.redhat.com/cgit/tests/python-psycopg2
execute:
how: tmt

30
plans/tier2.fmf Normal file
View File

@ -0,0 +1,30 @@
/centos:
summary: Tier 2,3 tests for libpq
discover:
- name: libpq
how: fmf
filter: '(tier: 2 | tier: 3)'
url: https://gitlab.com/redhat/centos-stream/tests/libpq.git
- name: python-psycopg2
how: fmf
filter: '(tier: 2 | tier: 3)'
url: https://gitlab.com/redhat/centos-stream/tests/python-psycopg2.git
execute:
how: tmt
/rhel:
summary: Internal tier 2,3 tests for libpq
discover:
- name: libpq
how: fmf
filter: '(tier: 2 | tier: 3)'
url: https://pkgs.devel.redhat.com/cgit/tests/libpq
- name: python-psycopg2
how: fmf
filter: '(tier: 2 | tier: 3)'
url: https://pkgs.devel.redhat.com/cgit/tests/python-psycopg2
adjust:
enabled: false
when: distro == centos-stream
execute:
how: tmt