2 FDO_UPSTREAM_REPO: mesa/mesa
5 - project: 'freedesktop/ci-templates'
6 ref: a1699326519fd28526485ce93464e33423bac564
7 file: '/templates/debian.yml'
8 - local: '.gitlab-ci/lava-gitlab-ci.yml'
9 - local: '.gitlab-ci/test-source-dep.yml'
24 # When to automatically run the CI
27 # Run pipeline by default for merge requests changing files affecting it
28 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
47 # Run pipeline by default in the main project if files affecting it were
49 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
53 # Allow triggering jobs manually on branches of forked projects
54 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
56 # Otherwise, most jobs won't run
61 - runner_system_failure
62 # Cancel CI run if a newer commit is pushed to the same branch
67 image: debian:stable-slim
76 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
81 name: "mesa_${CI_JOB_NAME}"
85 # Watch out! Artifacts are relative to the build dir.
86 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
89 # Build the CI docker images.
91 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
92 # image doesn't exist yet, the container stage job generates it.
94 # In order to generate a new image, one should generally change the tag.
95 # While removing the image from the registry would also work, that's not
96 # recommended except for ephemeral images during development: Replacing
97 # an image after a significant amount of time might pull in newer
98 # versions of gcc/clang or other packages, which might break the build
99 # with older commits using the same tag.
101 # After merging a change resulting in generating a new image to the
102 # main repository, it's recommended to remove the image from the source
103 # repository's container registry, so that the image from the main
104 # repository's registry will be used there as well.
111 FDO_DISTRIBUTION_VERSION: buster-slim
112 FDO_REPO_SUFFIX: $CI_JOB_NAME
113 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
114 # no need to pull the whole repo to build the container image
117 # Debian 10 based x86 build image
120 - .fdo.container-ifnot-exists@debian
123 FDO_DISTRIBUTION_TAG: &x86_build "2020-03-13"
128 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
132 # Debian 10 based x86 test image for GL
136 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-03-13"
138 # Debian 10 based x86 test image for VK
142 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-03-16"
144 # Debian 9 based x86 build image (old LLVM)
148 FDO_DISTRIBUTION_TAG: &x86_build_old "2019-09-18"
149 FDO_DISTRIBUTION_VERSION: stretch-slim
154 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
158 # Debian 10 based ARM build image
161 - .fdo.container-ifnot-exists@debian@arm64v8
164 FDO_DISTRIBUTION_TAG: &arm_build "2020-03-17-db820c"
169 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
173 # Debian 10 based ARM test image
177 FDO_DISTRIBUTION_TAG: &arm_test "2020-01-30"
182 image: "$CI_REGISTRY_IMAGE/debian/arm_test:$TAG"
190 # Shared between windows and Linux
192 extends: .ci-run-policy
194 name: "mesa_${CI_JOB_NAME}"
197 - _build/meson-logs/*.txt
204 extends: .build-common
206 CCACHE_COMPILERCHECK: "content"
207 CCACHE_COMPRESS: "true"
208 CCACHE_DIR: /cache/mesa/ccache
209 # Use ccache transparently, and print stats before/after
211 - export PATH="/usr/lib/ccache:$PATH"
212 - export CCACHE_BASEDIR="$PWD"
213 - ccache --show-stats
215 - ccache --show-stats
218 extends: .build-common
224 - subprojects/packagecache
234 - .gitlab-ci/meson-build.sh
244 - .gitlab-ci/scons-build.sh
256 -D platforms=x11,drm,surfaceless
259 GALLIUM_DRIVERS: "swrast"
261 BUILDTYPE: "debugoptimized"
265 - .gitlab-ci/meson-build.sh
266 - .gitlab-ci/prepare-artifacts.sh
269 extends: .meson-build
276 -D platforms=x11,wayland,drm,surfaceless
279 -D gallium-extra-hud=true
280 -D gallium-vdpau=true
282 -D gallium-omx=bellagio
286 -D gallium-opencl=disabled
287 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
292 - .gitlab-ci/meson-build.sh
293 - .gitlab-ci/run-shader-db.sh
296 extends: .meson-build
303 -D platforms=x11,wayland,drm,surfaceless
319 -D platforms=surfaceless
323 -D gallium-vdpau=false
324 -D gallium-xvmc=false
325 -D gallium-omx=disabled
328 -D gallium-nine=false
336 VULKAN_DRIVERS: freedreno
337 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
338 BUILDTYPE: "debugoptimized"
352 - .gitlab-ci/meson-build.sh
353 - .gitlab-ci/prepare-artifacts.sh
360 VULKAN_DRIVERS: "freedreno"
364 - .gitlab-ci/meson-build.sh
365 - .gitlab-ci/prepare-artifacts.sh
367 meson-arm64-build-test:
372 VULKAN_DRIVERS: "amd"
374 - .gitlab-ci/meson-build.sh
377 extends: .meson-build
383 GALLIUM_DRIVERS: "auto"
384 VULKAN_DRIVERS: intel,amd,freedreno
386 CXX: "ccache clang++-9"
394 - $ENV:VERSION = "2019\Community"
396 - cmd /C .gitlab-ci\meson-build.bat
399 extends: .scons-build
401 SCONS_TARGET: platform=windows machine=x86_64
402 SCONS_CHECK_COMMAND: "true"
405 extends: .meson-build
414 -D gallium-vdpau=false
415 -D gallium-xvmc=false
416 -D gallium-omx=disabled
419 -D gallium-nine=false
420 -D gallium-opencl=icd
422 - export GALLIUM_DRIVERS="r600,radeonsi"
423 - .gitlab-ci/meson-build.sh
424 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
425 - export GALLIUM_DRIVERS="i915,r600"
426 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
427 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
429 meson-clover-old-llvm:
439 -D platforms=drm,surfaceless
440 GALLIUM_DRIVERS: "i915,r600"
442 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
443 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
444 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
447 extends: .meson-build
454 -D platforms=x11,wayland,drm
458 -D gallium-vdpau=false
459 -D gallium-xvmc=false
460 -D gallium-omx=disabled
463 -D gallium-nine=false
464 -D gallium-opencl=disabled
465 -D b_sanitize=undefined
466 -D c_args=-fno-sanitize-recover=all
467 -D cpp_args=-fno-sanitize-recover=all
468 UBSAN_OPTIONS: "print_stacktrace=1"
469 VULKAN_DRIVERS: intel,amd,freedreno
471 -D vulkan-overlay-layer=true
475 extends: .meson-cross
478 VULKAN_DRIVERS: intel,amd
479 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
481 -D vulkan-overlay-layer=true
484 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
485 - .gitlab-ci/meson-build.sh
494 GALLIUM_DRIVERS: "swrast"
496 # For unknown reasons "too many" installed i386 libraries cause qemu to
497 # crash while executing llvm-config for s390x.
498 - apt-get remove -y libglib2.0-0:i386
499 - dpkg -i /var/cache/apt/archives/$CROSS/*.deb
500 - .gitlab-ci/meson-build.sh
507 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
508 VULKAN_DRIVERS: "amd"
510 meson-mingw32-x86_64:
511 extends: .meson-build
516 GALLIUM_DRIVERS: "swrast"
520 --cross-file=.gitlab-ci/x86_64-w64-mingw32
523 extends: .scons-build
525 SCONS_TARGET: "llvm=1 swr=1"
526 SCONS_CHECK_COMMAND: "scons force_scons=1 ${SCONS_TARGET} check"
528 - SCONS_TARGET="" SCONS_CHECK_COMMAND="scons check force_scons=1" .gitlab-ci/scons-build.sh
529 - LLVM_VERSION=9 .gitlab-ci/scons-build.sh
536 - LLVM_VERSION=3.9 .gitlab-ci/scons-build.sh
542 GIT_STRATEGY: none # testing doesn't build anything from source
544 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
546 - tar -xf artifacts/install.tar
547 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
550 name: "mesa_${CI_JOB_NAME}"
561 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
571 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
582 name: "mesa_${CI_JOB_NAME}"
586 LIBGL_ALWAYS_SOFTWARE: 1
589 - artifacts/piglit/run.sh
592 extends: .piglit-test
597 --process-isolation false
600 -x egl_ext_platform_device
601 -x ext_timer_query@time-elapsed
602 -x glx-multithread-clearbuffer
603 -x glx-multithread-shader-compile
606 PIGLIT_PROFILES: quick_gl
609 extends: .piglit-test
613 PIGLIT_PROFILES: glslparser
616 extends: .piglit-test
620 PIGLIT_PROFILES: quick_shader
624 DEQP_SKIPS: deqp-default-skips.txt
626 - ./artifacts/deqp-runner.sh
643 - ./artifacts/fossilize-runner.sh
650 # Don't use threads inside llvmpipe, we've already got all 4 cores
651 # busy with DEQP_PARALLEL.
653 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
654 LIBGL_ALWAYS_SOFTWARE: "true"
664 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
665 DEQP_SKIPS: deqp-softpipe-skips.txt
666 GALLIUM_DRIVER: "softpipe"
672 extends: softpipe-gles2
678 extends: softpipe-gles2
680 # Rules for tests that should not be present in MRs or the main
681 # project's pipeline (don't block marge or report red on
682 # mesa/mesamaster) but should be present on pipelines in personal
683 # branches (so you can opt in to running the flaky test when you want
687 # Never test in the main project.
688 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
690 # Never test in merge requests.
691 - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
693 # Otherwise, allow testing manually for personal branches.
703 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
704 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
707 FLAKES_CHANNEL: "#freedreno-ci"
714 extends: arm64_a630_gles2
719 extends: arm64_a630_gles2
734 BM_KERNEL: /lava-files/Image.gz
735 BM_DTB: /lava-files/apq8016-sbc.dtb
736 BM_ROOTFS: /lava-files/rootfs-arm64
737 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
738 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
739 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
743 - .gitlab-ci/bare-metal/fastboot.sh
747 - google-freedreno-db410c
749 # Disabled due to flaky results
763 BM_KERNEL: /lava-files/db820c-kernel
764 BM_DTB: /lava-files/db820c.dtb
765 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
766 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
767 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
769 - google-freedreno-db820c
787 .test-radv-fossilize:
792 - ./artifacts/fossilize-runner.sh
793 - ACO_DEBUG=validateir,validatera RADV_PERFTEST=aco ./artifacts/fossilize-runner.sh
795 # Can only be triggered manually on personal branches because RADV is the only
796 # driver that does Vulkan testing at the moment.
797 radv_polaris10_vkcts:
803 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
807 radv-polaris10-fossils:
808 extends: .test-radv-fossilize
810 RADV_FORCE_FAMILY: "polaris10" # Force creating a null device
825 - ./artifacts/tracie-runner-gl.sh
832 - ./artifacts/tracie-runner-vk.sh
839 LIBGL_ALWAYS_SOFTWARE: "true"
840 GALLIUM_DRIVER: "llvmpipe"
841 DEVICE_NAME: "gl-vmware-llvmpipe"
843 radv-polaris10-traces:
849 DEVICE_NAME: "vk-amd-polaris10"