From 99f0881a23f26a1d83cc1c1f17b1aee2a6bf67ef Mon Sep 17 00:00:00 2001 From: Martin 'kokesak' Litwora Date: Thu, 31 Oct 2024 13:00:12 +0100 Subject: [PATCH] Initial tests CI PoC Co-authored-by: Daniel Diblik <8378124+danmyway@users.noreply.github.com> --- .packit.yaml | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index 0cbc03c..aa7ab44 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -30,6 +30,9 @@ jobs: - epel-8-x86_64 - epel-9-x86_64 - epel-10-x86_64 + - epel-8-aarch64 + - epel-9-aarch64 + - epel-10-aarch64 actions: # bump spec so we get release starting with 2 and hence all the default branch builds will # have higher NVR than all the PR builds @@ -38,3 +41,72 @@ jobs: # do not get the version from a tag (git describe) but from the spec file get-current-version: - grep -oP '^Version:\s+\K\S+' packaging/command-line-assistant.spec + + # Test jobs + #- &tests-e2e-vm + - job: tests + identifier: vm-e2e-tests + # Run tests on-demand + manual_trigger: true + trigger: pull_request + # TODO: change to cla-tests once it is made public. At the moment this repo is unreachable for packit + #fmf_url: "https://gitlab.cee.redhat.com/rhel-lightspeed/enhanced-shell/cla-tests" + fmf_url: "https://github.com/danmyway/shellai-tests" + fmf_ref: main + # TODO: Replace with tmt_plan: "plans/e2e" or similar + tmt_plan: "plans" + use_internal_tf: True + targets: + epel-9-x86_64: + distros: [RHEL-9-Nightly] + epel-10-x86_64: + distros: [RHEL-10-Nightly] + epel-9-aarch64: + distros: [RHEL-9-Nightly] + epel-10-aarch64: + distros: [RHEL-10-Nightly] + tf_extra_params: + environments: + - settings: + provisioning: + tags: + BusinessUnit: sst_rspeed_qe + labels: + - e2e + - vm + + - &tests-sanity-container + job: tests + <<: *tests-e2e-vm + identifier: container-sanity-tests + manual_trigger: false + # TODO: Replace with tmt_plan: "plans/sanity" + tmt_plan: "plans" + targets: + # There is currently only RHEL-9 container available at the moment + epel-9-x86_64: + distros: [RHEL-9-Nightly] + tf_extra_params: + environments: + - os: null + variables: + IMAGE: registry.access.redhat.com/ubi9:latest + settings: + provisioning: + tags: + BusinessUnit: sst_rspeed_qe + labels: + - sanity + - sanity-container + - container + + - &tests-sanity-vm + job: tests + <<: *tests-e2e-vm + identifier: vm-sanity-tests + # TODO: Replace with tmt_plan: "plans/sanity" + tmt_plan: "plans" + labels: + - sanity + - sanity-vm + - vm