-
Notifications
You must be signed in to change notification settings - Fork 140
test: Use SRPM as test code source to work with gating test #1670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,32 @@ provision: | |
how: virtual | ||
image: $@{test_disk_image} | ||
prepare: | ||
# Replace package mode with image mode | ||
# Install image mode system on package mode system | ||
# Do not run on image mode VM running on Github CI and Locally | ||
# Run on package mode VM running on Packit and Gating | ||
- how: install | ||
package: | ||
- podman | ||
- skopeo | ||
- jq | ||
- bootc | ||
- system-reinstall-bootc | ||
- expect | ||
- ansible-core | ||
- zstd | ||
when: running_env != image_mode | ||
- how: shell | ||
script: | ||
- pwd && ls -al | ||
- if [[ -d hack ]]; then cd hack && ./provision-packit.sh; fi | ||
- mkdir -p bootc && cp /var/share/test-artifacts/*.src.rpm bootc | ||
- cd bootc && rpm2cpio *.src.rpm | cpio -idmv && rm -f *-vendor.tar.zstd && zstd -d *.tar.zstd && tar -xvf *.tar -C . --strip-components=1 && ls -al | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah. But if we do this, do we need the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right. We don't need buiddep packages, but FedoraCI/OSCI needs those packages. |
||
- pwd && ls -al && cd bootc/hack && ./provision-packit.sh | ||
when: running_env != image_mode | ||
# tmt-reboot and reboot do not work in this case | ||
# reboot in ansible is the only way to reboot in tmt prepare | ||
- how: ansible | ||
playbook: | ||
- https://github.com/bootc-dev/bootc/raw/refs/heads/main/hack/packit-reboot.yml | ||
when: running_env != image_mode | ||
execute: | ||
how: tmt | ||
|
||
|
@@ -71,7 +87,7 @@ execute: | |
test: | ||
- /tmt/tests/test-26-examples-build | ||
adjust: | ||
- when: running_env == packit | ||
- when: running_env != image_mode | ||
enabled: false | ||
because: packit tests use RPM bootc and does not install /usr/lib/bootc/initramfs-setup | ||
|
||
|
@@ -82,6 +98,6 @@ execute: | |
test: | ||
- /tmt/tests/test-27-custom-selinux-policy | ||
adjust: | ||
- when: running_env == packit | ||
- when: running_env != image_mode | ||
enabled: false | ||
because: tmt-reboot does not work with systemd reboot in testing farm environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, this is to get the tests? Ah I see, we're shipping them in the
.tar.zstd
today. But in theory we shouldn't need the full build dependencies just to get those...Is extracting the .src.rpm really what others do here? I guess we could make a
-tests
subpackage?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because in Fedora/OSCI gating, two tasks will be running after our
prepare
:Because those package installations prepares are under our provision prepare, so we need pre-build those packages, which will be used by task 3 and task 4, into our image.