Skip to content

Commit

Permalink
Initial tests CI PoC
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Diblik <8378124+danmyway@users.noreply.github.com>
  • Loading branch information
kokesak and danmyway committed Nov 4, 2024
1 parent e6d7097 commit f7ded03
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,3 +41,80 @@ 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
job: tests
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
use_internal_tf: true
tf_extra_params:
environments:
- settings:
provisioning:
tags:
BusinessUnit: sst_rspeed_qe

- &tests-sanity-container
job: tests
<<: *tests
identifier: container-sanity-tests
# 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
labels:
- sanity
- container

- &tests-sanity-vm
job: tests
<<: *tests
identifier: vm-sanity-tests
manual_trigger: true
# TODO: Replace with tmt_plan: "plans/sanity"
tmt_plan: "plans"
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]
labels:
- sanity
- vm

- &tests-e2e-vm
job: tests
<<: *tests
trigger: pull_request
# Run tests on-demand
identifier: vm-e2e-tests
manual_trigger: true
# TODO: Replace with tmt_plan: "plans/e2e" or similar
tmt_plan: "plans"
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]
labels:
- e2e
- vm

0 comments on commit f7ded03

Please sign in to comment.