gitlab-ci: Conditionally store trace reference images in artifacts

This allows us to have the reference images readily available in case
we require them to diff against produced images in failed runs.

In order to reduce the storage requirements, we store images only for
pushes to master, and only if either the traces.yml file has been
updated, or the push is the first one in the current week. These
conditions ensure that we have an up-to-date version of the images in
recent (thus accessible) artifacts.

This update only affects image storage for successful runs. In case of
failure the produced images continue to be stored as before.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Status Job ID Name Coverage
  Container
passed #2278361
aarch64 manual
arm_build

00:00:21

passed #2278363
aarch64 manual
arm_test

00:00:22

passed #2278364
windows shell 1809 mesa manual
windows_build_vs2019

00:00:18

passed #2278355
manual
x86_build

00:00:22

passed #2278359
manual
x86_build_old

00:00:20

passed #2278356
manual
x86_test-gl

00:00:19

passed #2278358
manual
x86_test-vk

00:01:19

 
  Meson X86 64
passed #2278374
meson-clang

00:05:23

passed #2278371
meson-classic

00:02:31

passed #2278377
meson-clover

00:05:17

passed #2278378
meson-clover-old-llvm

00:07:09

passed #2278368
meson-gallium

00:06:12

passed #2278366
meson-testing

00:02:52

passed #2278380
meson-vulkan

00:06:31

 
  Scons
passed #2278381
scons-win64

00:03:04

 
  Meson Misc
passed #2278384
aarch64
meson-arm64

00:02:19

passed #2278385
aarch64
meson-arm64-build-test

00:03:11

passed #2278383
aarch64
meson-armhf

00:02:22

passed #2278387
meson-i386

00:05:42

passed #2278390
meson-mingw32-x86_64

00:02:27

passed #2278389
kvm
meson-ppc64el

00:05:23

passed #2278388
kvm
meson-s390x

00:04:21

passed #2278386
windows docker 1809 mesa
meson-windows-vs2019

00:11:40

 
  Llvmpipe
passed #2278394
llvmpipe-gles2

00:03:35

passed #2278395
llvmpipe-traces

00:00:51

passed #2278392
piglit-glslparser

00:05:04

passed #2278391
piglit-quick_gl

00:10:04

passed #2278393
piglit-quick_shader

00:06:45

 
  Softpipe
passed #2278396
softpipe-gles2

00:01:22

passed #2278399
softpipe-gles31 1/4

00:03:31

passed #2278397
softpipe-gles3 1/2

00:04:16

passed #2278400
softpipe-gles31 2/4

00:04:14

passed #2278401
softpipe-gles31 3/4

00:05:48

passed #2278402
softpipe-gles31 4/4

00:04:01

passed #2278398
softpipe-gles3 2/2

00:05:26

 
  Freedreno
passed #2278406
google-freedreno-db410c
arm64_a306_gles2

00:06:35

passed #2278407
google-freedreno-db820c
arm64_a530_gles2

00:07:19

passed #2278403
mesa-cheza
arm64_a630_gles2

00:01:30

passed #2278405
mesa-cheza
arm64_a630_gles3

00:05:53

passed #2278404
mesa-cheza
arm64_a630_gles31

00:04:19

 
  Panfrost
passed #2278408
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64

00:07:54

passed #2278409
mesa-ci-aarch64-lava-collabora
panfrost-t760-gles2:armhf

00:15:34

passed #2278410
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64

00:10:28

passed #2278411
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64

00:04:23

 
  Radv
passed #2278412
radv-fossils

00:00:46

 
  Lima
passed #2278413
mesa-ci-aarch64-lava-baylibre
lima-mali400-test:armhf 1/2

00:10:23

passed #2278414
mesa-ci-aarch64-lava-baylibre
lima-mali400-test:armhf 2/2

00:07:27

passed #2278415
mesa-ci-aarch64-lava-baylibre
lima-mali450-test:arm64

00:09:49