Skip to content

Commit

Permalink
TMT: revdep tests
Browse files Browse the repository at this point in the history
This commit enables TMT tests via Packit jobs for Fedora 41, 42 and
Rawhide on x86_64.

Podman, Buildah and Skopeo system tests are run for these environments
on every PR.

TODO: Enable CentOS Stream and aarch64 test jobs.

Co-authored-by: Chris Evich <[email protected]>
Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 and cevich committed Mar 3, 2025
1 parent 5988965 commit 0ee9e55
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 7 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
31 changes: 24 additions & 7 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ jobs:
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
enable_net: true
targets:
- fedora-all
targets: &fedora_copr_targets
- fedora-all-x86_64
- fedora-all-aarch64

- job: copr_build
trigger: pull_request
packages: [containers-common-eln]
notifications: *ephemeral_build_failure_notification
#notifications: *ephemeral_build_failure_notification
enable_net: true
targets:
fedora-eln:
Expand All @@ -47,11 +48,13 @@ jobs:
- job: copr_build
trigger: pull_request
packages: [containers-common-centos]
notifications: *ephemeral_build_failure_notification
#notifications: *ephemeral_build_failure_notification
enable_net: true
targets:
- centos-stream-9
- centos-stream-10
targets: &centos_copr_targets
- centos-stream-10-x86_64
- centos-stream-10-aarch64
- centos-stream-9-x86_64
- centos-stream-9-aarch64

# Run on commit to main branch
- job: copr_build
Expand All @@ -65,6 +68,20 @@ jobs:
project: podman-next
enable_net: true

- job: tests
trigger: pull_request
packages: [containers-common-fedora]
targets:
- fedora-rawhide
- fedora-42
- fedora-41
enable_net: true
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo

- job: propose_downstream
trigger: release
packages: [containers-common-fedora]
Expand Down
38 changes: 38 additions & 0 deletions plans/buildah.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
script: |
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
dnf -y config-manager --set-enabled epel
order: 10
- when: initiator == packit
how: shell
script: |
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
if compgen -G $COPR_REPO_FILE > /dev/null; then
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
fi
dnf -y upgrade --allowerasing
order: 20
- name: packages
how: install
package: [buildah-tests]

discover:
how: fmf
url: https://github.com/lsm5/buildah
ref: "tmt-system-tests"
test: /tests/tmt

execute:
how: tmt

provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"
58 changes: 58 additions & 0 deletions plans/podman.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
script: |
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
dnf -y config-manager --set-enabled epel
order: 10
- when: initiator == packit
how: shell
script: |
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
if compgen -G $COPR_REPO_FILE > /dev/null; then
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
fi
dnf -y upgrade --allowerasing
order: 20
- name: packages
how: install
package: [podman-tests]

discover:
how: fmf
url: https://github.com/lsm5/podman
ref: "tmt-fedora-centos"

execute:
how: tmt

provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"

/local-root:
summary: Local rootful tests
discover+:
filter: 'tag:local & tag:root'

/local-rootless:
summary: Local rootless tests
discover+:
filter: 'tag:local & tag:rootless'

/remote-root:
summary: Remote rootful tests
discover+:
filter: 'tag:remote & tag:root'

/remote-rootless:
summary: Remote rootless tests
discover+:
filter: 'tag:remote & tag:rootless'

38 changes: 38 additions & 0 deletions plans/skopeo.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
script: |
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
dnf -y config-manager --set-enabled epel
order: 10
- when: initiator == packit
how: shell
script: |
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
if compgen -G $COPR_REPO_FILE > /dev/null; then
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
fi
dnf -y upgrade --allowerasing
order: 20
- name: packages
how: install
package: [skopeo-tests]

discover:
how: fmf
url: https://github.com/containers/skopeo
ref: "main"
test: /systemtest/tmt

execute:
how: tmt

provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"

0 comments on commit 0ee9e55

Please sign in to comment.