Compare commits

..

39 commits

Author SHA1 Message Date
Packit
4df4f0c81d [packit] 85 upstream release
Upstream tag: v85
Upstream commit: 1fbd9d97
2023-05-10 08:15:16 +00:00
Packit
857da7d49a [packit] 84 upstream release
Upstream tag: v84
Upstream commit: feb216c0
2023-04-27 13:10:29 +00:00
Packit
87a8adcf42 [packit] 83 upstream release
Upstream tag: v83
Upstream commit: 33597e82

Signed-off-by: Packit <hello@packit.dev>
2023-04-12 20:11:38 +00:00
Packit
eed3274668 [packit] 82 upstream release
Upstream tag: v82
Upstream commit: bae4f776

Signed-off-by: Packit <hello@packit.dev>
2023-03-29 08:15:12 +00:00
Packit
769d7dc43f [packit] 81 upstream release
Upstream tag: v81
Upstream commit: 345b2a59

Signed-off-by: Packit <hello@packit.dev>
2023-02-27 16:42:27 +00:00
Packit
882eeffd38 [packit] 80 upstream release
Upstream tag: v80
Upstream commit: 200c2b01

Signed-off-by: Packit <hello@packit.dev>
2023-02-20 14:40:00 +00:00
Packit
219e8ca984 [packit] 79 upstream release
Upstream tag: v79
Upstream commit: 5eefdc1e

Signed-off-by: Packit <hello@packit.dev>
2023-02-15 08:16:55 +00:00
Packit
48d3d8cc5d [packit] 78 upstream release
Upstream tag: v78
Upstream commit: 16063fff

Signed-off-by: Packit <hello@packit.dev>
2023-02-07 15:52:51 +00:00
Packit
f8cecee8b4 [packit] 77 upstream release
Upstream tag: v77
Upstream commit: db1fa5b3

Signed-off-by: Packit <hello@packit.dev>
2023-01-20 16:06:47 +00:00
Packit
782a9b1925 [packit] 76 upstream release
Upstream tag: v76
Upstream commit: b8e1450a

Signed-off-by: Packit <hello@packit.dev>
2023-01-19 07:49:58 +00:00
Packit
bf36bacaf1 [packit] 75 upstream release
Upstream tag: v75
Upstream commit: fdf064b1

Signed-off-by: Packit <hello@packit.dev>
2023-01-04 08:15:53 +00:00
Packit
a1ed31ae47 [packit] 74 upstream release
Upstream tag: v74
Upstream commit: 18c69d26

Signed-off-by: Packit <hello@packit.dev>
2022-12-21 08:16:32 +00:00
Packit
eee2c3c5d4 [packit] 73 upstream release
Upstream tag: v73
Upstream commit: 4df05b85

Signed-off-by: Packit <hello@packit.dev>
2022-12-07 08:16:41 +00:00
Packit
d3e01e2a2c [packit] 72 upstream release
Upstream tag: v72
Upstream commit: fb541293

Signed-off-by: Packit <hello@packit.dev>
2022-11-23 08:17:58 +00:00
Packit
e8d66989cb [packit] 71 upstream release
Upstream tag: v71
Upstream commit: 6cdc2736

Signed-off-by: Packit <hello@packit.dev>
2022-11-09 08:20:16 +00:00
Packit
ce38e1baa0 [packit] 70 upstream release
Upstream tag: v70
Upstream commit: 976fbe17

Signed-off-by: Packit <hello@packit.dev>
2022-10-26 08:19:40 +00:00
Packit
09defe37d4 [packit] 69 upstream release
Upstream tag: v69
Upstream commit: fcaad046

Signed-off-by: Packit <hello@packit.dev>
2022-10-12 08:20:55 +00:00
Packit
40f4a308d8 [packit] 68 upstream release
Upstream tag: v68
Upstream commit: bc06a037

Signed-off-by: Packit <hello@packit.dev>
2022-09-28 08:22:43 +00:00
Packit
3e43f1e4c4 [packit] 67 upstream release
Upstream tag: v67
Upstream commit: 77153698

Signed-off-by: Packit <hello@packit.dev>
2022-09-14 08:19:09 +00:00
Packit
1e1beb5075 [packit] 66 upstream release
Upstream tag: v66
Upstream commit: f38ddb5f

Signed-off-by: Packit <hello@packit.dev>
2022-08-31 08:16:51 +00:00
Packit
a8061fc5a9 [packit] 65 upstream release
Upstream tag: v65
Upstream commit: ba218f78

Signed-off-by: Packit <hello@packit.dev>
2022-08-26 17:14:01 +00:00
Packit
e55a8f389e [packit] 64 upstream release
Upstream tag: v64
Upstream commit: 07d36053

Signed-off-by: Packit <hello@packit.dev>
2022-08-17 08:20:56 +00:00
Packit
c0e1c19283 [packit] 63 upstream release
Upstream tag: v63
Upstream commit: f3e2c8d5

Signed-off-by: Packit <hello@packit.dev>
2022-08-03 08:18:36 +00:00
Packit
fad8c12ee7 [packit] 62 upstream release
Upstream tag: v62
Upstream commit: 376cbffd

Signed-off-by: Packit <hello@packit.dev>
2022-07-27 09:08:22 +00:00
Packit
15699ad17a [packit] 61 upstream release
Upstream tag: v61
Upstream commit: 51315a98

Signed-off-by: Packit <hello@packit.dev>
2022-07-20 08:18:21 +00:00
Packit
c12286c3af [packit] 60 upstream release
Upstream tag: v60
Upstream commit: c379dccd

Signed-off-by: Packit <hello@packit.dev>
2022-07-06 08:27:42 +00:00
Packit
06223ab96d [packit] 59 upstream release
Upstream tag: v59
Upstream commit: 383e9320

Signed-off-by: Packit <hello@packit.dev>
2022-06-22 08:19:53 +00:00
Packit
c901340d8e [packit] 58 upstream release
Upstream tag: v58
Upstream commit: 20b8c67c

Signed-off-by: Packit <hello@packit.dev>
2022-06-08 13:34:54 +00:00
Packit
308e832293 [packit] 57 upstream release
Upstream tag: v57
Upstream commit: 7b0e1fe5

Signed-off-by: Packit <hello@packit.dev>
2022-05-25 13:31:36 +00:00
Packit
2e4cb04277 [packit] 56 upstream release
Upstream tag: v56
Upstream commit: ac2a194c

Signed-off-by: Packit <hello@packit.dev>
2022-05-11 13:38:46 +00:00
Packit
0f92d53e28 [packit] 53.1 upstream release
Upstream tag: v53.1
Upstream commit: 88fe0bce

Signed-off-by: Packit <hello@packit.dev>
2022-04-28 21:43:02 +00:00
Packit
525b7a0e04 [packit] 55 upstream release
Upstream tag: v55
Upstream commit: 090f7685

Signed-off-by: Packit <hello@packit.dev>
2022-04-27 13:30:39 +00:00
Packit
d859043b24 [packit] 54 upstream release
Upstream tag: v54
Upstream commit: 008d013e

Signed-off-by: Packit <hello@packit.dev>
2022-04-13 13:23:57 +00:00
Packit Service
4b6e520e57 [packit] 53 upstream release
Upstream tag: v53
Upstream commit: 31eed797

Signed-off-by: Packit Service <user-cont-team+packit-service@redhat.com>
2022-03-24 07:44:06 +00:00
Packit Service
c6393f3d96 [packit] 52 upstream release
Upstream tag: v52
Upstream commit: d8f36b55

Signed-off-by: Packit Service <user-cont-team+packit-service@redhat.com>
2022-03-04 15:49:58 +00:00
Packit Service
795c83ac8b [packit] 51 upstream release
Upstream tag: v51
Upstream commit: 00c6bf23

Signed-off-by: Packit Service <user-cont-team+packit-service@redhat.com>
2022-03-02 13:35:59 +00:00
Packit Service
deefd5f07b [packit] 50 upstream release
Upstream tag: v50
Upstream commit: 6300a80c

Signed-off-by: Packit Service <user-cont-team+packit-service@redhat.com>
2022-02-27 19:01:48 +00:00
Packit Service
90cbe216bf [packit] 49 upstream release
Upstream tag: v49
Upstream commit: 8f75d1e7

Signed-off-by: Packit Service <user-cont-team+packit-service@redhat.com>
2022-02-23 19:13:49 +00:00
Packit Service
36323ee0fe [packit] 48 upstream release
Upstream tag: v48
Upstream commit: e9d02a27

Signed-off-by: Packit Service <user-cont-team+packit-service@redhat.com>
2022-02-16 14:20:13 +00:00
23 changed files with 1420 additions and 38030 deletions

View file

@ -1 +0,0 @@
1

67
.gitignore vendored
View file

@ -83,70 +83,3 @@
/osbuild-83.tar.gz
/osbuild-84.tar.gz
/osbuild-85.tar.gz
/osbuild-86.tar.gz
/osbuild-87.tar.gz
/osbuild-88.tar.gz
/osbuild-89.tar.gz
/osbuild-90.tar.gz
/osbuild-91.tar.gz
/osbuild-92.tar.gz
/osbuild-93.tar.gz
/osbuild-94.tar.gz
/osbuild-95.tar.gz
/osbuild-96.tar.gz
/osbuild-97.tar.gz
/osbuild-98.tar.gz
/osbuild-99.tar.gz
/osbuild-100.tar.gz
/osbuild-101.tar.gz
/osbuild-102.tar.gz
/osbuild-103.tar.gz
/osbuild-104.tar.gz
/osbuild-105.tar.gz
/osbuild-106.tar.gz
/osbuild-109.tar.gz
/osbuild-110.tar.gz
/osbuild-111.tar.gz
/osbuild-112.tar.gz
/osbuild-113.tar.gz
/osbuild-114.tar.gz
/osbuild-115.tar.gz
/osbuild-117.tar.gz
/osbuild-118.tar.gz
/osbuild-119.tar.gz
/osbuild-122.tar.gz
/osbuild-123.tar.gz
/osbuild-124.tar.gz
/osbuild-125.tar.gz
/osbuild-126.tar.gz
/osbuild-129.tar.gz
/osbuild-130.tar.gz
/osbuild-131.tar.gz
/osbuild-132.tar.gz
/osbuild-135.tar.gz
/osbuild-136.tar.gz
/osbuild-137.tar.gz
/osbuild-138.tar.gz
/osbuild-139.tar.gz
/osbuild-140.tar.gz
/osbuild-141.tar.gz
/osbuild-142.tar.gz
/osbuild-143.tar.gz
/osbuild-144.tar.gz
/osbuild-146.tar.gz
/osbuild-147.tar.gz
/osbuild-149.tar.gz
/osbuild-151.tar.gz
/osbuild-152.tar.gz
/osbuild-153.tar.gz
/osbuild-155.tar.gz
/osbuild-156.tar.gz
/osbuild-158.tar.gz
/osbuild-159.tar.gz
/osbuild-161.tar.gz
/osbuild-162.tar.gz
/osbuild-163.tar.gz
/osbuild-164.tar.gz
/osbuild-166.tar.gz
/osbuild-167.tar.gz
/osbuild-169.tar.gz

View file

@ -17,23 +17,15 @@ srpm_build_deps: []
actions:
get-current-version: bash -c "git describe --tags --abbrev=0 | sed 's|v||'"
# Handle only releases without a "dot" (e.g. v88.2), since "dot" releases should never be released to Fedora
# "dot" releases are used only for "backports" to RHEL.
upstream_tag_include: 'v\d+'
jobs:
- &copr
job: copr_build
trigger: pull_request
targets:
- centos-stream-8-aarch64
- centos-stream-8-x86_64
- centos-stream-9-aarch64
- centos-stream-9-s390x
- centos-stream-9-pcc64le
- centos-stream-9-x86_64
- centos-stream-10-aarch64
- centos-stream-10-s390x
- centos-stream-10-ppc64le
- centos-stream-10-x86_64
- epel-8-aarch64
- epel-8-x86_64
- epel-9-aarch64
@ -47,11 +39,6 @@ jobs:
branch: main
owner: "@osbuild" # copr repo namespace
project: osbuild # copr repo name so you can consume the builds
- <<: *copr
trigger: release
branch: main
owner: "@osbuild" # copr repo namespace
project: osbuild-stable # copr repo name so you can consume the builds
- job: propose_downstream
trigger: release
dist_git_branches:

View file

@ -0,0 +1,23 @@
From e8c219036302817882d469400b08cbac4b93a781 Mon Sep 17 00:00:00 2001
From: Christian Kellner <christian@kellner.me>
Date: Fri, 20 Aug 2021 14:18:28 +0200
Subject: [PATCH 1/3] runners: add Fedora 36 runner
New `org.osbuild.fedora36` which is re-using the f30 runner.
Needed since Fedora 36 was branched already.
---
runners/org.osbuild.fedora36 | 1 +
1 file changed, 1 insertion(+)
create mode 120000 runners/org.osbuild.fedora36
diff --git a/runners/org.osbuild.fedora36 b/runners/org.osbuild.fedora36
new file mode 120000
index 0000000..d46777b
--- /dev/null
+++ b/runners/org.osbuild.fedora36
@@ -0,0 +1 @@
+org.osbuild.fedora30
\ No newline at end of file
--
2.21.1 (Apple Git-122.3)

View file

@ -1,40 +0,0 @@
From 54c0a2cce45ad385d793d494e62222cd254a866a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= <thozza@redhat.com>
Date: Wed, 31 Jul 2024 18:12:24 +0200
Subject: [PATCH] Test/dnf4.mark: adjust the test for markings used by DNF5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When I rolled back from using 'dnf4', to check package markings, to
using 'dnf', I didn't verify the test case on Fedora Rawhide with DNF5.
It turns out that the strings reported by DNF5 differ and make the test
case fail. This time I tested the change on Fedora Rawhide with DNF5 and
it works.
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
---
test/run/test_stages.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/run/test_stages.py b/test/run/test_stages.py
index dc91bf8f..7fec10c8 100644
--- a/test/run/test_stages.py
+++ b/test/run/test_stages.py
@@ -565,9 +565,11 @@ class TestStages(test.TestBase):
raise
if package == "dnf":
- assert mark == "user"
+ # dnf4 marks packages as 'user', while dnf5 marks them as 'User'
+ assert mark in ("user", "User")
else:
- assert mark == "unknown"
+ # dnf4 marks packages as 'unknown', while dnf5 marks them as 'External User'
+ assert mark in ("unknown", "External User")
@unittest.skipUnless(test.TestBase.has_filesystem_support("btrfs"), "btrfs needed")
def test_btrfs(self):
--
2.45.2

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.14.0.post1.dev2+g6506c7467.
The file was generated using packit 0.75.0.post9+g9ce4c01.

File diff suppressed because it is too large Load diff

View file

@ -1,10 +0,0 @@
summary: Run osbuild integration tests
prepare:
how: install
package:
- osbuild
discover:
how: fmf
filter: tag:integration-test
execute:
how: tmt

View file

@ -1,13 +0,0 @@
summary: Run osbuild unit tests from dist-git sources
prepare:
how: install
package:
- git
- make
- osbuild
discover:
how: fmf
dist-git-source: true
filter: tag:unit-test
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (osbuild-169.tar.gz) = 981b6dae05d0f1fe0475549b5c72c2adafb656a7b9f3dbdf64fe660fe0852166bf327f654192f7f83583e2d559590b98dac8aba226e8203c3a0af274d51b33cf
SHA512 (osbuild-85.tar.gz) = 04b1dcff2aeab2feb5ac35cfb6cd823c515af1886c1a59966e2353b2c47eb0d1eda63cf8e54785ae93195d7ffef311df7e068f263166606b7c7948f518e39462

1109
tests/fedora-boot.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,52 +0,0 @@
#!/usr/bin/bash
set -euxo pipefail
MANIFESTS_DIR=$1
# check that MANIFESTS_DIR is a directory
if [ ! -d "$MANIFESTS_DIR" ]; then
echo "Error: $MANIFESTS_DIR is not a directory"
exit 1
fi
# ensure that we are running on x86_64 architecture
if [ "$(uname -m)" != "x86_64" ]; then
echo "Error: this script is only supported on x86_64 architecture"
exit 1
fi
. /etc/os-release
case "${ID}-${VERSION_ID}" in
fedora-*)
IMAGE_MANIFEST="${MANIFESTS_DIR}/fedora.json"
;;
rhel-8.*)
IMAGE_MANIFEST="${MANIFESTS_DIR}/rhel-8.json"
;;
rhel-9.*)
IMAGE_MANIFEST="${MANIFESTS_DIR}/rhel-9.json"
;;
centos-8)
IMAGE_MANIFEST="${MANIFESTS_DIR}/centos-8.json"
;;
centos-9)
IMAGE_MANIFEST="${MANIFESTS_DIR}/centos-9.json"
;;
centos-10)
IMAGE_MANIFEST="${MANIFESTS_DIR}/centos-10.json"
;;
*)
echo "Error: unsupported OS: ${ID}-${VERSION_ID}"
exit 1
;;
esac
OUTPUT_DIR=/var/tmp/osbuild-output
STORE_DIR=/var/tmp/osbuild-store
sudo mkdir -p "${OUTPUT_DIR}"
sudo mkdir -p "${STORE_DIR}"
# all the images are built with qcow2 format, so export it
EXPORT_PIPELINE="qcow2"
sudo osbuild --output-directory "${OUTPUT_DIR}" --store "${STORE_DIR}" --export "${EXPORT_PIPELINE}" "${IMAGE_MANIFEST}"

View file

@ -1,4 +0,0 @@
summary: Build simple image using osbuild
tag: integration-test
duration: 1h
test: ./build-images.sh ./manifests

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

25
tests/tests.yml Normal file
View file

@ -0,0 +1,25 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- classic
required_packages:
- osbuild
- git
- make
- python3-mako
- python3-pytest
tests:
- smoke:
dir: smoke
run: osbuild --help
- unit:
dir: source
run: python3 -m pytest test/mod
- image:
dir: tests
run: osbuild fedora-boot.json --store=/var/tmp/osbuild/store --output-directory=/var/tmp/osbuild/out

View file

@ -1,4 +0,0 @@
summary: Run osbuild unit tests from dist-git sources
tag: unit-test
duration: 4h
test: ./prep-host-environment.sh; sudo chcon $(matchpathcon -n /usr/bin/osbuild) ./run-unit-tests.sh; ./run-unit-tests.sh

View file

@ -1,35 +0,0 @@
#!/usr/bin/bash
# Prepare the host environment for running the osbuild unit tests.
# This includes installing missing dependencies and tools.
set -euxo pipefail
source /etc/os-release
# Move to the checked out git repo with the test plans
# this should be the root of the dist-git repo
cd "${TMT_TREE}"
# install all test dependencies
sudo dnf install -y \
rpmdevtools \
python3-mako \
python3-pip \
rpm-ostree \
dosfstools \
gdisk \
python3-tomli-w
sudo dnf builddep -y osbuild.spec
# Install pytst from pip, because the version in some RHEL / CentOS releases is too old
sudo pip3 install pytest
# Make sure that /usr/lib/systemd/boot/efi/linuxx64.efi.stub is available to enable pe32p tests
case "${ID}-${VERSION_ID}" in
rhel-8.* | centos-8)
sudo dnf install -y systemd-udev
;;
*)
sudo dnf install -y systemd-boot-unsigned
;;
esac

View file

@ -1,55 +0,0 @@
#!/usr/bin/bash
# Execute osbuild unit tests from a checked out dist-git repo
set -euxo pipefail
source /etc/os-release
# The 'test/run/test_assemblers.py::test_tar' test case uses system tar to extract the built tar archive.
# However, files in the tar archive can have SELinux context not present in the system policy. Therefore,
# in order for the system tar to be able to set it when extracting the archive, it must be labeled with
# 'install_exec_t' type.
ORIGINAL_TAR_CONTEXT="$(matchpathcon -n "$(which tar)")"
sudo chcon "system_u:object_r:install_exec_t:s0" "$(which tar)"
function restore_tar_context() {
sudo chcon "${ORIGINAL_TAR_CONTEXT}" "$(which tar)"
}
trap restore_tar_context EXIT
# Run the unit tests
# Note:
# - Ignore the boot test, because it requires qemu-system-x86_64 not available on all distributions.
# - Ignore source code tests, which run linters, since we can't ensure that all linters are available
# and of the same version as in upstream.
# - Explicitly mark btrfs as unsupported on CentOS / RHEL
if [ "${ID}" == "centos" ] || [ "${ID}" == "rhel" ]; then
UNSUPPORTED_FS="--unsupported-fs btrfs"
fi
TEST_SELECTION_EXPR="not (TestBoot and boot)"
# disable some tests on RHEL-8
if ([ "${ID}" == "rhel" ] || [ "${ID}" == "centos" ]) && [ "${VERSION_ID%%.*}" == "8" ]; then
# qemu-img info in RHEL-8 produces "raw" as the image format for "vdi" images, which causes tests to fail. Skip it.
TEST_SELECTION_EXPR="${TEST_SELECTION_EXPR} and not (test_qemu[ext4-vdi] or test_qemu[xfs-vdi])"
TEST_SELECTION_EXPR="${TEST_SELECTION_EXPR} and not (TestStages and test_qemu)"
fi
# Move to the directory with sources
cd "${TMT_SOURCE_DIR}"
# Extract the Source0 basename without extension
SRC_DIR=$(spectool --source 0 osbuild.spec | sed 's/.\+\(osbuild-[0-9]\+\)\.tar\.gz/\1/')
# Move to the extracted sources directory (patches are applied by default)
cd "${SRC_DIR}"
sudo python3 -m pytest \
--rootdir "$(pwd)" \
--ignore "$(pwd)/test/src" \
${UNSUPPORTED_FS:-} \
-k "${TEST_SELECTION_EXPR}" \
-v \
"$(pwd)/test/"