[PATCH 3/4] gitlab: ensure docker output is always displayed in CI

Daniel P. Berrangé posted 4 patches 1 month ago
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Thomas Huth <thuth@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
[PATCH 3/4] gitlab: ensure docker output is always displayed in CI
Posted by Daniel P. Berrangé 1 month ago
Set the new $(DOCKER_V) variable from the previous commit, so that any
CI jobs invoking docker will show the full stdout content. This improves
the ability to diagnose any build failures in CI that involve docker.

For example, when a 'docker build' command fails, it lets us see which
command in the Dockerfile failed and why.

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

diff --git a/.gitlab-ci.d/base.yml b/.gitlab-ci.d/base.yml
index 921c562000..7640a1d52c 100644
--- a/.gitlab-ci.d/base.yml
+++ b/.gitlab-ci.d/base.yml
@@ -28,6 +28,9 @@ variables:
     # we don't need. The --filter options avoid blobs and tree references we aren't going to use
     # and we also avoid fetching tags.
     GIT_FETCH_EXTRA_FLAGS: --filter=blob:none --filter=tree:0 --no-tags --prune --quiet
+    # Ensure docker.py / tests/docker/Makefile.include always displays stdout
+    # from any docker commands to aid debugging of failures
+    DOCKER_V: 1
 
   interruptible: true
 
-- 
2.52.0


Re: [PATCH 3/4] gitlab: ensure docker output is always displayed in CI
Posted by Thomas Huth 2 days, 8 hours ago
On 07/01/2026 14.01, Daniel P. Berrangé wrote:
> Set the new $(DOCKER_V) variable from the previous commit, so that any
> CI jobs invoking docker will show the full stdout content. This improves
> the ability to diagnose any build failures in CI that involve docker.
> 
> For example, when a 'docker build' command fails, it lets us see which
> command in the Dockerfile failed and why.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>   .gitlab-ci.d/base.yml | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/.gitlab-ci.d/base.yml b/.gitlab-ci.d/base.yml
> index 921c562000..7640a1d52c 100644
> --- a/.gitlab-ci.d/base.yml
> +++ b/.gitlab-ci.d/base.yml
> @@ -28,6 +28,9 @@ variables:
>       # we don't need. The --filter options avoid blobs and tree references we aren't going to use
>       # and we also avoid fetching tags.
>       GIT_FETCH_EXTRA_FLAGS: --filter=blob:none --filter=tree:0 --no-tags --prune --quiet
> +    # Ensure docker.py / tests/docker/Makefile.include always displays stdout
> +    # from any docker commands to aid debugging of failures
> +    DOCKER_V: 1

Reviewed-by: Thomas Huth <thuth@redhat.com>