Skip to content

Commit 0ee9e55

Browse files
lsm5cevich
andcommitted
TMT: revdep tests
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]>
1 parent 5988965 commit 0ee9e55

File tree

5 files changed

+159
-7
lines changed

5 files changed

+159
-7
lines changed

.fmf/version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

.packit.yaml

+24-7
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ jobs:
2828
failure_comment:
2929
message: "Ephemeral COPR build failed. @containers/packit-build please check."
3030
enable_net: true
31-
targets:
32-
- fedora-all
31+
targets: &fedora_copr_targets
32+
- fedora-all-x86_64
33+
- fedora-all-aarch64
3334

3435
- job: copr_build
3536
trigger: pull_request
3637
packages: [containers-common-eln]
37-
notifications: *ephemeral_build_failure_notification
38+
#notifications: *ephemeral_build_failure_notification
3839
enable_net: true
3940
targets:
4041
fedora-eln:
@@ -47,11 +48,13 @@ jobs:
4748
- job: copr_build
4849
trigger: pull_request
4950
packages: [containers-common-centos]
50-
notifications: *ephemeral_build_failure_notification
51+
#notifications: *ephemeral_build_failure_notification
5152
enable_net: true
52-
targets:
53-
- centos-stream-9
54-
- centos-stream-10
53+
targets: &centos_copr_targets
54+
- centos-stream-10-x86_64
55+
- centos-stream-10-aarch64
56+
- centos-stream-9-x86_64
57+
- centos-stream-9-aarch64
5558

5659
# Run on commit to main branch
5760
- job: copr_build
@@ -65,6 +68,20 @@ jobs:
6568
project: podman-next
6669
enable_net: true
6770

71+
- job: tests
72+
trigger: pull_request
73+
packages: [containers-common-fedora]
74+
targets:
75+
- fedora-rawhide
76+
- fedora-42
77+
- fedora-41
78+
enable_net: true
79+
tf_extra_params:
80+
environments:
81+
- artifacts:
82+
- type: repository-file
83+
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo
84+
6885
- job: propose_downstream
6986
trigger: release
7087
packages: [containers-common-fedora]

plans/buildah.fmf

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
prepare:
2+
- when: distro == centos-stream or distro == rhel
3+
how: shell
4+
script: |
5+
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
6+
dnf -y config-manager --set-enabled epel
7+
order: 10
8+
- when: initiator == packit
9+
how: shell
10+
script: |
11+
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
12+
if compgen -G $COPR_REPO_FILE > /dev/null; then
13+
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
14+
fi
15+
dnf -y upgrade --allowerasing
16+
order: 20
17+
- name: packages
18+
how: install
19+
package: [buildah-tests]
20+
21+
discover:
22+
how: fmf
23+
url: https://github.com/lsm5/buildah
24+
ref: "tmt-system-tests"
25+
test: /tests/tmt
26+
27+
execute:
28+
how: tmt
29+
30+
provision:
31+
how: artemis
32+
hardware:
33+
memory: ">= 16 GB"
34+
cpu:
35+
cores: ">= 4"
36+
threads: ">=8"
37+
disk:
38+
- size: ">= 512 GB"

plans/podman.fmf

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
prepare:
2+
- when: distro == centos-stream or distro == rhel
3+
how: shell
4+
script: |
5+
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
6+
dnf -y config-manager --set-enabled epel
7+
order: 10
8+
- when: initiator == packit
9+
how: shell
10+
script: |
11+
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
12+
if compgen -G $COPR_REPO_FILE > /dev/null; then
13+
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
14+
fi
15+
dnf -y upgrade --allowerasing
16+
order: 20
17+
- name: packages
18+
how: install
19+
package: [podman-tests]
20+
21+
discover:
22+
how: fmf
23+
url: https://github.com/lsm5/podman
24+
ref: "tmt-fedora-centos"
25+
26+
execute:
27+
how: tmt
28+
29+
provision:
30+
how: artemis
31+
hardware:
32+
memory: ">= 16 GB"
33+
cpu:
34+
cores: ">= 4"
35+
threads: ">=8"
36+
disk:
37+
- size: ">= 512 GB"
38+
39+
/local-root:
40+
summary: Local rootful tests
41+
discover+:
42+
filter: 'tag:local & tag:root'
43+
44+
/local-rootless:
45+
summary: Local rootless tests
46+
discover+:
47+
filter: 'tag:local & tag:rootless'
48+
49+
/remote-root:
50+
summary: Remote rootful tests
51+
discover+:
52+
filter: 'tag:remote & tag:root'
53+
54+
/remote-rootless:
55+
summary: Remote rootless tests
56+
discover+:
57+
filter: 'tag:remote & tag:rootless'
58+

plans/skopeo.fmf

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
prepare:
2+
- when: distro == centos-stream or distro == rhel
3+
how: shell
4+
script: |
5+
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
6+
dnf -y config-manager --set-enabled epel
7+
order: 10
8+
- when: initiator == packit
9+
how: shell
10+
script: |
11+
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
12+
if compgen -G $COPR_REPO_FILE > /dev/null; then
13+
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
14+
fi
15+
dnf -y upgrade --allowerasing
16+
order: 20
17+
- name: packages
18+
how: install
19+
package: [skopeo-tests]
20+
21+
discover:
22+
how: fmf
23+
url: https://github.com/containers/skopeo
24+
ref: "main"
25+
test: /systemtest/tmt
26+
27+
execute:
28+
how: tmt
29+
30+
provision:
31+
how: artemis
32+
hardware:
33+
memory: ">= 16 GB"
34+
cpu:
35+
cores: ">= 4"
36+
threads: ">=8"
37+
disk:
38+
- size: ">= 512 GB"

0 commit comments

Comments
 (0)