Skip to content

Commit 6affe67

Browse files
committed
Packit/TMT: enable RHEL system tests
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent aac9afd commit 6affe67

13 files changed

+183
-611
lines changed

.packit.sh

Lines changed: 0 additions & 48 deletions
This file was deleted.

.packit.yaml

Lines changed: 36 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -2,125 +2,49 @@
22
# See the documentation for more information:
33
# https://packit.dev/docs/configuration/
44

5-
downstream_package_name: podman
6-
upstream_tag_template: v{version}
7-
8-
packages:
9-
podman-fedora:
10-
pkg_tool: fedpkg
11-
specfile_path: rpm/podman.spec
12-
podman-centos:
13-
pkg_tool: centpkg
14-
specfile_path: rpm/podman.spec
15-
podman-eln:
16-
specfile_path: rpm/podman.spec
17-
18-
srpm_build_deps:
19-
- git-archive-all
20-
- make
21-
22-
actions:
23-
fix-spec-file:
24-
- "bash .packit.sh"
25-
265
jobs:
27-
- job: copr_build
6+
- job: tests
287
trigger: pull_request
29-
packages: [podman-fedora]
30-
notifications: &packit_build_failure_notification
8+
skip_build: true
9+
use_internal_tf: true
10+
notifications: &packit_failure_notification
3111
failure_comment:
32-
message: "Ephemeral COPR build failed. @containers/packit-build please check."
33-
enable_net: true
34-
targets:
35-
- fedora-all-x86_64
36-
- fedora-all-aarch64
12+
message: "Packit jobs failed. @containers/packit-build please check."
13+
targets: &test_targets
14+
epel-10-x86_64:
15+
distros: [RHEL-10.0-Nightly]
16+
epel-10-aarch64:
17+
distros: [RHEL-10.0-Nightly]
18+
epel-9-x86_64:
19+
distros: [RHEL-9.6.0-Nightly]
20+
epel-9-aarch64:
21+
distros: [RHEL-9.6.0-Nightly]
22+
tmt_plan: "/plans/system/root-local"
23+
identifier: "sys-local-root"
3724

38-
- job: copr_build
25+
- job: tests
3926
trigger: pull_request
40-
packages: [podman-eln]
41-
notifications: *packit_build_failure_notification
42-
enable_net: true
43-
targets:
44-
fedora-eln-x86_64:
45-
additional_repos:
46-
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/"
47-
fedora-eln-aarch64:
48-
additional_repos:
49-
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/"
27+
skip_build: true
28+
use_internal_tf: true
29+
notifications: *packit_failure_notification
30+
targets: *test_targets
31+
tmt_plan: "/plans/system/rootless-local"
32+
identifier: "sys-local-rootless"
5033

51-
- job: copr_build
34+
- job: tests
5235
trigger: pull_request
53-
packages: [podman-centos]
54-
notifications: *packit_build_failure_notification
55-
enable_net: true
56-
targets:
57-
- centos-stream-9-x86_64
58-
- centos-stream-9-aarch64
59-
- centos-stream-10-x86_64
60-
- centos-stream-10-aarch64
61-
62-
# Run on commit to main branch
63-
- job: copr_build
64-
trigger: commit
65-
packages: [podman-fedora]
66-
notifications:
67-
failure_comment:
68-
message: "podman-next COPR build failed. @containers/packit-build please check."
69-
branch: main
70-
owner: rhcontainerbot
71-
project: podman-next
72-
enable_net: true
36+
skip_build: true
37+
use_internal_tf: true
38+
notifications: *packit_failure_notification
39+
targets: *test_targets
40+
tmt_plan: "/plans/system/root-remote"
41+
identifier: "sys-remote-root"
7342

7443
- job: tests
75-
identifier: cockpit-revdeps
7644
trigger: pull_request
77-
packages: [podman-fedora]
78-
notifications:
79-
failure_comment:
80-
message: "Cockpit tests failed for commit {commit_sha}. @martinpitt, @jelly, @mvollmer please check."
81-
targets:
82-
- fedora-latest-stable
83-
- fedora-development
84-
tf_extra_params:
85-
environments:
86-
- artifacts:
87-
- type: repository-file
88-
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
89-
- type: repository-file
90-
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo
91-
tmt:
92-
context:
93-
revdeps: "yes"
94-
95-
- job: propose_downstream
96-
trigger: release
97-
update_release: false
98-
packages: [podman-fedora]
99-
dist_git_branches: &fedora_targets
100-
- fedora-all
101-
102-
- job: propose_downstream
103-
trigger: release
104-
update_release: false
105-
packages: [podman-centos]
106-
dist_git_branches:
107-
- c10s
108-
109-
- job: koji_build
110-
trigger: commit
111-
packages: [podman-fedora]
112-
sidetag_group: podman-releases
113-
dist_git_branches: *fedora_targets
114-
115-
- job: bodhi_update
116-
trigger: koji_build
117-
packages: [podman-fedora]
118-
sidetag_group: podman-releases
119-
# Dependencies are not rpm dependencies, but packages that should go in the
120-
# same bodhi update
121-
# Ref: https://packit.dev/docs/fedora-releases-guide/releasing-multiple-packages
122-
dependencies:
123-
- buildah
124-
- containers-common
125-
- skopeo
126-
dist_git_branches: *fedora_targets
45+
skip_build: true
46+
use_internal_tf: true
47+
notifications: *packit_failure_notification
48+
targets: *test_targets
49+
tmt_plan: "/plans/system/rootless-remote"
50+
identifier: "sys-remote-rootless"

plans/cockpit-podman.fmf

Lines changed: 0 additions & 37 deletions
This file was deleted.

plans/system.fmf

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
discover:
2+
how: fmf
3+
4+
execute:
5+
how: tmt
6+
7+
prepare:
8+
- name: build and test dependencies
9+
how: install
10+
package:
11+
- bzip2
12+
- go-md2man
13+
- golang
14+
- gpgme-devel
15+
- libseccomp-devel
16+
- netavark
17+
- podman-catatonit
18+
# podman-tests used only to fetch test dependencies
19+
- podman-tests
20+
- slirp4netns
21+
- systemd-devel
22+
order: 5
23+
- how: shell
24+
script: modprobe null_blk nr_devices=1
25+
order: 5
26+
- how: shell
27+
script: |
28+
# Install bats
29+
# https://bats-core.readthedocs.io/en/stable/installation.html
30+
BATS_VERSION=1.12.0
31+
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v"$BATS_VERSION".tar.gz | tar -xz
32+
pushd bats-core-"$BATS_VERSION"
33+
./install.sh /usr
34+
popd
35+
rm -rf bats-core-"$BATS_VERSION"
36+
# Install parallel
37+
# https://cgit.git.savannah.gnu.org/cgit/parallel.git/tree/README
38+
wget https://ftpmirror.gnu.org/parallel/parallel-20250522.tar.bz2
39+
bzip2 -dc parallel-20250522.tar.bz2 | tar xvf -
40+
pushd parallel-20250522
41+
./configure && make && make install
42+
popd
43+
order: 10
44+
45+
provision:
46+
how: artemis
47+
hardware:
48+
memory: ">= 16 GB"
49+
cpu:
50+
cores: ">= 4"
51+
threads: ">=8"
52+
disk:
53+
- size: ">= 512 GB"
54+
55+
/root-local:
56+
summary: Local root system tests
57+
discover+:
58+
filter: 'tag:local & tag:root & tag:system'
59+
60+
/rootless-local:
61+
summary: Local rootless system tests
62+
discover+:
63+
filter: 'tag:local & tag:rootless & tag:system'
64+
65+
/root-remote:
66+
summary: Remote root system tests
67+
discover+:
68+
filter: 'tag:remote & tag:root & tag:system'
69+
70+
/rootless-remote:
71+
summary: Remote rootless system tests
72+
discover+:
73+
filter: 'tag:remote & tag:rootless & tag:system'

rpm/Makefile

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)