Skip to content

Commit 9459a66

Browse files
authored
Merge pull request #638 from henrywang/new_e2e
Test: Run e2e test on Packit
2 parents 58474bb + 309beb1 commit 9459a66

31 files changed

+643
-1277
lines changed

.github/workflows/integration.yml

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

.packit.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
---
2+
specfile_path: contrib/packaging/bootc.spec
3+
4+
files_to_sync:
5+
- contrib/packaging/bootc.spec
6+
- .packit.yaml
7+
8+
upstream_tag_template: v{version}
9+
10+
upstream_package_name: bootc
11+
downstream_package_name: bootc
12+
13+
srpm_build_deps:
14+
- cargo
15+
- git
16+
- zstd
17+
- libzstd-devel
18+
- ostree-devel
19+
- openssl-devel
20+
21+
actions:
22+
# The last setp here is required by Packit to return the archive name
23+
# https://packit.dev/docs/configuration/actions#create-archive
24+
create-archive:
25+
- bash -c "cargo install cargo-vendor-filterer"
26+
- bash -c "cargo xtask spec"
27+
- bash -c "cat target/bootc.spec"
28+
- bash -c "cp target/bootc* contrib/packaging/"
29+
- bash -c "ls -1 target/bootc*.tar.zstd | grep -v 'vendor'"
30+
# Do nothing with spec file. Two steps here are for debugging
31+
fix-spec-file:
32+
- bash -c "cat contrib/packaging/bootc.spec"
33+
- bash -c "ls -al contrib/packaging/"
34+
235
jobs:
36+
# Only add CS10 and RHEL-9 RPM build test
37+
# But no e2e test on CS10 and RHEL-9
38+
- job: copr_build
39+
trigger: pull_request
40+
targets:
41+
- centos-stream-9-x86_64
42+
- centos-stream-9-aarch64
43+
- centos-stream-9-ppc64le
44+
- fedora-40-x86_64
45+
- fedora-40-aarch64
46+
- fedora-40-ppc64le
47+
- fedora-rawhide-x86_64
48+
- fedora-rawhide-aarch64
49+
- fedora-rawhide-ppc64le
50+
- rhel-9-x86_64
51+
- rhel-9-aarch64
52+
353
- job: tests
454
trigger: pull_request
555
targets:
@@ -8,3 +58,21 @@ jobs:
858
tmt_plan: /integration-build
959
skip_build: true
1060
identifier: integration-test
61+
62+
- job: tests
63+
trigger: pull_request
64+
targets:
65+
- centos-stream-9-x86_64
66+
- centos-stream-9-aarch64
67+
- fedora-40-x86_64
68+
tmt_plan: /to-existing-root
69+
identifier: e2e-test-to-existing-root
70+
71+
- job: tests
72+
trigger: pull_request
73+
targets:
74+
- centos-stream-9-x86_64
75+
- centos-stream-9-aarch64
76+
- fedora-40-aarch64
77+
tmt_plan: /to-disk
78+
identifier: e2e-test-to-disk

plans/e2e.fmf

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
discover:
2+
how: fmf
3+
test: e2e
4+
adjust:
5+
- when: arch == x86_64 or arch == aarch64
6+
provision:
7+
hardware:
8+
cpu:
9+
processors: ">= 2"
10+
memory: ">= 6 GB"
11+
virtualization:
12+
is-supported: true
13+
prepare:
14+
- how: shell
15+
script: |
16+
source /etc/os-release
17+
if [[ "$ID" == "centos" ]]; then
18+
# EPEL for genisoimage
19+
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
20+
fi
21+
- how: install
22+
package:
23+
- ansible-core
24+
- firewalld
25+
- podman
26+
- skopeo
27+
- jq
28+
- openssl
29+
- qemu-img
30+
- qemu-kvm
31+
- libvirt
32+
- virt-install
33+
- genisoimage
34+
- how: shell
35+
script: ansible-galaxy collection install https://ansible-collection.s3.amazonaws.com/ansible-posix-1.5.4.tar.gz https://ansible-collection.s3.amazonaws.com/community-general-8.5.0.tar.gz
36+
execute:
37+
how: tmt
38+
39+
/to-existing-root:
40+
summary: Run bootc install to-existing-root and bootc switch test locally (nested)
41+
environment+:
42+
TEST_CASE: to-existing-root
43+
discover+:
44+
test:
45+
- /to-existing-root
46+
adjust+:
47+
- when: arch == ppc64le
48+
enabled: false
49+
50+
/to-disk:
51+
summary: Run bootc install to-disk and bootc upgrade test locally (nested)
52+
environment+:
53+
TEST_CASE: to-disk
54+
discover+:
55+
test:
56+
- /to-disk
57+
adjust+:
58+
- when: arch == ppc64le
59+
enabled: false

plans/install-upgrade.fmf

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

tests/e2e/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## End to end (e2e) Test
2+
3+
### Scenarios
4+
5+
End to end (e2e) test includes `bootc install to-existing-root`, `bootc install to-disk`, `bootc upgrade`, and `bootc switch` tests
6+
7+
* bootc install/upgrade/switch scenario will install, upgrade, and switch bootc image and have some system checking, such as check mount point/permission, run podman with root and rootless, check persistent log, etc.
8+
9+
### Run end to end Test
10+
11+
Test run is drived by [Packit](https://packit.dev/) and running on [Testing-farm](https://docs.testing-farm.io/).

0 commit comments

Comments
 (0)