Compare commits

...
Sign in to create a new pull request.

22 commits

Author SHA1 Message Date
Packit
0cd3b73c72 Update to 5.7.1 upstream release
Upstream tag: v5.7.1
Upstream commit: f845d14e

Commit authored by Packit automation (https://packit.dev/)
2025-12-10 16:40:27 +00:00
Packit
f65f6ce8f9 Update to 5.7.0 upstream release
Upstream tag: v5.7.0
Upstream commit: 0370128f

Commit authored by Packit automation (https://packit.dev/)
2025-11-11 19:05:18 +00:00
Packit
4777be9c2f Update to 5.7.0-rc2 upstream release
Upstream tag: v5.7.0-rc2
Upstream commit: fa892f1d

Commit authored by Packit automation (https://packit.dev/)
2025-10-30 14:38:24 +00:00
Lokesh Mandvekar
f01f4b65a9
bump to v5.7.0-rc1
(cherry picked from commit c9170cee3ace38955dd8e5ec0fcc084dd82759c3)
2025-10-28 08:44:37 -04:00
Packit
184c4556c7 Update to 5.6.2 upstream release
Upstream tag: v5.6.2
Upstream commit: 9dd5e1ed

Commit authored by Packit automation (https://packit.dev/)
2025-09-30 19:44:44 +00:00
Packit
3df21e3cba Update to 5.6.1 upstream release
Upstream tag: v5.6.1
Upstream commit: 1e2b2315

Commit authored by Packit automation (https://packit.dev/)
2025-09-04 20:58:05 +00:00
Packit
be30e3c125 Update to 5.6.0 upstream release
Upstream tag: v5.6.0
Upstream commit: da671ef6

Commit authored by Packit automation (https://packit.dev/)
2025-08-15 16:00:48 +00:00
Packit
0a5aff67ec Update to 5.6.0-rc2 upstream release
Upstream tag: v5.6.0-rc2
Upstream commit: ec0652f4

Commit authored by Packit automation (https://packit.dev/)
2025-08-08 17:29:13 +00:00
Packit
918104e5ea Update to 5.6.0-rc1 upstream release
Upstream tag: v5.6.0-rc1
Upstream commit: a3a6d9cc

Commit authored by Packit automation (https://packit.dev/)
2025-07-25 19:03:05 +00:00
Packit
85c394d2e5 Update to 5.5.2 upstream release
Upstream tag: v5.5.2
Upstream commit: e7d82267

Commit authored by Packit automation (https://packit.dev/)
2025-06-24 17:26:21 +00:00
Packit
9430d34eea Update to 5.5.1 upstream release
Upstream tag: v5.5.1
Upstream commit: 850db76d

Commit authored by Packit automation (https://packit.dev/)
2025-06-05 21:56:35 +00:00
Packit
d11e4fe0ad Update to 5.5.0 upstream release
Upstream tag: v5.5.0
Upstream commit: 0dbcb514

Commit authored by Packit automation (https://packit.dev/)
2025-05-14 15:52:28 +00:00
Lokesh Mandvekar
02a145de5a
TMT: system tests: Load null_blk kernel module to have /dev/nullb0
This also depends on patches in https://github.com/containers/podman/pull/26022
which will be present in final v5.5.0.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 9d09cecc7b)
2025-05-02 20:28:56 +05:30
Lokesh Mandvekar
1c58300643
fix setup to test tmt itself
do not enable on CentOS-Stream-10 and RHEL-10 as TMT is not yet present
on EPEL10.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit cfd03ba656)
2025-05-02 20:28:51 +05:30
Lokesh Mandvekar
5bdb88ecad
cleanup: no plugins binaries built in rpm
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 16af8ff967)
2025-05-02 20:28:45 +05:30
Lokesh Mandvekar
6253324d42
TMT: fix hardware provisioning for toolbox test
Only enable toolbox tests on fedora bodhi updates.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit c65ae60225)
2025-05-02 20:28:36 +05:30
Packit
c95d51d67d Update to 5.5.0-rc2 upstream release
Upstream tag: v5.5.0-rc2
Upstream commit: 3c4cf521

Commit authored by Packit automation (https://packit.dev/)
2025-05-01 12:41:04 +00:00
Packit
4b748588dd Update to 5.5.0-rc1 upstream release
Upstream tag: v5.5.0-rc1
Upstream commit: 6a597e0e

Commit authored by Packit automation (https://packit.dev/)
2025-04-24 17:02:24 +00:00
Packit
185b533999 Update to 5.4.2 upstream release
Upstream tag: v5.4.2
Upstream commit: be85287f

Commit authored by Packit automation (https://packit.dev/)
2025-04-02 16:29:18 +00:00
Packit
10a7fadbde Update to 5.4.1 upstream release
Upstream tag: v5.4.1
Upstream commit: b79bc8af

Commit authored by Packit automation (https://packit.dev/)
2025-03-11 18:37:42 +00:00
Packit
9e273d648e Update to 5.4.0 upstream release
Upstream tag: v5.4.0
Upstream commit: f9f7d48b

Commit authored by Packit automation (https://packit.dev/)
2025-02-11 18:27:51 +00:00
Packit
ca8f2aa0f3 Update to 5.4.0-rc3 upstream release
Upstream tag: v5.4.0-rc3
Upstream commit: ad54787b

Commit authored by Packit automation (https://packit.dev/)
2025-02-05 19:03:56 +00:00
13 changed files with 171 additions and 162 deletions

18
.gitignore vendored
View file

@ -1876,3 +1876,21 @@
/v5.3.1.tar.gz
/v5.3.2.tar.gz
/v5.4.0-rc2.tar.gz
/v5.4.0-rc3.tar.gz
/v5.4.0.tar.gz
/v5.4.1.tar.gz
/v5.4.2.tar.gz
/v5.5.0-rc1.tar.gz
/v5.5.0-rc2.tar.gz
/v5.5.0.tar.gz
/v5.5.1.tar.gz
/v5.5.2.tar.gz
/v5.6.0-rc1.tar.gz
/v5.6.0-rc2.tar.gz
/v5.6.0.tar.gz
/v5.6.1.tar.gz
/v5.6.2.tar.gz
/v5.7.0-rc1.tar.gz
/v5.7.0-rc2.tar.gz
/v5.7.0.tar.gz
/v5.7.1.tar.gz

View file

@ -36,30 +36,37 @@ packages:
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.sh"
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_build_failure_notification
notifications: &packit_generic_failure_notification
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
message: "[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore."
enable_net: true
targets: &fedora_copr_targets
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: pull_request
trigger: ignore
packages: [podman-eln]
notifications: *packit_build_failure_notification
notifications: *packit_generic_failure_notification
enable_net: true
targets:
fedora-eln-x86_64:
@ -69,12 +76,13 @@ jobs:
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: pull_request
trigger: ignore
packages: [podman-centos]
notifications: *packit_build_failure_notification
notifications: *packit_generic_failure_notification
enable_net: true
targets: &centos_copr_targets
targets:
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
@ -84,62 +92,19 @@ jobs:
- job: copr_build
trigger: commit
packages: [podman-fedora]
notifications:
failure_comment:
message: "podman-next COPR build failed. @containers/packit-build please check."
branch: main
owner: rhcontainerbot
project: podman-next
enable_net: true
# Tests on Fedora
- job: tests
trigger: pull_request
packages: [podman-fedora]
targets: *fedora_copr_targets
require: &dev_tests
label:
absent:
- release
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
identifier: "dev"
- job: tests
trigger: pull_request
packages: [podman-fedora]
targets: *fedora_copr_targets
require: &release_tests
label:
present:
- release
preserve_project: true
identifier: "release"
# FIXME: Enable centos stream tests after containers-common is fixed
# FIXME: centos stream 10 currently also lacks bats
# https://bugzilla.redhat.com/show_bug.cgi?id=2329315
- job: tests
trigger: ignore
packages: [podman-centos]
targets: *centos_copr_targets
require: *dev_tests
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$releasever.repo
identifier: "dev"
- job: tests
trigger: ignore
packages: [podman-centos]
targets: *centos_copr_targets
require: *release_tests
preserve_project: true
identifier: "release"
notifications: *packit_generic_failure_notification
targets:
- fedora-all
tmt_plan: "/plans/system/*"
- job: tests
identifier: cockpit-revdeps
@ -156,12 +121,24 @@ jobs:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-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
@ -169,13 +146,6 @@ jobs:
dist_git_branches: &fedora_targets
- fedora-all
- job: propose_downstream
trigger: release
update_release: false
packages: [podman-centos]
dist_git_branches:
- c10s
- job: koji_build
trigger: commit
packages: [podman-fedora]

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.0.1.
The file was generated using packit 1.12.0.post1.dev22+gfe66fd850.

View file

@ -8,6 +8,7 @@ subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
# recipients: jnovy, lsm5, santiago
--- !Policy
product_versions:
- rhel-*

View file

@ -5,21 +5,15 @@ 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
- 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
adjust+:
- enabled: false

View file

@ -1,5 +1,10 @@
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'
@ -7,15 +12,6 @@ discover:
execute:
how: tmt
provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
@ -23,7 +19,3 @@ prepare:
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

View file

@ -1,4 +1,20 @@
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

View file

@ -7,27 +7,29 @@
%global debug_package %{nil}
%endif
# RHEL's default %%gobuild macro doesn't account for the BUILDTAGS variable, so we
# set it separately here and do not depend on RHEL's go-[s]rpm-macros package
# until that's fixed.
# c9s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227328
%if %{defined rhel} && 0%{?rhel} < 10
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};
%endif
%global gomodulesmode GO111MODULE=on
%if %{defined rhel}
# _user_tmpfiles.d currently undefined on rhel
%global _user_tmpfilesdir %{_datadir}/user-tmpfiles.d
%endif
%if %{defined fedora}
%define build_with_btrfs 1
# qemu-system* isn't packageed for CentOS Stream / RHEL
%define qemu 1
# bats is included in the default repos (No epel/copr etc.)
%define distro_bats 1
%if %{?fedora} >= 43
%define sequoia 1
%endif
%endif
%if %{defined copr_username}
%define copr_build 1
%if "%{copr_username}" == "rhcontainerbot" && "%{copr_projectname}" == "podman-next"
%define next_build 1
%endif
%endif
# Only RHEL and CentOS Stream rpms are built with fips-enabled go compiler
%if %{defined rhel}
%define fips_enabled 1
%endif
%global container_base_path github.com/containers
@ -43,8 +45,14 @@
# podman-machine subpackage will be present only on these architectures
%global machine_arches x86_64 aarch64
Name: podman
%if %{defined copr_build}
%define build_origin Copr: %{?copr_username}/%{?copr_projectname}
%else
%define build_origin %{?packager}
%endif
Name: podman
%if %{defined next_build}
Epoch: 102
%else
Epoch: 5
@ -55,14 +63,14 @@ Epoch: 5
# If that's what you're reading, Version must be 0, and will be updated by Packit for
# copr and koji builds.
# If you're reading this on dist-git, the version is automatically filled in by Packit.
Version: 5.4.0~rc2
Version: 5.7.1
# The `AND` needs to be uppercase in the License for SPDX compatibility
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
Release: %autorelease
%if %{defined golang_arches_future}
ExclusiveArch: %{golang_arches_future}
%else
ExclusiveArch: aarch64 ppc64le s390x x86_64
ExclusiveArch: aarch64 ppc64le s390x x86_64 riscv64
%endif
Summary: Manage Pods, Containers and Container Images
URL: https://%{name}.io/
@ -91,7 +99,7 @@ BuildRequires: shadow-utils-subid-devel
BuildRequires: pkgconfig
BuildRequires: make
BuildRequires: man-db
BuildRequires: ostree-devel
BuildRequires: sqlite-devel
BuildRequires: systemd
BuildRequires: systemd-devel
Requires: catatonit
@ -104,6 +112,10 @@ Requires: containers-common-extra >= 5:0.58.0-1
%else
Requires: containers-common-extra
%endif
%if %{defined sequoia}
Requires: podman-sequoia
%endif
Obsoletes: %{name}-quadlet <= 5:4.4.0-1
Provides: %{name}-quadlet = %{epoch}:%{version}-%{release}
@ -139,22 +151,26 @@ pages and %{name}.
Summary: Tests for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release}
%if %{defined fedora}
%if %{defined distro_bats}
Requires: bats
%endif
Requires: attr
Requires: jq
Requires: skopeo
Requires: nmap-ncat
Requires: httpd-tools
Requires: openssl
Requires: socat
Requires: slirp4netns
Requires: buildah
Requires: gnupg
Requires: xfsprogs
%description tests
%{summary}
This package contains system tests for %{name}
This package contains system tests for %{name}. Only intended to be used for
gating tests. Not supported for end users / customers.
%package remote
Summary: (Experimental) Remote client for managing %{name} containers
@ -187,7 +203,17 @@ when `%{_bindir}/%{name}sh` is set as a login shell or set as os.Args[0].
Summary: Metapackage for setting up %{name} machine
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: gvisor-tap-vsock
Requires: qemu
%if %{defined qemu}
%ifarch aarch64
Requires: qemu-system-aarch64-core
%endif
%ifarch x86_64
Requires: qemu-system-x86-core
%endif
%else
Requires: qemu-kvm
%endif
Requires: qemu-img
Requires: virtiofsd
ExclusiveArch: x86_64 aarch64
@ -205,14 +231,6 @@ sed -i 's;@@PODMAN@@\;$(BINDIR);@@PODMAN@@\;%{_bindir};' Makefile
sed -i '/DELETE ON RHEL9/,/DELETE ON RHEL9/d' libpod/runtime.go
%endif
# These changes are only meant for copr builds
%if %{defined copr_build}
# podman --version should show short sha
sed -i "s/^const RawVersion = .*/const RawVersion = \"##VERSION##-##SHORT_SHA##\"/" version/rawversion/version.go
# use ParseTolerant to allow short sha in version
sed -i "s/^var Version.*/var Version, err = semver.ParseTolerant(rawversion.RawVersion)/" version/version.go
%endif
%build
%set_build_flags
export CGO_CFLAGS=$CFLAGS
@ -229,29 +247,48 @@ export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
export GOPROXY=direct
LDFLAGS="-X %{ld_libpod}/define.buildInfo=${SOURCE_DATE_EPOCH:-$(date +%s)} \
-X \"%{ld_libpod}/define.buildOrigin=%{build_origin}\" \
-X %{ld_libpod}/config._installPrefix=%{_prefix} \
-X %{ld_libpod}/config._etcDir=%{_sysconfdir} \
-X %{ld_project}/pkg/systemd/quadlet._binDir=%{_bindir}"
# This variable will be set by Packit actions. See .packit.yaml in the root dir
# of the repo (upstream as well as Fedora dist-git).
GIT_COMMIT="f845d14e941889ba4c071f35233d09b29d363c75"
LDFLAGS="$LDFLAGS -X %{ld_libpod}/define.gitCommit=$GIT_COMMIT"
# build rootlessport first
%gobuild -o bin/rootlessport ./cmd/rootlessport
export BASEBUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh)"
export BASEBUILDTAGS="seccomp $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh) libsqlite3 grpcnotrace"
# libtrust_openssl buildtag switches to using the FIPS-compatible func
# `ecdsa.HashSign`.
# Ref 1: https://github.com/golang-fips/go/blob/main/patches/015-add-hash-sign-verify.patch#L22
# Ref 2: https://github.com/containers/libtrust/blob/main/ec_key_openssl.go#L23
%if %{defined fips_enabled}
export BASEBUILDTAGS="$BASEBUILDTAGS libtrust_openssl"
%endif
# build %%{name}
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_tag.sh)"
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh)"
%if %{defined sequoia}
export BUILDTAGS="$BUILDTAGS containers_image_sequoia"
%endif
%gobuild -o bin/%{name} ./cmd/%{name}
# build %%{name}-remote
export BUILDTAGS="$BASEBUILDTAGS exclude_graphdriver_btrfs btrfs_noversion remote"
export BUILDTAGS="$BASEBUILDTAGS exclude_graphdriver_btrfs remote"
%gobuild -o bin/%{name}-remote ./cmd/%{name}
# build quadlet
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh)"
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh)"
%gobuild -o bin/quadlet ./cmd/quadlet
# build %%{name}-testing
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh)"
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh)"
%gobuild -o bin/podman-testing ./cmd/podman-testing
# reset LDFLAGS for plugins binaries
@ -271,11 +308,6 @@ PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} ETCDI
install.remote \
install.testing
# See above for the iptables.conf declaration
%if %{defined fedora} && 0%{?fedora} < 41
%{__make} DESTDIR=%{buildroot} MODULESLOADDIR=%{_modulesloaddir} install.modules-load
%endif
sed -i 's;%{buildroot};;g' %{buildroot}%{_bindir}/docker
# do not include docker and podman-remote man pages in main package
@ -296,6 +328,9 @@ ln -s ../virtiofsd %{buildroot}%{_libexecdir}/%{name}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
# Include empty check to silence rpmlint warning
%check
%files -f %{name}.file-list
%license LICENSE vendor/modules.txt
%doc README.md CONTRIBUTING.md install.md transfer.md

View file

@ -1 +1 @@
SHA512 (v5.4.0-rc2.tar.gz) = 74c6e59489e4fc473f23c4642e72bd60c434a4160b871b47032d95b8a06e73ad7d1032299f8a421a42084b3fd7d090afbfd2688781dc4753986bbeb3a686e523
SHA512 (v5.7.1.tar.gz) = 81fd4c27ff1d16dcb85229d4e4fd2cb06943ddfe966b5324fa8a8a957b2d2ec2aed7c5da05d6c009148f53b76545b27b0cba506622c8861f70bf7cad6c214a08

View file

@ -1,14 +1,10 @@
require:
- attr
- bats
- podman-remote
- podman-tests
- psmisc
- slirp4netns
environment:
# PODMAN_TESTING envvar is set in system.sh
PODMAN: /usr/bin/podman
PODMAN_TESTING: /usr/bin/podman-testing
QUADLET: /usr/libexec/podman/quadlet
ROOTLESS_USER: "fedora"
adjust+:
@ -18,13 +14,16 @@ adjust+:
- 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
@ -38,6 +37,8 @@ adjust+:
duration: 30m
environment+:
PODMAN: /usr/bin/podman-remote
require+:
- podman-remote
/remote-rootless:
tag: [ remote, rootless ]
@ -46,3 +47,5 @@ adjust+:
duration: 30m
environment+:
PODMAN: /usr/bin/podman-remote
require+:
- podman-remote

View file

@ -12,6 +12,7 @@ rpm -q \
conmon \
container-selinux \
containers-common \
criu \
crun \
netavark \
passt \
@ -22,18 +23,18 @@ rpm -q \
systemd
export system_service_cmd="/usr/bin/podman system service --timeout=0 &"
export test_cmd="whoami && cd /usr/share/podman/test/system && bats ."
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
eval "$system_service_cmd"
fi
eval $test_cmd
eval "$test_cmd"
elif [[ $1 == "rootless" ]]; then
if [[ $PODMAN == "/usr/bin/podman-remote" ]]; then
su - "$ROOTLESS_USER" -c "eval $system_service_cmd"
fi
su --whitelist-environment=$(cat ./tmt-envvars | tr '\n' ',') - "$ROOTLESS_USER" -c "eval $test_cmd"
su - "$ROOTLESS_USER" -c "eval $test_cmd"
fi
# Kill all podman processes for remote tests

View file

@ -1,20 +0,0 @@
TMT_TREE
TMT_PLAN_DATA
TMT_VERSION
TMT_TEST_NAME
TMT_TEST_DATA
TMT_TEST_SERIAL_NUMBER
TMT_TEST_ITERATION_ID
TMT_TEST_METADATA
TMT_SOURCE_DIR
TMT_REBOOT_COUNT
TMT_TEST_RESTART_COUNT
TMT_TOPOLOGY_BASH
TMT_TOPOLOGY_YAML
TMT_TEST_PIDFILE
TMT_TEST_PIDFILE_LOCK
TMT_TEST_PIDFILE_ROOT
PODMAN
PODMAN_TESTING
QUADLET
ROOTLESS_USER

View file

@ -1,10 +1,9 @@
enabled: false
adjust:
enabled: true
when: initiator != packit and distro != rhel-10 or distro != centos-stream-10
when: initiator != packit && distro != rhel
summary: Make sure that TMT container provision works
tag: [ tmt, downstream ]
tag: [downstream]
require:
- tmt+provision-container
test: