cfe552ec43
Let's print more information about the machine - the list of all installed RPMs and the list of all repositories (including the filenames - that's why find is used). Also, the old WORKSPACE workaround was removed (no longer needed). The timeout for unit tests is now longer and we use the up-to-date RHEL 9 keys. This commit also removes a lot of the tests, see the reasoning inline. The process just took way too long. We have upstream CI and we have also the nightly pipeline so we should be fine even though we remove some bits from here. The repositories were also removed, rhel-9.json is actually not used anymore in recent RHEL versions and the test should just use their own stable snapshots nevertheless. Related: rhbz#2059870
25 lines
936 B
Bash
Executable File
25 lines
936 B
Bash
Executable File
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
TOPDIR=$1
|
|
|
|
# Print some information about the machine
|
|
df -h
|
|
free -h
|
|
rpm -qa
|
|
find /etc/yum.repos.d -type f -print -exec cat {} \;
|
|
|
|
# osbuild-composer-tests contains repo overrides for testing. Override the
|
|
# overrides with latest compose. (We don't want to rely on latest compose
|
|
# upstream as it randomly breaks the CI.)
|
|
cp $TOPDIR/repositories/* /usr/share/tests/osbuild-composer/repositories/
|
|
|
|
# Run only basic smoke tests.
|
|
# Our test-suite is currently very thorough and it builds a lot of images.
|
|
# On some runs, TFT was able to build one image for 25 minutes. Our test
|
|
# suite builds more than 25 images which means that the full test-suite
|
|
# can run for more than 10 hours. That's just too slow and since we are also
|
|
# able to run downstream tests on our much faster upstream infrastructure.
|
|
# I think that it's enough to do just smoke tests here.
|
|
/usr/libexec/tests/osbuild-composer/base_tests.sh
|