Compare commits
113 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c561ac16e4 | ||
|
|
13c2d363f7 | ||
|
|
fb27e46c4c | ||
|
|
6484e52ff8 |
||
|
|
e9ac3e164c |
||
|
|
a12dcedf44 |
||
|
|
db89698d63 |
||
|
|
8a2bd0adc7 | ||
|
|
91e1364b9e | ||
|
|
35a96ec3b7 | ||
|
|
a21eb3d874 | ||
|
|
0e78a5adcf | ||
|
|
72848677f1 | ||
|
|
a6cce5cd5e | ||
|
|
6220c50f8d | ||
|
|
f181ec19f7 |
||
|
|
c124075fb7 |
||
|
|
3c15b01ad2 |
||
|
|
afd80b7684 | ||
|
|
7e477b7431 |
||
|
|
fe75b40de8 | ||
|
|
8b0042679c | ||
|
|
acf9b5e957 | ||
|
|
7a42969101 |
||
|
|
b277253c62 |
||
|
|
6f642154c9 | ||
|
|
8e80a75a47 |
||
|
|
9c8930ba62 | ||
|
|
a10ce0d084 |
||
|
|
b40feeab2e | ||
|
|
013d065b27 | ||
|
|
f87db43526 | ||
|
|
9acd5e68d2 | ||
|
|
1938293f08 | ||
|
|
d6e7ed48ae |
||
|
|
fa17b14f73 | ||
|
|
f17a8930e8 | ||
|
|
8f41b45606 |
||
|
|
feb2d5d8a0 |
||
|
|
3c16fb4a04 |
||
|
|
e77b95c0c7 |
||
|
|
ec2a32462a | ||
|
|
2b4131b56f | ||
|
|
e56f0c7587 | ||
|
|
5b6a96b26d | ||
|
|
5da99bc5e6 |
||
|
|
a30fb92322 | ||
|
|
af179a4f51 | ||
|
|
8ce38a4ee1 | ||
|
|
b96c8081c5 |
||
|
|
ddbbc71208 | ||
|
|
c92ca272fc |
||
|
|
c8a2ce2314 |
||
|
|
c6997b69eb | ||
|
|
6bee78fbaf |
||
|
|
086837c054 |
||
|
|
337905973b |
||
|
|
e2ca4dcd13 |
||
|
|
70dbcabb01 |
||
|
|
9dde582730 |
||
|
|
6bc1c31ac2 |
||
|
|
c12296a7c3 | ||
|
|
be378a57e8 |
||
|
|
6bcad08f93 |
||
|
|
5038345fd0 | ||
|
|
1ae4113a71 |
||
|
|
0fa51fa221 |
||
|
|
f3ba9b5200 |
||
|
|
7803132c0a |
||
|
|
69749ff6cd |
||
|
|
88be0f4dd0 |
||
|
|
31525d7144 |
||
|
|
ddf164b596 |
||
|
|
2dbbbfcb3c |
||
|
|
114a33e134 | ||
|
|
86693f8c10 |
||
|
|
b4ee449e68 | ||
|
|
c80c59c756 | ||
|
|
e3e854460a | ||
|
|
d6a5dc701f | ||
|
|
b986a94248 | ||
|
|
82a2caea2c | ||
|
|
9460085e28 | ||
|
|
10f7b22dbd | ||
|
|
c656598dfd |
||
|
|
90e1eeae5e |
||
|
|
8a73424f91 |
||
|
|
0b8c59b9e1 | ||
|
|
c5e7c48a70 | ||
|
|
5411eea506 | ||
|
|
199c77bcd6 | ||
|
|
5f72cc86c5 | ||
|
|
50ed84c11a | ||
|
|
b344017071 | ||
|
|
ef20a8ac6e | ||
|
|
6aebb2d2fb | ||
|
|
0c45b4d7d4 | ||
|
|
c8ef7b7fa2 | ||
|
|
ec027cf18b | ||
|
|
7e4a45e6c2 | ||
|
|
da31d4ffcb | ||
|
|
582532fe26 | ||
|
|
d8652e3ca3 | ||
|
|
149573eb60 | ||
|
|
88f1d4ca3c | ||
|
|
8e969a4644 | ||
|
|
0e356c10ff | ||
|
|
2a9ea33c66 | ||
|
|
2582eb7057 | ||
|
|
fbf1e09bee | ||
|
|
1088201f44 | ||
|
|
821230280a | ||
|
|
4cf91c5352 |
17 changed files with 1043 additions and 2564 deletions
|
|
@ -1 +0,0 @@
|
|||
1
|
||||
1804
.gitignore
vendored
1804
.gitignore
vendored
File diff suppressed because it is too large
Load diff
166
.packit.yaml
166
.packit.yaml
|
|
@ -1,166 +0,0 @@
|
|||
---
|
||||
# See the documentation for more information:
|
||||
# https://packit.dev/docs/configuration/
|
||||
|
||||
downstream_package_name: podman
|
||||
upstream_tag_template: v{version}
|
||||
|
||||
# These files get synced from upstream to downstream (Fedora / CentOS Stream) on every
|
||||
# propose-downstream job. This is done so tests maintained upstream can be run
|
||||
# downstream in Zuul CI and Bodhi.
|
||||
# Ref: https://packit.dev/docs/configuration#files_to_sync
|
||||
files_to_sync:
|
||||
- src: rpm/gating.yaml
|
||||
dest: gating.yaml
|
||||
delete: true
|
||||
- src: plans/
|
||||
dest: plans/
|
||||
delete: true
|
||||
mkpath: true
|
||||
- src: test/tmt/
|
||||
dest: test/tmt/
|
||||
delete: true
|
||||
mkpath: true
|
||||
- src: .fmf/
|
||||
dest: .fmf/
|
||||
delete: true
|
||||
- .packit.yaml
|
||||
|
||||
packages:
|
||||
podman-fedora:
|
||||
pkg_tool: fedpkg
|
||||
specfile_path: rpm/podman.spec
|
||||
podman-centos:
|
||||
pkg_tool: centpkg
|
||||
specfile_path: rpm/podman.spec
|
||||
podman-eln:
|
||||
specfile_path: rpm/podman.spec
|
||||
|
||||
# Disable automatic merging for Copr builds (and subsequent Testing Farm)
|
||||
merge_pr_in_ci: false
|
||||
|
||||
srpm_build_deps:
|
||||
- git-archive-all
|
||||
- make
|
||||
|
||||
actions:
|
||||
fix-spec-file: "bash .packit-copr-rpm.sh"
|
||||
pre-sync: "bash .packit-rpm-git-commit.sh"
|
||||
|
||||
jobs:
|
||||
- job: copr_build
|
||||
trigger: pull_request
|
||||
packages: [podman-fedora]
|
||||
notifications: &packit_generic_failure_notification
|
||||
failure_comment:
|
||||
message: "[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore."
|
||||
enable_net: true
|
||||
targets:
|
||||
- fedora-all-x86_64
|
||||
- fedora-all-aarch64
|
||||
# Re-enable these scans if OpenScanHub starts scanning go packages
|
||||
# https://packit.dev/posts/openscanhub-prototype
|
||||
osh_diff_scan_after_copr_build: false
|
||||
|
||||
# Ignore until golang is updated in distro buildroot to go 1.23.3+
|
||||
- job: copr_build
|
||||
trigger: ignore
|
||||
packages: [podman-eln]
|
||||
notifications: *packit_generic_failure_notification
|
||||
enable_net: true
|
||||
targets:
|
||||
fedora-eln-x86_64:
|
||||
additional_repos:
|
||||
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/"
|
||||
fedora-eln-aarch64:
|
||||
additional_repos:
|
||||
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/"
|
||||
|
||||
# Ignore until golang is updated in distro buildroot to go 1.23.3+
|
||||
- job: copr_build
|
||||
trigger: ignore
|
||||
packages: [podman-centos]
|
||||
notifications: *packit_generic_failure_notification
|
||||
enable_net: true
|
||||
targets:
|
||||
- centos-stream-9-x86_64
|
||||
- centos-stream-9-aarch64
|
||||
- centos-stream-10-x86_64
|
||||
- centos-stream-10-aarch64
|
||||
|
||||
# Run on commit to main branch
|
||||
- job: copr_build
|
||||
trigger: commit
|
||||
packages: [podman-fedora]
|
||||
branch: main
|
||||
owner: rhcontainerbot
|
||||
project: podman-next
|
||||
enable_net: true
|
||||
|
||||
# Tests on Fedora
|
||||
- job: tests
|
||||
trigger: pull_request
|
||||
packages: [podman-fedora]
|
||||
notifications: *packit_generic_failure_notification
|
||||
targets:
|
||||
- fedora-all
|
||||
tmt_plan: "/plans/system/*"
|
||||
|
||||
- job: tests
|
||||
identifier: cockpit-revdeps
|
||||
trigger: pull_request
|
||||
packages: [podman-fedora]
|
||||
notifications:
|
||||
failure_comment:
|
||||
message: "Cockpit tests failed for commit {commit_sha}. @martinpitt, @jelly, @mvollmer please check."
|
||||
targets:
|
||||
- fedora-latest-stable
|
||||
- fedora-development
|
||||
tf_extra_params:
|
||||
environments:
|
||||
- artifacts:
|
||||
- type: repository-file
|
||||
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
|
||||
tmt:
|
||||
context:
|
||||
revdeps: "yes"
|
||||
|
||||
- job: tests
|
||||
identifier: tmt-revdeps
|
||||
trigger: pull_request
|
||||
packages: [podman-fedora]
|
||||
notifications:
|
||||
failure_comment:
|
||||
message: "tmt tests failed for commit {commit_sha}. @lsm5, @psss, @thrix please check."
|
||||
targets:
|
||||
- fedora-latest
|
||||
fmf_url: https://github.com/teemtee/tmt
|
||||
fmf_path: /plans/friends
|
||||
fmf_ref: main
|
||||
tmt_plan: "/podman"
|
||||
|
||||
- job: propose_downstream
|
||||
trigger: release
|
||||
update_release: false
|
||||
packages: [podman-fedora]
|
||||
dist_git_branches: &fedora_targets
|
||||
- fedora-all
|
||||
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
packages: [podman-fedora]
|
||||
sidetag_group: podman-releases
|
||||
dist_git_branches: *fedora_targets
|
||||
|
||||
- job: bodhi_update
|
||||
trigger: koji_build
|
||||
packages: [podman-fedora]
|
||||
sidetag_group: podman-releases
|
||||
# Dependencies are not rpm dependencies, but packages that should go in the
|
||||
# same bodhi update
|
||||
# Ref: https://packit.dev/docs/fedora-releases-guide/releasing-multiple-packages
|
||||
dependencies:
|
||||
- buildah
|
||||
- containers-common
|
||||
- skopeo
|
||||
dist_git_branches: *fedora_targets
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 1.12.0.post1.dev22+gfe66fd850.
|
||||
17
gating.yaml
17
gating.yaml
|
|
@ -1,17 +0,0 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_contexts:
|
||||
- bodhi_update_push_stable
|
||||
- bodhi_update_push_testing
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
|
||||
# recipients: jnovy, lsm5, santiago
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
# reverse dependency test for https://github.com/cockpit-project/cockpit-podman/
|
||||
# packit should automatically notify the cockpit maintainers on failures.
|
||||
# For questions, please contact @martinpitt, @jelly, @mvollmer
|
||||
enabled: false
|
||||
|
||||
adjust+:
|
||||
when: revdeps == yes
|
||||
enabled: true
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://github.com/cockpit-project/cockpit-podman
|
||||
ref: "main"
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
# not relevant for testing podman
|
||||
environment:
|
||||
TEST_AUDIT_NO_SELINUX: 1
|
||||
TEST_ALLOW_JOURNAL_MESSAGES: ".*"
|
||||
|
||||
# This has to duplicate cockpit-podman's plan structure; see https://github.com/teemtee/tmt/issues/1770
|
||||
/podman-system:
|
||||
summary: Run cockpit-podman system tests
|
||||
discover+:
|
||||
test: /test/browser/system
|
||||
|
||||
/podman-user:
|
||||
summary: Run cockpit-podman user tests
|
||||
discover+:
|
||||
test: /test/browser/user
|
||||
|
||||
/podman-misc:
|
||||
summary: Run other cockpit-podman tests
|
||||
discover+:
|
||||
test: /test/browser/other
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
discover:
|
||||
how: fmf
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
prepare:
|
||||
- how: shell
|
||||
script: modprobe null_blk nr_devices=1
|
||||
order: 5
|
||||
- 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
|
||||
|
||||
adjust+:
|
||||
- enabled: false
|
||||
when: revdeps == yes
|
||||
|
||||
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'
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
summary: Run tmt container provision test (downstream only)
|
||||
|
||||
enabled: false
|
||||
adjust+:
|
||||
- enabled: true
|
||||
when: initiator != packit and distro != rhel
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
filter: 'tag:tmt & tag:downstream'
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
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
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
summary: Run toolbox tests (downstream only)
|
||||
|
||||
enabled: false
|
||||
adjust+:
|
||||
- enabled: true
|
||||
when: initiator != packit and distro == fedora
|
||||
|
||||
provision:
|
||||
how: artemis
|
||||
hardware:
|
||||
memory: ">= 16 GB"
|
||||
cpu:
|
||||
cores: ">= 4"
|
||||
threads: ">=8"
|
||||
disk:
|
||||
- size: ">= 512 GB"
|
||||
|
||||
prepare:
|
||||
- name: packages
|
||||
how: install
|
||||
package: [toolbox-tests]
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://src.fedoraproject.org/rpms/toolbox
|
||||
ref: "rawhide"
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
1319
podman.spec
1319
podman.spec
File diff suppressed because it is too large
Load diff
3
sources
3
sources
|
|
@ -1 +1,2 @@
|
|||
SHA512 (v5.7.1.tar.gz) = 81fd4c27ff1d16dcb85229d4e4fd2cb06943ddfe966b5324fa8a8a957b2d2ec2aed7c5da05d6c009148f53b76545b27b0cba506622c8861f70bf7cad6c214a08
|
||||
SHA512 (cri-o-a30f93c.tar.gz) = 8bfa291fe3720259b63abaae5b0e50574a3437e1742c84fca36ff325d046ddd81a406a26fe0a3c4760b4c69a7e065a9b1ac550f2e061b45aadc7faf4702b798d
|
||||
SHA512 (libpod-b33a00e.tar.gz) = a682d6e79d23f31ec9a969cacdf108f3c0b21cf61bd8f9cb329f272c237777a15f68e6b74b7217d99985d41e75b3b7d9b9bfe4c5c84c8194ba082a288f1bdce1
|
||||
|
|
|
|||
|
|
@ -1,51 +0,0 @@
|
|||
require:
|
||||
- podman-tests
|
||||
- psmisc
|
||||
|
||||
environment:
|
||||
# PODMAN_TESTING envvar is set in system.sh
|
||||
PODMAN: /usr/bin/podman
|
||||
QUADLET: /usr/libexec/podman/quadlet
|
||||
ROOTLESS_USER: "fedora"
|
||||
adjust+:
|
||||
- when: distro == centos-stream
|
||||
environment+:
|
||||
ROOTLESS_USER: "ec2-user"
|
||||
- when: distro == rhel
|
||||
environment+:
|
||||
ROOTLESS_USER: "cloud-user"
|
||||
- when: initiator != "packit"
|
||||
environment+:
|
||||
RELEASE_TESTING: true
|
||||
|
||||
/local-root:
|
||||
tag: [ local, root ]
|
||||
summary: local rootful test
|
||||
test: bash ./system.sh
|
||||
duration: 30m
|
||||
|
||||
/local-rootless:
|
||||
tag: [ local, rootless ]
|
||||
summary: rootless test
|
||||
test: bash ./system.sh rootless
|
||||
duration: 30m
|
||||
|
||||
/remote-root:
|
||||
tag: [ remote, root ]
|
||||
summary: remote rootful test
|
||||
test: bash ./system.sh
|
||||
duration: 30m
|
||||
environment+:
|
||||
PODMAN: /usr/bin/podman-remote
|
||||
require+:
|
||||
- podman-remote
|
||||
|
||||
/remote-rootless:
|
||||
tag: [ remote, rootless ]
|
||||
summary: remote rootless test
|
||||
test: bash ./system.sh rootless
|
||||
duration: 30m
|
||||
environment+:
|
||||
PODMAN: /usr/bin/podman-remote
|
||||
require+:
|
||||
- podman-remote
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -exo pipefail
|
||||
|
||||
uname -r
|
||||
|
||||
loginctl enable-linger "$ROOTLESS_USER"
|
||||
|
||||
rpm -q \
|
||||
aardvark-dns \
|
||||
buildah \
|
||||
conmon \
|
||||
container-selinux \
|
||||
containers-common \
|
||||
criu \
|
||||
crun \
|
||||
netavark \
|
||||
passt \
|
||||
podman \
|
||||
podman-tests \
|
||||
skopeo \
|
||||
slirp4netns \
|
||||
systemd
|
||||
|
||||
export system_service_cmd="/usr/bin/podman system service --timeout=0 &"
|
||||
export test_cmd="whoami && cd /usr/share/podman/test/system && PODMAN_TESTING=/usr/bin/podman-testing bats ."
|
||||
|
||||
if [[ -z $1 ]]; then
|
||||
if [[ $PODMAN == "/usr/bin/podman-remote" ]]; then
|
||||
eval "$system_service_cmd"
|
||||
fi
|
||||
eval "$test_cmd"
|
||||
elif [[ $1 == "rootless" ]]; then
|
||||
if [[ $PODMAN == "/usr/bin/podman-remote" ]]; then
|
||||
su - "$ROOTLESS_USER" -c "eval $system_service_cmd"
|
||||
fi
|
||||
su - "$ROOTLESS_USER" -c "eval $test_cmd"
|
||||
fi
|
||||
|
||||
# Kill all podman processes for remote tests
|
||||
if [[ $PODMAN == "/usr/bin/podman-remote" ]]; then
|
||||
killall -q podman
|
||||
fi
|
||||
exit 0
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
enabled: false
|
||||
adjust:
|
||||
enabled: true
|
||||
when: initiator != packit && distro != rhel
|
||||
summary: Make sure that TMT container provision works
|
||||
tag: [downstream]
|
||||
require:
|
||||
- tmt+provision-container
|
||||
test:
|
||||
tmt run --verbose --remove
|
||||
provision --how container --image fedora
|
||||
login --command 'cat /etc/os-release'
|
||||
finish
|
||||
13
tests/test_podman.sh
Executable file
13
tests/test_podman.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Simple podman tests
|
||||
#
|
||||
|
||||
rm -f /tmp/test.log /tmp/test.debug.log
|
||||
|
||||
# Log program versions
|
||||
rpm -q podman podman-tests >/tmp/test.debug.log
|
||||
|
||||
bats /usr/share/podman/test/system &> /tmp/test.log
|
||||
|
||||
echo "bats completed with status $?" >>/tmp/test.debug.log
|
||||
35
tests/test_podman.yml
Normal file
35
tests/test_podman.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
vars:
|
||||
- artifacts: ./artifacts
|
||||
# FIXME! It would be cleaner to include 'podman' in this list; but the
|
||||
# dnf module is broken in ansible <= 2.8, it doesn't report failures
|
||||
# to install as long as _one_ package installs! So if podman installs
|
||||
# but podman-tests doesn't, the `dnf` stanza succeeds, then the test
|
||||
# one fails with a less-than-helpful error.
|
||||
#
|
||||
# See https://github.com/ansible/ansible/pull/49760
|
||||
- required_packages:
|
||||
- podman-tests
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
|
||||
tasks:
|
||||
- name: install packages
|
||||
dnf: name="{{ required_packages }}" state=installed
|
||||
enablerepo=updates-testing
|
||||
|
||||
- block:
|
||||
# FIXME: how to make two passes, one as root and one rootless?
|
||||
- name: Run test
|
||||
script: ./test_podman.sh
|
||||
always:
|
||||
- name: Pull out logs
|
||||
fetch:
|
||||
src: "/tmp/{{ item }}"
|
||||
dest: "{{ artifacts }}/{{ item }}"
|
||||
flat: yes
|
||||
with_items:
|
||||
- test.log
|
||||
- test.debug.log
|
||||
1
tests/tests.yml
Normal file
1
tests/tests.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
- import_playbook: test_podman.yml
|
||||
Loading…
Add table
Add a link
Reference in a new issue