Compare commits

..

59 commits

Author SHA1 Message Date
Packit
d4d527c371 Update to 1.42.2 upstream release
Upstream tag: v1.42.2
Upstream commit: c0cc9725

Commit authored by Packit automation (https://packit.dev/)
2025-12-03 09:14:25 +00:00
Packit
c0cc68f3e1 Update to 1.42.1 upstream release
Upstream tag: v1.42.1
Upstream commit: de21106b

Commit authored by Packit automation (https://packit.dev/)
2025-11-11 14:26:58 +00:00
Lokesh Mandvekar
7c141b863e
Rebuild for CVE fixes
Resolves: CVE-2025-58185, CVE-2025-58188, CVE-2025-61723
2025-11-03 11:14:16 -05:00
Lokesh Mandvekar
90ad4c354a
cleanup changelog 2025-10-23 08:44:05 -04:00
Lokesh Mandvekar
a884e54cb0
build with sequoia on f43+ 2025-10-23 08:41:54 -04:00
Packit
6fc353cd85 Update to 1.42.0 upstream release
Upstream tag: v1.42.0
Upstream commit: 1ba41f03

Commit authored by Packit automation (https://packit.dev/)
2025-10-22 15:20:59 +00:00
Maxwell G
5fedcf4ec6 Rebuild for golang 1.25.2 2025-10-10 10:53:24 -05:00
Packit
7d0ac054b5 Update to 1.41.5 upstream release
Upstream tag: v1.41.5
Upstream commit: 7d95c695

Commit authored by Packit automation (https://packit.dev/)
2025-09-29 19:13:03 +00:00
Packit
561d0ac58e Update to 1.41.4 upstream release
Upstream tag: v1.41.4
Upstream commit: 4094f92e

Commit authored by Packit automation (https://packit.dev/)
2025-09-04 15:29:33 +00:00
Maxwell G
fb16241361 Rebuild for golang-1.25.0 2025-08-15 16:02:45 -05:00
Maxwell G
6d07ec6d35 Revert "Rebuild for golang-1.25.0"
This reverts commit d76916f386.
2025-08-15 15:25:55 -05:00
Maxwell G
d76916f386 Rebuild for golang-1.25.0 2025-08-15 14:23:03 -05:00
Packit
1b8d009750 Update to 1.41.3 upstream release
Upstream tag: v1.41.3
Upstream commit: b60c59c7

Commit authored by Packit automation (https://packit.dev/)
2025-08-14 18:56:32 +00:00
Packit
9679193c21 Update to 1.41.2 upstream release
Upstream tag: v1.41.2
Upstream commit: 5442721d

Commit authored by Packit automation (https://packit.dev/)
2025-08-13 18:57:12 +00:00
Packit
932bf4d262 Update to 1.41.1 upstream release
Upstream tag: v1.41.1
Upstream commit: 2de767f3

Commit authored by Packit automation (https://packit.dev/)
2025-08-07 13:25:20 +00:00
Fedora Release Engineering
4939c53015 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 17:57:10 +00:00
Packit
b6e01ac0fe Update to 1.41.0 upstream release
Upstream tag: v1.41.0
Upstream commit: 9f185b77

Commit authored by Packit automation (https://packit.dev/)
2025-07-21 13:48:42 +00:00
Packit
000cb986c4 Update to 1.40.1 upstream release
Upstream tag: v1.40.1
Upstream commit: b013f347

Commit authored by Packit automation (https://packit.dev/)
2025-06-04 12:42:00 +00:00
Packit
f38d0e1c25 Update to 1.40.0 upstream release
Upstream tag: v1.40.0
Upstream commit: ff62e3e8

Commit authored by Packit automation (https://packit.dev/)
2025-04-21 17:45:16 +00:00
Packit
bc8689debf Update to 1.39.4 upstream release
Upstream tag: v1.39.4
Upstream commit: 5b7b7ca3

Commit authored by Packit automation (https://packit.dev/)
2025-03-28 14:38:33 +00:00
Packit
c09e532cef Update to 1.39.3 upstream release
Upstream tag: v1.39.3
Upstream commit: 0a5cebb3

Commit authored by Packit automation (https://packit.dev/)
2025-03-14 19:50:38 +00:00
Packit
a54dfc47ef Update to 1.39.2 upstream release
Upstream tag: v1.39.2
Upstream commit: d5d9d35f

Commit authored by Packit automation (https://packit.dev/)
2025-03-04 23:31:44 +00:00
Packit
8743ff42b9 Update to 1.39.1 upstream release
Upstream tag: v1.39.1
Upstream commit: 9347a39c

Commit authored by Packit automation (https://packit.dev/)
2025-02-26 23:46:22 +00:00
Lokesh Mandvekar
3a31f6dc42
TMT: initial enablement
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-02-06 18:56:25 +05:30
Packit
ce852ef3ee Update to 1.39.0 upstream release
Upstream tag: v1.39.0
Upstream commit: c15ab104

Commit authored by Packit automation (https://packit.dev/)
2025-02-03 16:30:19 +00:00
Packit
e95e0c0da3 Update to 1.38.1 upstream release
Upstream tag: v1.38.1
Upstream commit: a07dde1b

Commit authored by Packit automation (https://packit.dev/)
2025-01-21 14:55:44 +00:00
Fedora Release Engineering
6bf3dfee55 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 13:01:13 +00:00
Paul Holzinger
a40979722c
tests: set new inet helper path
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-12 15:52:51 +01:00
Packit
045d9ed54d Update to 1.38.0 upstream release
Upstream tag: v1.38.0
Upstream commit: 7aa3b5ee

Commit authored by Packit automation (https://packit.dev/)
2024-11-11 15:44:34 +00:00
Packit
149ed1c0a8 Update to 1.37.5 upstream release
Upstream tag: v1.37.5
Upstream commit: 5fd40b98

Commit authored by Packit automation (https://packit.dev/)
2024-10-18 14:35:42 +00:00
Packit
2b30cd161d Update to 1.37.4 upstream release
Upstream tag: v1.37.4
Upstream commit: df9247c5

Commit authored by Packit automation (https://packit.dev/)
2024-10-07 13:29:11 +00:00
Lokesh Mandvekar
68cf6e550f
rebuild 2024-09-26 16:09:15 +05:30
Packit
bb9ef83dc2 Update to 1.37.3 upstream release
Upstream tag: v1.37.3
Upstream commit: 956095ee

Commit authored by Packit automation (https://packit.dev/)
2024-09-23 16:05:13 +00:00
Lokesh Mandvekar
2b187755e3
rebuild for shadow-utils bump
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2024-08-28 20:32:43 +05:30
Packit
014ef23135 Update to 1.37.2 upstream release
Upstream tag: v1.37.2
Upstream commit: eadda3bc

Commit authored by Packit automation (https://packit.dev/)
2024-08-21 12:21:43 +00:00
Packit
abe177cf0f Update to 1.37.1 upstream release
Upstream tag: v1.37.1
Upstream commit: 67cc51e9

Commit authored by Packit automation (https://packit.dev/)
2024-08-13 15:08:18 +00:00
Packit
eb8ab75146 Update to 1.37.0 upstream release
Upstream tag: v1.37.0
Upstream commit: f9de1bbd

Commit authored by Packit automation (https://packit.dev/)
2024-07-26 17:53:18 +00:00
Fedora Release Engineering
5402218d32 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 18:43:07 +00:00
Packit
5d71612b0d Update to 1.36.0 upstream release
Upstream tag: v1.36.0
Upstream commit: 6ceba883

Commit authored by Packit automation (https://packit.dev/)
2024-05-24 00:00:13 +00:00
Packit
37bc79bcdc Update to 1.35.4 upstream release
Upstream tag: v1.35.4
Upstream commit: c2926eaf

Commit authored by Packit automation (https://packit.dev/)
2024-05-10 13:23:46 +00:00
Packit
fe3229cea7 [packit] 1.35.3 upstream release
Upstream tag: v1.35.3
Upstream commit: 9f0251c1
2024-03-30 01:13:50 +00:00
Ed Santiago
326e78444f Gating tests: require slirp4netns
As of podman 5.0 slirp4netns is a soft dependency, not
installed by default, but we still need to test it until
it's deprecated.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-03-27 05:50:22 -06:00
Packit
73cc54f5bb [packit] 1.35.2 upstream release
Upstream tag: v1.35.2
Upstream commit: 5070e42c
2024-03-26 23:57:44 +00:00
Packit
72edd2e7fe [packit] 1.35.1 upstream release
Upstream tag: v1.35.1
Upstream commit: f0141c69
2024-03-18 23:56:48 +00:00
Packit
1a800e73be [packit] 1.35.0 upstream release
Upstream tag: v1.35.0
Upstream commit: fedbd796
2024-03-07 12:45:43 +00:00
Packit
b152e156fc [packit] 1.34.1 upstream release
Upstream tag: v1.34.1
Upstream commit: a2bab63f
2024-02-22 19:46:39 +00:00
Maxwell G
28e33e4e5c
Rebuild for golang 1.22.0 2024-02-11 21:40:49 +00:00
Fedora Release Engineering
c160691abf Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-23 00:56:45 +00:00
Fedora Release Engineering
54d58aa607 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 14:49:02 +00:00
Packit
3ace49d3ac [packit] 1.34.0 upstream release
Upstream tag: v1.34.0
Upstream commit: 21ec7ace
2023-12-13 15:29:13 +00:00
Packit
6f9ee87f9e [packit] 1.33.2 upstream release
Upstream tag: v1.33.2
Upstream commit: 7fffb336
2023-11-26 22:09:51 +00:00
Packit
b8fa441757 [packit] 1.32.2 upstream release
Upstream tag: v1.32.2
Upstream commit: 050318f8
2023-10-30 18:16:35 +00:00
Packit
64c58bf0ba [packit] 1.32.1 upstream release
Upstream tag: v1.32.1
Upstream commit: bfd436d1
2023-10-24 14:18:26 +00:00
Packit
e8e909ce3c [packit] 1.32.0 upstream release
Upstream tag: v1.32.0
Upstream commit: 2326d492
2023-09-14 19:04:57 +00:00
Packit
ab31c80779 [packit] 1.31.3 upstream release
Upstream tag: v1.31.3
Upstream commit: 3ae75d4a

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit/rpms/buildah.git refs/heads/*:refs/remotes/packit/*
git checkout packit/1.31.3-rawhide-update-propose_downstream
```
2023-08-24 20:52:06 +00:00
Lokesh Mandvekar
1f6d2f7e6a spdx compatible license 2023-08-22 09:14:22 -04:00
Lokesh Mandvekar
047a9f8cdf use double quotes for buildtags 2023-08-11 14:10:23 -04:00
Lokesh Mandvekar
2ded9f0893 fix buildtags 2023-08-11 10:01:39 -04:00
Packit
315cce6ac5 [packit] 1.31.2 upstream release
Upstream tag: v1.31.2
Upstream commit: d4d1d751

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit/rpms/buildah.git refs/heads/*:refs/remotes/packit/*
git checkout packit/1.31.2-rawhide-update-propose_downstream
```
2023-08-10 17:59:37 +00:00
13 changed files with 233 additions and 140 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

22
.gitignore vendored
View file

@ -713,3 +713,25 @@
/v1.36.0.tar.gz
/v1.37.0.tar.gz
/v1.37.1.tar.gz
/v1.37.2.tar.gz
/v1.37.3.tar.gz
/v1.37.4.tar.gz
/v1.37.5.tar.gz
/v1.38.0.tar.gz
/v1.38.1.tar.gz
/v1.39.0.tar.gz
/v1.39.1.tar.gz
/v1.39.2.tar.gz
/v1.39.3.tar.gz
/v1.39.4.tar.gz
/v1.40.0.tar.gz
/v1.40.1.tar.gz
/v1.41.0.tar.gz
/v1.41.1.tar.gz
/v1.41.2.tar.gz
/v1.41.3.tar.gz
/v1.41.4.tar.gz
/v1.41.5.tar.gz
/v1.42.0.tar.gz
/v1.42.1.tar.gz
/v1.42.2.tar.gz

View file

@ -5,6 +5,27 @@
downstream_package_name: buildah
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: tests/tmt/
dest: tests/tmt/
delete: true
mkpath: true
- src: .fmf/
dest: .fmf/
delete: true
- .packit.yaml
packages:
buildah-fedora:
pkg_tool: fedpkg
@ -12,7 +33,7 @@ packages:
buildah-centos:
pkg_tool: centpkg
specfile_path: rpm/buildah.spec
buildah-rhel:
buildah-eln:
specfile_path: rpm/buildah.spec
srpm_build_deps:
@ -25,9 +46,22 @@ jobs:
notifications: &copr_build_failure_notification
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
# Fedora aliases documentation: https://packit.dev/docs/configuration#aliases
# python3-fedora-distro-aliases provides `resolve-fedora-aliases` command
targets: &fedora_copr_targets
- fedora-all-x86_64
- fedora-all-aarch64
enable_net: true
# Disable osh diff scan until Go support is available
# Ref: https://github.com/openscanhub/known-false-positives/pull/30#issuecomment-2858698495
osh_diff_scan_after_copr_build: false
# Ignore until golang is updated in distro buildroot to 1.23.3+
- job: copr_build
trigger: ignore
packages: [buildah-eln]
notifications: *copr_build_failure_notification
targets:
fedora-all-x86_64: {}
fedora-all-aarch64: {}
fedora-eln-x86_64:
additional_repos:
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/"
@ -36,26 +70,18 @@ jobs:
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/"
enable_net: true
# Ignore until golang is updated in distro buildroot to 1.23.3+
- job: copr_build
trigger: pull_request
trigger: ignore
packages: [buildah-centos]
notifications: *copr_build_failure_notification
targets:
targets: &centos_copr_targets
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
- centos-stream-10-aarch64
enable_net: true
- job: copr_build
trigger: pull_request
packages: [buildah-rhel]
notifications: *copr_build_failure_notification
targets:
- epel-9-x86_64
- epel-9-aarch64
enable_net: true
# Run on commit to main branch
- job: copr_build
trigger: commit
@ -68,12 +94,38 @@ jobs:
project: podman-next
enable_net: true
# Tests on Fedora for main branch PRs
- job: tests
trigger: pull_request
packages: [buildah-fedora]
targets:
- fedora-all-x86_64
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
# Ignore until golang is updated in distro buildroot to 1.23.3+
# Tests on CentOS Stream for main branch PRs
- job: tests
trigger: ignore
packages: [buildah-centos]
targets:
- centos-stream-9-x86_64
- centos-stream-10-x86_64
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
# Sync to Fedora
- job: propose_downstream
trigger: release
packages: [buildah-fedora]
update_release: false
dist_git_branches:
dist_git_branches: &fedora_targets
- fedora-all
# Sync to CentOS Stream
@ -84,12 +136,14 @@ jobs:
dist_git_branches:
- c10s
# Fedora Koji build
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched # rawhide updates are created automatically
packages: [buildah-fedora]
sidetag_group: podman-releases
# Dependents are not rpm dependencies, but the package whose bodhi update
# should include this package.
# Ref: https://packit.dev/docs/fedora-releases-guide/releasing-multiple-packages
dependents:
- podman
dist_git_branches: *fedora_targets

View file

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

View file

@ -7,19 +7,17 @@
%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
# c8s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227331
%if %{defined rhel}
%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 0%{defined fedora}
%if %{defined fedora}
%define build_with_btrfs 1
%if 0%{?fedora} >= 43
%define sequoia 1
%endif
%endif
%if %{defined rhel}
%define fips 1
%endif
%global git0 https://github.com/containers/%{name}
@ -28,6 +26,8 @@ Name: buildah
# Set different Epoch for copr
%if %{defined copr_username}
Epoch: 102
%else
Epoch: 2
%endif
# DO NOT TOUCH the Version string!
# The TRUE source of this specfile is:
@ -35,7 +35,7 @@ Epoch: 102
# 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: 1.37.1
Version: 1.42.2
# 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
@ -59,11 +59,11 @@ BuildRequires: go-rpm-macros
BuildRequires: gpgme-devel
BuildRequires: libassuan-devel
BuildRequires: make
BuildRequires: ostree-devel
%if %{defined build_with_btrfs}
BuildRequires: btrfs-progs-devel
%endif
BuildRequires: shadow-utils-subid-devel
BuildRequires: sqlite-devel
Requires: containers-common-extra
%if %{defined fedora}
BuildRequires: libseccomp-static
@ -72,6 +72,9 @@ BuildRequires: libseccomp-devel
%endif
Requires: libseccomp >= 2.4.1-0
Suggests: cpp
%if %{defined sequoia}
Requires: podman-sequoia
%endif
%description
The %{name} package provides a command line tool which can be used to
@ -82,12 +85,16 @@ or
* save container's root file system layer to create a new image
* delete a working container or an image
# This subpackage is only intended for CI testing.
# Not meant for end user/customer usage.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{version}-%{release}
%if %{defined fedora}
Requires: %{name} = %{epoch}:%{version}-%{release}
%if %{defined bats_epel}
Requires: bats
%else
Recommends: bats
%endif
Requires: bzip2
Requires: podman
@ -122,15 +129,28 @@ export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
export CNI_VERSION=`grep '^# github.com/containernetworking/cni ' src/modules.txt | sed 's,.* ,,'`
export LDFLAGS="-X main.buildInfo=`date +%s` -X main.cniVersion=${CNI_VERSION}"
export BUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh)"
export BUILDTAGS="seccomp $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh) libsqlite3"
%if !%{defined build_with_btrfs}
export BUILDTAGS+=" btrfs_noversion exclude_graphdriver_btrfs"
export BUILDTAGS+=" exclude_graphdriver_btrfs"
%endif
%if %{defined fips}
export BUILDTAGS+=" libtrust_openssl"
%endif
%if %{defined sequoia}
export BUILDTAGS+=" containers_image_sequoia"
%endif
%gobuild -o bin/%{name} ./cmd/%{name}
%gobuild -o bin/imgtype ./tests/imgtype
%gobuild -o bin/copy ./tests/copy
%gobuild -o bin/tutorial ./tests/tutorial
%gobuild -o bin/inet ./tests/inet
%gobuild -o bin/dumpspec ./tests/dumpspec
%gobuild -o bin/passwd ./tests/passwd
%gobuild -o bin/crash ./tests/crash
%gobuild -o bin/wait ./tests/wait
%{__make} docs
%install
@ -141,12 +161,20 @@ cp -pav tests/. %{buildroot}/%{_datadir}/%{name}/test/system
cp bin/imgtype %{buildroot}/%{_bindir}/%{name}-imgtype
cp bin/copy %{buildroot}/%{_bindir}/%{name}-copy
cp bin/tutorial %{buildroot}/%{_bindir}/%{name}-tutorial
cp bin/inet %{buildroot}/%{_bindir}/%{name}-inet
cp bin/dumpspec %{buildroot}/%{_bindir}/%{name}-dumpspec
cp bin/passwd %{buildroot}/%{_bindir}/%{name}-passwd
cp bin/crash %{buildroot}/%{_bindir}/%{name}-crash
cp bin/wait %{buildroot}/%{_bindir}/%{name}-wait
rm %{buildroot}%{_datadir}/%{name}/test/system/tools/build/*
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
# Include check to silence rpmlint.
%check
%files
%license LICENSE vendor/modules.txt
%doc README.md
@ -161,15 +189,12 @@ rm %{buildroot}%{_datadir}/%{name}/test/system/tools/build/*
%{_bindir}/%{name}-imgtype
%{_bindir}/%{name}-copy
%{_bindir}/%{name}-tutorial
%{_bindir}/%{name}-inet
%{_bindir}/%{name}-dumpspec
%{_bindir}/%{name}-passwd
%{_bindir}/%{name}-crash
%{_bindir}/%{name}-wait
%{_datadir}/%{name}/test
%changelog
%if %{defined autochangelog}
%autochangelog
%else
# NOTE: This changelog will be visible on CentOS 8 Stream builds
# Other envs are capable of handling autochangelog
* Fri Jun 16 2023 RH Container Bot <rhcontainerbot@fedoraproject.org>
- Placeholder changelog for envs that are not autochangelog-ready.
- Contact upstream if you need to report an issue with the build.
%endif

View file

@ -1,14 +1,16 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
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}
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

34
plans/main.fmf Normal file
View file

@ -0,0 +1,34 @@
discover:
how: fmf
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
- 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
provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"

View file

@ -1 +1 @@
SHA512 (v1.37.1.tar.gz) = b36dd0c9ccac399550232fe1b7024f8969fa9086efe9cdf8a8ed10ad3c3d3bad4095a7ac17ed41ccb670a781a975dea36f1ad99ba6ae15d7b2b4d728399c5e36
SHA512 (v1.42.2.tar.gz) = adb1de700db9b589639f6fd02cad95d9bedacb9d0363838315f33c978a8c900570d55af95073992ff69cff4f2a9d18776c5d786af294aaa1604144580c957414

View file

@ -1,69 +0,0 @@
#!/bin/bash -e
# Log program and kernel versions
echo "Important package versions:"
(
uname -r
rpm -qa |\
egrep 'buildah|podman|conmon|containers-common|crun|runc|iptable|slirp|aardvark|netavark|containernetworking-plugins|systemd|container-selinux' |\
sort
) | sed -e 's/^/ /'
# Log environment; or at least the useful bits
echo "Environment:"
env | grep -v LS_COLORS= | sort | sed -e 's/^/ /'
export BUILDAH_BINARY=/usr/bin/buildah
export IMGTYPE_BINARY=/usr/bin/buildah-imgtype
export COPY_BINARY=/usr/bin/buildah-copy
export TUTORIAL_BINARY=/usr/bin/buildah-tutorial
###############################################################################
# BEGIN setup/teardown
# Start a registry
pre_bats_setup() {
REGISTRY_FQIN=quay.io/libpod/registry:2
AUTHDIR=/tmp/buildah-tests-auth.$$
mkdir -p $AUTHDIR
CERT=$AUTHDIR/domain.crt
if [ ! -e $CERT ]; then
openssl req -newkey rsa:4096 -nodes -sha256 \
-keyout $AUTHDIR/domain.key -x509 -days 2 \
-out $AUTHDIR/domain.crt \
-subj "/C=US/ST=Foo/L=Bar/O=Red Hat, Inc./CN=registry host certificate" \
-addext subjectAltName=DNS:localhost
fi
if [ ! -e $AUTHDIR/htpasswd ]; then
htpasswd -Bbn testuser testpassword > $AUTHDIR/htpasswd
fi
podman rm -f registry || true
podman run -d -p 5000:5000 \
--name registry \
-v $AUTHDIR:/auth:Z \
-e "REGISTRY_AUTH=htpasswd" \
-e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
-e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/auth/domain.crt \
-e REGISTRY_HTTP_TLS_KEY=/auth/domain.key \
$REGISTRY_FQIN
}
post_bats_teardown() {
podman rm -f registry
}
# END setup/teardown
###############################################################################
# BEGIN actual test
pre_bats_setup
bats /usr/share/buildah/test/system
rc=$?
post_bats_teardown
exit $rc

View file

@ -1,17 +0,0 @@
---
- hosts: localhost
environment:
TMPDIR: /var/tmp
roles:
- role: standard-test-basic
tags:
- classic
- container
required_packages:
- buildah
- buildah-tests
tests:
- root-test:
dir: ./
run: ./test_buildah.sh
timeout: 80m

View file

@ -1 +0,0 @@
- import_playbook: test_buildah.yml

24
tests/tmt/system.fmf Normal file
View file

@ -0,0 +1,24 @@
require:
- buildah-tests
- git-daemon
- slirp4netns
environment:
BUILDAH_BINARY: /usr/bin/buildah
IMGTYPE_BINARY: /usr/bin/buildah-imgtype
INET_BINARY: /usr/bin/buildah-inet
COPY_BINARY: /usr/bin/buildah-copy
TUTORIAL_BINARY: /usr/bin/buildah-tutorial
DUMPSPEC_BINARY: /usr/bin/buildah-dumpspec
PASSWD_BINARY: /usr/bin/buildah-passwd
TMPDIR: /var/tmp
adjust:
- when: initiator != "packit"
environment+:
RELEASE_TESTING: true
/local/root:
summary: System test
test: bash ./system.sh
duration: 60m

18
tests/tmt/system.sh Normal file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -exo pipefail
uname -r
rpm -q \
aardvark-dns \
buildah \
buildah-tests \
conmon \
container-selinux \
containers-common \
crun \
netavark \
systemd
bats /usr/share/buildah/test/system