From 9f46fb364121703aeb0cda458a355bd117550ac7 Mon Sep 17 00:00:00 2001 From: Jakub Haruda Date: Wed, 2 Apr 2025 19:06:24 +0200 Subject: [PATCH] c10s: gating in OSCI --- gating.yaml | 6 +++--- plans/tier1.fmf | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 plans/tier1.fmf diff --git a/gating.yaml b/gating.yaml index 3442642..4bb2ad9 100644 --- a/gating.yaml +++ b/gating.yaml @@ -1,6 +1,6 @@ --- !Policy -product_versions: - - rhel-10 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + + diff --git a/plans/tier1.fmf b/plans/tier1.fmf new file mode 100644 index 0000000..bb5cfa6 --- /dev/null +++ b/plans/tier1.fmf @@ -0,0 +1,38 @@ +--- + +summary: Tier1 plan for openjpeg2 + +discover: + how: fmf + url: https://pkgs.devel.redhat.com/git/tests/openjpeg2 + ref: master + filter: tier:1 + +prepare: + - how: shell + script: | + set -euxo pipefail + + ENABLE_REPO_CMD="yum-config-manager --enable" + if command -v dnf >/dev/null 2>&1; then + ENABLE_REPO_CMD="dnf config-manager --set-enabled" + fi + + ${ENABLE_REPO_CMD} beaker-tasks || : + - how: shell + script: | + set -exuo pipefail + + if [[ -f /etc/os-release ]]; then + . /etc/os-release + if [[ "${ID:-}" == "rhel" && "${VERSION_ID%%.*}" -ge 8 ]]; then + dnf config-manager --enable rhel-CRB + fi + fi + +execute: + how: tmt + +adjust: + enabled: false + when: distro == centos-stream or distro == fedora