[PATCH libdrm] CI: Capture test logs as GitLab artifacts

Daniel Vetter daniel at ffwll.ch
Thu Sep 6 10:38:46 UTC 2018


On Thu, Sep 06, 2018 at 11:01:17AM +0100, Daniel Stone wrote:
> GitLab CI already captures all the stdout/stderr output from the build
> process as the log. However, some other important information is hidden
> in other log files.
> 
> Taken from Wayland, capture logs from the configuration process as well
> as from every check.
> 
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> Cc: Rodrigo Vivi <rodrigo.vivi at gmail.com>
> Cc: Lucas De Marchi <lucas.de.marchi at gmail.com>
> Cc: Eric Engeström <eric.engestrom at intel.com>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>

I think there's also an option to capture all non-tracked files when the
build fails. For the lazy :-) But this looks good too.

Acked-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
>  .gitlab-ci.yml | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index eee6abfc..50ec8527 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -1,6 +1,29 @@
> +.artifacts-meson: &artifacts-meson
> +  when: always
> +  paths:
> +   - _build/meson-logs
> +
> +.artifacts-autotools: &artifacts-autotools
> +  when: always
> +  paths:
> +    - _build/*.log
> +    - _build/amdgpu/*.log
> +    - _build/etnaviv/*.log
> +    - _build/exynos/*.log
> +    - _build/freedreno/*.log
> +    - _build/intel/*.log
> +    - _build/libkms/*.log
> +    - _build/nouveau/*.log
> +    - _build/omap/*.log
> +    - _build/radeon/*.log
> +    - _build/tegra/*.log
> +    - _build/tests/*.log
> +    - _build/tests/*/*.log
> +
>  latest-meson:
>    stage: build
>    image: base/archlinux:latest
> +  artifacts: *artifacts-meson
>    before_script:
>      - pacman -Syu --noconfirm --needed
>          base-devel
> @@ -35,6 +58,7 @@ latest-meson:
>  latest-autotools:
>    stage: build
>    image: base/archlinux:latest
> +  artifacts: *artifacts-autotools
>    before_script:
>      - pacman -Syu --noconfirm --needed
>          base-devel
> @@ -69,6 +93,7 @@ latest-autotools:
>  oldest-meson:
>    stage: build
>    image: debian:stable
> +  artifacts: *artifacts-meson
>    before_script:
>      - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
>          'path-exclude=/usr/share/doc/*'
> @@ -125,6 +150,7 @@ oldest-meson:
>  oldest-autotools:
>    stage: build
>    image: debian:stable
> +  artifacts: *artifacts-autotools
>    before_script:
>      - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
>          'path-exclude=/usr/share/doc/*'
> -- 
> 2.19.0.rc0
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list