Skip to content

Commit 60460bd

Browse files
lsm5cevich
andcommitted
TMT: revdep tests
Co-authored-by: Chris Evich <[email protected]> Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 1f7dbe6 commit 60460bd

File tree

5 files changed

+147
-7
lines changed

5 files changed

+147
-7
lines changed

.fmf/version

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

.packit.yaml

+32-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,28 @@ jobs:
6568
project: podman-next
6669
enable_net: true
6770

71+
- job: tests
72+
trigger: pull_request
73+
packages: [containers-common-fedora]
74+
targets: *fedora_copr_targets
75+
enable_net: true
76+
tf_extra_params:
77+
environments:
78+
- artifacts:
79+
- type: repository-file
80+
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo
81+
82+
- job: tests
83+
trigger: pull_request
84+
packages: [containers-common-centos]
85+
targets: *centos_copr_targets
86+
enable_net: true
87+
tf_extra_params:
88+
environments:
89+
- artifacts:
90+
- type: repository-file
91+
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$releasever.repo
92+
6893
- job: propose_downstream
6994
trigger: release
7095
packages: [containers-common-fedora]

plans/buildah.fmf

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
prepare:
2+
- name: packages
3+
how: install
4+
package: [skopeo-tests]
5+
6+
adjust:
7+
- when: "initiator == packit"
8+
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
9+
prepare:
10+
how: shell
11+
script: |
12+
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
13+
dnf -y upgrade --allowerasing
14+
# FIXME: Use epel10 once bats is available there
15+
- when: distro == centos-stream-10 or distro == rhel-10
16+
because: "bats isn't yet available on epel10"
17+
prepare:
18+
how: install
19+
copr: rhcontainerbot/bats-el10
20+
package: bats
21+
- when: distro == centos-stream-9 or distro == rhel-9
22+
because: "bats is present on EPEL on rhel9 / c9s"
23+
prepare:
24+
how: feature
25+
epel: enabled
26+
27+
discover:
28+
how: fmf
29+
url: https://github.com/lsm5/buildah
30+
ref: "tmt-system-tests"
31+
32+
execute:
33+
how: tmt
34+
35+
/system:
36+
summary: Run buildah system tests
37+
discover+:
38+
test: /tests/tmt

plans/podman.fmf

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
prepare:
2+
- name: packages
3+
how: install
4+
package: [bats, podman-tests]
5+
6+
adjust:
7+
- when: "initiator == packit"
8+
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
9+
prepare:
10+
how: shell
11+
script: |
12+
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
13+
dnf -y upgrade --allowerasing
14+
# FIXME: Use epel10 once bats is available there
15+
- when: distro == centos-stream-10 or distro == rhel-10
16+
because: "bats isn't yet available on epel10"
17+
prepare:
18+
how: install
19+
copr: rhcontainerbot/bats-el10
20+
package: bats
21+
- when: distro == centos-stream-9 or distro == rhel-9
22+
because: "bats is present on EPEL on rhel9 / c9s"
23+
prepare:
24+
how: feature
25+
epel: enabled
26+
27+
discover:
28+
how: fmf
29+
url: https://github.com/lsm5/podman
30+
ref: "tmt-fedora-centos"
31+
32+
execute:
33+
how: tmt
34+
35+
/system:
36+
summary: Run podman system tests
37+
discover+:
38+
test: /test/tmt/system/*

plans/skopeo.fmf

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
prepare:
2+
- name: packages
3+
how: install
4+
package: [skopeo-tests]
5+
6+
adjust:
7+
- when: "initiator == packit"
8+
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
9+
prepare:
10+
how: shell
11+
script: |
12+
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo
13+
dnf -y upgrade --allowerasing
14+
# FIXME: Use epel10 once bats is available there
15+
- when: distro == centos-stream-10 or distro == rhel-10
16+
because: "bats isn't yet available on epel10"
17+
prepare:
18+
how: install
19+
copr: rhcontainerbot/bats-el10
20+
package: bats
21+
- when: distro == centos-stream-9 or distro == rhel-9
22+
because: "bats is present on EPEL on rhel9 / c9s"
23+
prepare:
24+
how: feature
25+
epel: enabled
26+
27+
discover:
28+
how: fmf
29+
url: https://github.com/lsm5/skopeo
30+
ref: "packit-gating-tests"
31+
32+
execute:
33+
how: tmt
34+
35+
/system:
36+
summary: Run skopeo system tests
37+
discover+:
38+
test: /systemtest/tmt

0 commit comments

Comments
 (0)