[libvirt PATCH 1/1] ci: integration: Expose installed packages on failure

Erik Skultety eskultet at redhat.com
Wed Apr 13 14:57:34 UTC 2022


Since the VM template images are updated only once during the libvirt
release cycle in order to keep a stable/reproducible environment for
the test suite, it's necessary to dump the list of installed packages
on failure, so that anyone can then see what package versions were
installed in the environment when the test failed.

Signed-off-by: Erik Skultety <eskultet at redhat.com>
---
 ci/integration.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ci/integration.yml b/ci/integration.yml
index 17f20b3945..cb620f625f 100644
--- a/ci/integration.yml
+++ b/ci/integration.yml
@@ -33,6 +33,7 @@
   after_script:
     - test "$CI_JOB_STATUS" = "success" && exit 0;
     - test -e "$SCRATCH_DIR"/avocado && sudo mv "$SCRATCH_DIR"/avocado/latest/test-results logs/avocado;
+    - rpm -qa | sort > logs/packages.txt
     - sudo coredumpctl info --no-pager > logs/coredumpctl.txt
     - sudo mv /var/log/libvirt logs/libvirt
     - sudo chown -R $(whoami):$(whoami) logs
-- 
2.34.1



More information about the libvir-list mailing list