Migrate to TMT-style gating in C9S

This is required for RHIVOS, see VROOM-23635.

(The "ci" directory is intentionally left intact, since it's apparently
not included in the dist-git exclude hook and would require a valid Jira
ticket to be linked to.)
This commit is contained in:
Frantisek Sumsal 2024-11-28 11:20:30 +01:00
parent e19d0d5764
commit fa889be629
4 changed files with 15 additions and 34 deletions

15
ci.fmf
View File

@ -1,14 +1 @@
/test:
summary:
Basic set of quick tests for cpio.
discover:
- name: fedora
how: fmf
filter: "tag: Tier1,Tier2,Tier3 & distros: fedora"
repository: "https://src.fedoraproject.org/forks/odubaj/tests/cpio.git"
prepare:
how: ansible
playbooks:
ci/fedora-rawhide.yml
execute:
how: beakerlib
resultsdb-testcase: separate

View File

@ -1,6 +1,6 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.koji-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional}

11
plans/tier1-internal.fmf Normal file
View File

@ -0,0 +1,11 @@
summary: Internal gating tests plan
discover:
- name: Internal gating tests
how: fmf
filter: 'tag: Tier1,Tier2,Tier3'
url: https://pkgs.devel.redhat.com/git/tests/cpio
execute:
how: tmt
adjust:
enabled: false
when: distro == centos-stream or distro == fedora

View File

@ -1,17 +0,0 @@
# This package uses external repositories for maintaining CI test cases.
# Please don't edit this file if possible.
# TODO: minimize according to
# https://pagure.io/standard-test-roles/issue/294
- hosts: localhost
roles:
- role: standard-test-beakerlib
repositories:
- repo: https://src.fedoraproject.org/forks/odubaj/tests/cpio.git
dest: cpio
fmf_filter: "tag: Tier1,Tier2,Tier3"
tags:
- classic
- container
- atomic