[libvirt PATCH] ci: display installed packages at start of build

Daniel P. Berrangé posted 1 patch 1 week, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20211123164003.81234-1-berrange@redhat.com
.gitlab-ci.yml | 2 ++
1 file changed, 2 insertions(+)

[libvirt PATCH] ci: display installed packages at start of build

Posted by Daniel P. Berrangé 1 week, 5 days ago
When a build fails it is helpful to know what packages were installed,
because by the time we look at the build job output, the original
container image might have changed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d486faca58..6ba11a0431 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,6 +24,7 @@ include: '/ci/gitlab.yml'
     key: "$CI_JOB_NAME"
   before_script:
     - *script_variables
+    - cat /packages.txt
   script:
     - meson setup build --werror $MESON_ARGS || (cat build/meson-logs/meson-log.txt && exit 1)
     - meson dist -C build --no-tests
@@ -43,6 +44,7 @@ include: '/ci/gitlab.yml'
     key: "$CI_JOB_NAME"
   before_script:
     - *script_variables
+    - cat /packages.txt
   script:
     - meson setup build --werror $MESON_OPTS || (cat build/meson-logs/meson-log.txt && exit 1)
     - meson compile -C build
-- 
2.33.1

Re: [libvirt PATCH] ci: display installed packages at start of build

Posted by Michal Prívozník 1 week, 5 days ago
On 11/23/21 17:40, Daniel P. Berrangé wrote:
> When a build fails it is helpful to know what packages were installed,
> because by the time we look at the build job output, the original
> container image might have changed.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>  .gitlab-ci.yml | 2 ++
>  1 file changed, 2 insertions(+)


Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal