gitlab-ci: More stable URL for kernel and ramdisk artifacts, for LAVA
[mesa.git] / .gitlab-ci.yml
1 variables:
2 FDO_UPSTREAM_REPO: mesa/mesa
3 CI_PRE_CLONE_SCRIPT: |-
4 set -o xtrace
5 /usr/bin/wget -q -O- ${CI_PROJECT_URL}/-/raw/${CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh | sh -
6 set +o xtrace
7
8 include:
9 - project: 'freedesktop/ci-templates'
10 ref: &ci-templates-sha 52dd4a94044449c8481d18dcdc221a3c636366d2
11 file: '/templates/debian.yml'
12 - project: 'freedesktop/ci-templates'
13 ref: *ci-templates-sha
14 file: '/templates/alpine.yml'
15 - local: '.gitlab-ci/lava-gitlab-ci.yml'
16 - local: '.gitlab-ci/test-source-dep.yml'
17
18 stages:
19 - container+docs
20 - container-2
21 - git-archive
22 - deploy
23 - meson-x86_64
24 - scons
25 - meson-misc
26 - llvmpipe
27 - softpipe
28 - freedreno
29 - panfrost
30 - radv
31 - lima
32 - virgl
33 - success
34
35 .docs-base:
36 extends: .ci-run-policy
37 image: alpine
38 script:
39 - apk --no-cache add py3-pip graphviz
40 - pip3 install sphinx sphinx_rtd_theme
41 - sphinx-build -b html docs public
42
43 pages:
44 extends: .docs-base
45 stage: deploy
46 artifacts:
47 paths:
48 - public
49 rules:
50 - if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_REF_NAME == "master"'
51 changes: &docs-or-ci
52 - docs/**/*
53 - .gitlab-ci.yml
54 when: always
55 # Other cases default to never
56
57 test-docs:
58 extends: .docs-base
59 stage: container+docs
60 rules:
61 - if: '$CI_PROJECT_NAMESPACE == "mesa"'
62 when: never
63 - if: '$GITLAB_USER_LOGIN == "marge-bot"'
64 changes: *docs-or-ci
65 when: on_success
66 - changes: *docs-or-ci
67 when: manual
68 # Other cases default to never
69
70 # When to automatically run the CI
71 .ci-run-policy:
72 rules:
73 # If any files affecting the pipeline are changed, build/test jobs run
74 # automatically once all dependency jobs have passed
75 - changes: &all_paths
76 - VERSION
77 - bin/git_sha1_gen.py
78 - bin/install_megadrivers.py
79 - bin/meson_get_version.py
80 - bin/symbols-check.py
81 # GitLab CI
82 - .gitlab-ci.yml
83 - .gitlab-ci/**/*
84 # Meson
85 - meson*
86 - build-support/**/*
87 - subprojects/**/*
88 # SCons
89 - SConstruct
90 - scons/**/*
91 - common.py
92 # Source code
93 - include/**/*
94 - src/**/*
95 when: on_success
96 # Otherwise, build/test jobs won't run
97 - when: never
98 retry:
99 max: 2
100 when:
101 - runner_system_failure
102 # Cancel CI run if a newer commit is pushed to the same branch
103 interruptible: true
104
105 success:
106 stage: success
107 image: debian:stable-slim
108 rules:
109 - if: '$CI_PROJECT_NAMESPACE == "mesa"'
110 when: never
111 - if: '$GITLAB_USER_LOGIN == "marge-bot"'
112 changes: *docs-or-ci
113 when: never
114 - changes: *all_paths
115 when: never
116 - when: on_success
117 variables:
118 GIT_STRATEGY: none
119 script:
120 - echo "Dummy job to make sure every merge request pipeline runs at least one job"
121
122
123 .ci-deqp-artifacts:
124 artifacts:
125 name: "mesa_${CI_JOB_NAME}"
126 when: always
127 untracked: false
128 paths:
129 # Watch out! Artifacts are relative to the build dir.
130 # https://gitlab.com/gitlab-org/gitlab-ce/commit/8788fb925706cad594adf6917a6c5f6587dd1521
131 - artifacts
132
133 # Build the CI docker images.
134 #
135 # FDO_DISTRIBUTION_TAG is the tag of the docker image used by later stage jobs. If the
136 # image doesn't exist yet, the container stage job generates it.
137 #
138 # In order to generate a new image, one should generally change the tag.
139 # While removing the image from the registry would also work, that's not
140 # recommended except for ephemeral images during development: Replacing
141 # an image after a significant amount of time might pull in newer
142 # versions of gcc/clang or other packages, which might break the build
143 # with older commits using the same tag.
144 #
145 # After merging a change resulting in generating a new image to the
146 # main repository, it's recommended to remove the image from the source
147 # repository's container registry, so that the image from the main
148 # repository's registry will be used there as well.
149
150 .container:
151 stage: container+docs
152 extends:
153 - .ci-run-policy
154 rules:
155 # Run pipeline by default in the main project if any CI pipeline
156 # configuration files were changed, to ensure docker images are up to date
157 - if: '$CI_PROJECT_PATH == "mesa/mesa"'
158 changes:
159 - .gitlab-ci.yml
160 - .gitlab-ci/**/*
161 when: on_success
162 # Run pipeline by default if it was triggered by Marge Bot, is for a
163 # merge request, and any files affecting the pipeline were changed
164 - if: '$GITLAB_USER_LOGIN == "marge-bot" && $CI_PROJECT_PATH != "mesa/mesa"'
165 changes:
166 *all_paths
167 when: on_success
168 # Run pipeline by default in the main project if it was not triggered by
169 # Marge Bot, and any files affecting the pipeline were changed
170 - if: '$GITLAB_USER_LOGIN != "marge-bot" && $CI_PROJECT_PATH == "mesa/mesa"'
171 changes:
172 *all_paths
173 when: on_success
174 # Allow triggering jobs manually in other cases if any files affecting the
175 # pipeline were changed
176 - changes:
177 *all_paths
178 when: manual
179 # Otherwise, container jobs won't run
180 - when: never
181 variables:
182 FDO_DISTRIBUTION_VERSION: buster-slim
183 FDO_REPO_SUFFIX: "debian/$CI_JOB_NAME"
184 FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/${CI_JOB_NAME}.sh'
185 # no need to pull the whole repo to build the container image
186 GIT_STRATEGY: none
187
188 # Debian 10 based x86 build image base
189 x86_build-base:
190 extends:
191 - .fdo.container-build@debian
192 - .container
193 variables:
194 FDO_DISTRIBUTION_TAG: &x86_build-base "2020-06-12"
195
196 .use-x86_build-base:
197 extends:
198 - x86_build-base
199 - .ci-run-policy
200 stage: container-2
201 variables:
202 BASE_TAG: *x86_build-base
203 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_build-base:$BASE_TAG"
204 needs:
205 - x86_build-base
206
207 # Debian 10 based x86 main build image
208 x86_build:
209 extends:
210 - .use-x86_build-base
211 variables:
212 FDO_DISTRIBUTION_TAG: &x86_build "2020-06-02"
213
214 .use-x86_build:
215 variables:
216 TAG: *x86_build
217 image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
218 needs:
219 - x86_build-base
220 - x86_build
221
222 # Debian 10 based i386 cross-build image
223 i386_build:
224 extends:
225 - .use-x86_build-base
226 variables:
227 FDO_DISTRIBUTION_TAG: &i386_build "2020-06-02"
228
229 .use-i386_build:
230 variables:
231 TAG: *i386_build
232 image: "$CI_REGISTRY_IMAGE/debian/i386_build:$TAG"
233 needs:
234 - x86_build-base
235 - i386_build
236
237 # Debian 10 based ppc64el cross-build image
238 ppc64el_build:
239 extends:
240 - .use-x86_build-base
241 variables:
242 FDO_DISTRIBUTION_TAG: &ppc64el_build "2020-06-02"
243
244 .use-ppc64el_build:
245 variables:
246 TAG: *ppc64el_build
247 image: "$CI_REGISTRY_IMAGE/debian/ppc64el_build:$TAG"
248 needs:
249 - x86_build-base
250 - ppc64el_build
251
252 # Debian 10 based s390x cross-build image
253 s390x_build:
254 extends:
255 - .use-x86_build-base
256 variables:
257 FDO_DISTRIBUTION_TAG: &s390x_build "2020-06-02"
258
259 .use-s390x_build:
260 variables:
261 TAG: *s390x_build
262 image: "$CI_REGISTRY_IMAGE/debian/s390x_build:$TAG"
263 needs:
264 - x86_build-base
265 - s390x_build
266
267 # Debian 10 based x86 test image base
268 x86_test-base:
269 extends: x86_build-base
270 variables:
271 FDO_DISTRIBUTION_TAG: &x86_test-base "2020-06-02"
272
273 .use-x86_test-base:
274 extends:
275 - x86_build-base
276 - .ci-run-policy
277 stage: container-2
278 variables:
279 BASE_TAG: *x86_test-base
280 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/x86_test-base:$BASE_TAG"
281 needs:
282 - x86_test-base
283
284 # Debian 10 based x86 test image for GL
285 x86_test-gl:
286 extends: .use-x86_test-base
287 variables:
288 FDO_DISTRIBUTION_TAG: &x86_test-gl "2020-06-23-virgl"
289
290 # Debian 10 based x86 test image for VK
291 x86_test-vk:
292 extends: .use-x86_test-base
293 variables:
294 FDO_DISTRIBUTION_TAG: &x86_test-vk "2020-06-18-vkcts"
295
296 # Debian 9 based x86 build image (old LLVM)
297 x86_build_old:
298 extends: x86_build-base
299 variables:
300 FDO_DISTRIBUTION_TAG: &x86_build_old "2020-06-12"
301 FDO_DISTRIBUTION_VERSION: stretch-slim
302
303 .use-x86_build_old:
304 variables:
305 TAG: *x86_build_old
306 image: "$CI_REGISTRY_IMAGE/debian/x86_build_old:$TAG"
307 needs:
308 - x86_build_old
309
310 # Debian 10 based ARM build image
311 arm_build:
312 extends:
313 - .fdo.container-build@debian@arm64v8
314 - .container
315 variables:
316 FDO_DISTRIBUTION_TAG: &arm_build "2020-07-07"
317
318 .use-arm_build:
319 variables:
320 TAG: *arm_build
321 image: "$CI_REGISTRY_IMAGE/debian/arm_build:$TAG"
322 needs:
323 - arm_build
324
325 # Debian 10 based x86 baremetal image base
326 arm_test-base:
327 extends:
328 - .fdo.container-build@debian
329 - .container
330 variables:
331 FDO_DISTRIBUTION_TAG: &arm_test-base "2020-06-22-tracie"
332
333 .use-arm_test-base:
334 extends:
335 - arm_test-base
336 - .ci-run-policy
337 stage: container-2
338 variables:
339 BASE_TAG: *arm_test-base
340 FDO_BASE_IMAGE: "$CI_REGISTRY_IMAGE/debian/arm_test-base:$BASE_TAG"
341 needs:
342 - arm_test-base
343
344 # x86 image with ARM64 rootfs for baremetal testing.
345 arm64_test:
346 extends:
347 - .use-arm_test-base
348 variables:
349 FDO_DISTRIBUTION_TAG: &arm64_test "2020-06-25-kernelfix"
350
351 .use-arm64_test:
352 variables:
353 TAG: *arm64_test
354 image: "$CI_REGISTRY_IMAGE/debian/arm64_test:$TAG"
355 needs:
356 - arm_test-base
357 - arm64_test
358
359 # Native Windows docker builds
360 #
361 # Unlike the above Linux-based builds - including MinGW/SCons builds which
362 # cross-compile for Windows - which use the freedesktop ci-templates, we
363 # cannot use the same scheme here. As Windows lacks support for
364 # Docker-in-Docker, and Podman does not run natively on Windows, we have
365 # to open-code much of the same ourselves.
366 #
367 # This is achieved by first running in a native Windows shell instance
368 # (host PowerShell) in the container stage to build and push the image,
369 # then in the build stage by executing inside Docker.
370
371 .windows-docker-vs2019:
372 variables:
373 WINDOWS_TAG: "2020-05-05-llvm"
374 WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:$WINDOWS_TAG"
375 WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:$WINDOWS_TAG"
376
377 .windows_build_vs2019:
378 extends:
379 - .container
380 - .windows-docker-vs2019
381 stage: container+docs
382 variables:
383 GIT_STRATEGY: fetch # we do actually need the full repository though
384 timeout: 4h # LLVM takes ages
385 tags:
386 - windows
387 - shell
388 - "1809"
389 - mesa
390 script:
391 - .\.gitlab-ci\windows\mesa_container.ps1 $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE
392
393 .use-windows_build_vs2019:
394 extends: .windows-docker-vs2019
395 image: "$WINDOWS_IMAGE"
396 needs:
397 - windows_build_vs2019
398
399 git_archive:
400 extends: .fdo.container-build@alpine
401 stage: container+docs
402 only:
403 - schedules
404 variables:
405 FDO_REPO_SUFFIX: &git-archive-suffix "alpine/git_archive"
406 FDO_DISTRIBUTION_EXEC: 'pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@52dd4a94044449c8481d18dcdc221a3c636366d2'
407 # no need to pull the whole repo to build the container image
408 GIT_STRATEGY: none
409 FDO_DISTRIBUTION_TAG: &git-archive-tag "2020-07-02"
410 FDO_DISTRIBUTION_PACKAGES: git py3-pip
411
412
413 # Git archive
414
415 make git archive:
416 stage: git-archive
417 extends: .fdo.suffixed-image@alpine
418 only:
419 - schedules
420 # ensure we are running on packet
421 tags:
422 - packet.net
423 variables:
424 FDO_DISTRIBUTION_TAG: *git-archive-tag
425 FDO_REPO_SUFFIX: *git-archive-suffix
426 needs:
427 - git_archive
428
429 script:
430 # compress the current folder
431 - tar -cvzf ../$CI_PROJECT_NAME.tar.gz .
432
433 # login with the JWT token
434 - ci-fairy minio login $CI_JOB_JWT
435 - ci-fairy minio cp ../$CI_PROJECT_NAME.tar.gz minio://minio-packet.freedesktop.org/git-cache/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/$CI_PROJECT_NAME.tar.gz
436
437
438 # BUILD
439
440 # Shared between windows and Linux
441 .build-common:
442 extends: .ci-run-policy
443 artifacts:
444 name: "mesa_${CI_JOB_NAME}"
445 when: always
446 paths:
447 - _build/meson-logs/*.txt
448 # scons:
449 - build/*/config.log
450 - shader-db
451
452 # Just Linux
453 .build-linux:
454 extends: .build-common
455 variables:
456 CCACHE_COMPILERCHECK: "content"
457 CCACHE_COMPRESS: "true"
458 CCACHE_DIR: /cache/mesa/ccache
459 # Use ccache transparently, and print stats before/after
460 before_script:
461 - export PATH="/usr/lib/ccache:$PATH"
462 - export CCACHE_BASEDIR="$PWD"
463 - ccache --show-stats
464 after_script:
465 - ccache --show-stats
466
467 .build-windows:
468 extends: .build-common
469 tags:
470 - windows
471 - docker
472 - "1809"
473 - mesa
474 cache:
475 key: ${CI_JOB_NAME}
476 paths:
477 - subprojects/packagecache
478
479 .meson-build:
480 extends:
481 - .build-linux
482 - .use-x86_build
483 stage: meson-x86_64
484 variables:
485 LLVM_VERSION: 9
486 script:
487 - .gitlab-ci/meson-build.sh
488
489 .scons-build:
490 extends:
491 - .build-linux
492 - .use-x86_build
493 stage: scons
494 variables:
495 SCONSFLAGS: "-j4"
496 script:
497 - .gitlab-ci/scons-build.sh
498
499 meson-testing:
500 extends:
501 - .meson-build
502 - .ci-deqp-artifacts
503 variables:
504 UNWIND: "enabled"
505 DRI_LOADERS: >
506 -D glx=dri
507 -D gbm=enabled
508 -D egl=enabled
509 -D platforms=x11,drm,surfaceless
510 GALLIUM_ST: >
511 -D dri3=enabled
512 GALLIUM_DRIVERS: "swrast,virgl"
513 VULKAN_DRIVERS: amd
514 BUILDTYPE: "debugoptimized"
515 EXTRA_OPTION: >
516 -D werror=true
517 script:
518 - .gitlab-ci/meson-build.sh
519 - .gitlab-ci/prepare-artifacts.sh
520
521 meson-gallium:
522 extends: .meson-build
523 variables:
524 UNWIND: "enabled"
525 DRI_LOADERS: >
526 -D glx=dri
527 -D gbm=enabled
528 -D egl=enabled
529 -D platforms=x11,wayland,drm,surfaceless
530 GALLIUM_ST: >
531 -D dri3=enabled
532 -D gallium-extra-hud=true
533 -D gallium-vdpau=enabled
534 -D gallium-xvmc=enabled
535 -D gallium-omx=bellagio
536 -D gallium-va=enabled
537 -D gallium-xa=enabled
538 -D gallium-nine=true
539 -D gallium-opencl=disabled
540 GALLIUM_DRIVERS: "iris,nouveau,kmsro,r300,r600,freedreno,swr,swrast,svga,v3d,vc4,virgl,etnaviv,panfrost,lima,zink"
541 EXTRA_OPTION: >
542 -D osmesa=gallium
543 -D tools=all
544 script:
545 - .gitlab-ci/meson-build.sh
546 - .gitlab-ci/run-shader-db.sh
547
548 meson-classic:
549 extends: .meson-build
550 variables:
551 UNWIND: "enabled"
552 DRI_LOADERS: >
553 -D glx=dri
554 -D gbm=enabled
555 -D egl=enabled
556 -D platforms=x11,wayland,drm,surfaceless
557 DRI_DRIVERS: "auto"
558 EXTRA_OPTION: >
559 -D osmesa=classic
560 -D tools=all
561 -D werror=true
562
563 .meson-cross:
564 extends:
565 - .meson-build
566 stage: meson-misc
567 variables:
568 UNWIND: "disabled"
569 DRI_LOADERS: >
570 -D glx=disabled
571 -D gbm=disabled
572 -D egl=enabled
573 -D platforms=surfaceless
574 -D osmesa=none
575 GALLIUM_ST: >
576 -D dri3=disabled
577 -D gallium-vdpau=disabled
578 -D gallium-xvmc=disabled
579 -D gallium-omx=disabled
580 -D gallium-va=disabled
581 -D gallium-xa=disabled
582 -D gallium-nine=false
583 LLVM_VERSION: "8"
584
585 .meson-arm:
586 extends:
587 - .meson-cross
588 - .use-arm_build
589 variables:
590 VULKAN_DRIVERS: freedreno
591 GALLIUM_DRIVERS: "etnaviv,freedreno,kmsro,lima,nouveau,panfrost,swrast,tegra,v3d,vc4"
592 BUILDTYPE: "debugoptimized"
593 tags:
594 - aarch64
595
596 meson-armhf:
597 extends:
598 - .meson-arm
599 - .ci-deqp-artifacts
600 variables:
601 CROSS: armhf
602 LLVM_VERSION: "7"
603 EXTRA_OPTION: >
604 -D llvm=disabled
605 UPLOAD_FOR_LAVA: 1
606 DEBIAN_ARCH: armhf
607 script:
608 - .gitlab-ci/meson-build.sh
609 - .gitlab-ci/prepare-artifacts.sh
610
611 meson-arm64:
612 extends:
613 - .meson-arm
614 - .ci-deqp-artifacts
615 variables:
616 VULKAN_DRIVERS: "freedreno"
617 EXTRA_OPTION: >
618 -D llvm=disabled
619 UPLOAD_FOR_LAVA: 1
620 DEBIAN_ARCH: arm64
621 script:
622 - .gitlab-ci/meson-build.sh
623 - .gitlab-ci/prepare-artifacts.sh
624
625 meson-arm64-build-test:
626 extends:
627 - .meson-arm
628 - .ci-deqp-artifacts
629 variables:
630 VULKAN_DRIVERS: "amd"
631 script:
632 - .gitlab-ci/meson-build.sh
633
634 meson-clang:
635 extends: .meson-build
636 variables:
637 UNWIND: "enabled"
638 DRI_LOADERS: >
639 -D glvnd=true
640 DRI_DRIVERS: "auto"
641 GALLIUM_DRIVERS: "auto"
642 VULKAN_DRIVERS: intel,amd,freedreno
643 CC: "ccache clang-9"
644 CXX: "ccache clang++-9"
645
646 .meson-windows-vs2019:
647 extends:
648 - .build-windows
649 - .use-windows_build_vs2019
650 stage: meson-misc
651 script:
652 - . .\.gitlab-ci\windows\mesa_build.ps1
653
654 scons-win64:
655 extends: .scons-build
656 variables:
657 SCONS_TARGET: platform=windows machine=x86_64 debug=1
658 SCONS_CHECK_COMMAND: "true"
659 allow_failure: true
660
661 meson-clover:
662 extends: .meson-build
663 variables:
664 UNWIND: "enabled"
665 DRI_LOADERS: >
666 -D glx=disabled
667 -D egl=disabled
668 -D gbm=disabled
669 GALLIUM_DRIVERS: "r600,radeonsi"
670 GALLIUM_ST: >
671 -D dri3=disabled
672 -D gallium-vdpau=disabled
673 -D gallium-xvmc=disabled
674 -D gallium-omx=disabled
675 -D gallium-va=disabled
676 -D gallium-xa=disabled
677 -D gallium-nine=false
678 -D gallium-opencl=icd
679 script:
680 - .gitlab-ci/meson-build.sh
681 - LLVM_VERSION=8 .gitlab-ci/meson-build.sh
682
683 meson-clover-old-llvm:
684 extends:
685 - meson-clover
686 - .use-x86_build_old
687 variables:
688 UNWIND: "disabled"
689 DRI_LOADERS: >
690 -D glx=disabled
691 -D egl=disabled
692 -D gbm=disabled
693 -D platforms=drm,surfaceless
694 GALLIUM_DRIVERS: "i915,r600"
695 script:
696 - LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
697 - LLVM_VERSION=4.0 .gitlab-ci/meson-build.sh
698 - LLVM_VERSION=5.0 .gitlab-ci/meson-build.sh
699 - LLVM_VERSION=6.0 .gitlab-ci/meson-build.sh
700 - LLVM_VERSION=7 .gitlab-ci/meson-build.sh
701
702 meson-vulkan:
703 extends: .meson-build
704 variables:
705 UNWIND: "disabled"
706 DRI_LOADERS: >
707 -D glx=disabled
708 -D gbm=disabled
709 -D egl=disabled
710 -D platforms=x11,wayland,drm
711 -D osmesa=none
712 GALLIUM_ST: >
713 -D dri3=enabled
714 -D gallium-vdpau=disabled
715 -D gallium-xvmc=disabled
716 -D gallium-omx=disabled
717 -D gallium-va=disabled
718 -D gallium-xa=disabled
719 -D gallium-nine=false
720 -D gallium-opencl=disabled
721 -D b_sanitize=undefined
722 -D c_args=-fno-sanitize-recover=all
723 -D cpp_args=-fno-sanitize-recover=all
724 UBSAN_OPTIONS: "print_stacktrace=1"
725 VULKAN_DRIVERS: intel,amd,freedreno
726 EXTRA_OPTION: >
727 -D vulkan-overlay-layer=true
728 -D werror=true
729
730 meson-i386:
731 extends:
732 - .meson-cross
733 - .use-i386_build
734 variables:
735 CROSS: i386
736 VULKAN_DRIVERS: intel,amd
737 GALLIUM_DRIVERS: "iris,r300,radeonsi,swrast,virgl"
738 EXTRA_OPTION: >
739 -D vulkan-overlay-layer=true
740 -D werror=true
741
742 meson-s390x:
743 extends:
744 - .meson-cross
745 - .use-s390x_build
746 tags:
747 - kvm
748 variables:
749 CROSS: s390x
750 EXTRA_OPTION: >
751 -D werror=true
752 GALLIUM_DRIVERS: "swrast"
753
754 meson-ppc64el:
755 extends:
756 - meson-s390x
757 - .use-ppc64el_build
758 variables:
759 CROSS: ppc64el
760 EXTRA_OPTION: ""
761 GALLIUM_DRIVERS: "nouveau,radeonsi,swrast,virgl"
762 VULKAN_DRIVERS: "amd"
763
764 meson-mingw32-x86_64:
765 extends: .meson-build
766 stage: meson-misc
767 variables:
768 UNWIND: "disabled"
769 DRI_DRIVERS: ""
770 GALLIUM_DRIVERS: "swrast"
771 EXTRA_OPTION: >
772 -Dllvm=disabled
773 -Dosmesa=gallium
774 --cross-file=.gitlab-ci/x86_64-w64-mingw32
775
776 .test:
777 extends:
778 - .ci-run-policy
779 variables:
780 GIT_STRATEGY: none # testing doesn't build anything from source
781 before_script:
782 # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY
783 - rm -rf install
784 - tar -xf artifacts/install.tar
785 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
786 artifacts:
787 when: always
788 name: "mesa_${CI_JOB_NAME}"
789 paths:
790 - results/
791
792 .test-gl:
793 extends:
794 - .test
795 variables:
796 TAG: *x86_test-gl
797 image: "$CI_REGISTRY_IMAGE/debian/x86_test-gl:$TAG"
798 needs:
799 - x86_build-base
800 - x86_build
801 - meson-testing
802 - x86_test-base
803 - x86_test-gl
804 dependencies:
805 - meson-testing
806
807 .test-vk:
808 extends:
809 - .test
810 variables:
811 TAG: *x86_test-vk
812 image: "$CI_REGISTRY_IMAGE/debian/x86_test-vk:$TAG"
813 needs:
814 - x86_build-base
815 - x86_build
816 - meson-testing
817 - x86_test-base
818 - x86_test-vk
819 dependencies:
820 - meson-testing
821
822 .piglit-test:
823 extends:
824 - .test-gl
825 - .llvmpipe-rules
826 artifacts:
827 when: on_failure
828 name: "mesa_${CI_JOB_NAME}"
829 paths:
830 - summary/
831 variables:
832 LIBGL_ALWAYS_SOFTWARE: 1
833 PIGLIT_NO_WINDOW: 1
834 script:
835 - install/piglit/run.sh
836
837 piglit-quick_gl:
838 extends: .piglit-test
839 variables:
840 LP_NUM_THREADS: 0
841 NIR_VALIDATE: 0
842 PIGLIT_OPTIONS: >
843 --process-isolation false
844 -x arb_gpu_shader5
845 -x egl_ext_device_
846 -x egl_ext_platform_device
847 -x ext_timer_query@time-elapsed
848 -x glx-multithread-clearbuffer
849 -x glx-multithread-shader-compile
850 -x max-texture-size
851 -x maxsize
852 PIGLIT_PROFILES: quick_gl
853
854 piglit-glslparser:
855 extends: .piglit-test
856 variables:
857 LP_NUM_THREADS: 0
858 NIR_VALIDATE: 0
859 PIGLIT_PROFILES: glslparser
860
861 piglit-quick_shader:
862 extends: .piglit-test
863 variables:
864 LP_NUM_THREADS: 1
865 NIR_VALIDATE: 0
866 PIGLIT_PROFILES: quick_shader
867
868 .deqp-test:
869 variables:
870 DEQP_SKIPS: deqp-default-skips.txt
871 script:
872 - ./install/deqp-runner.sh
873
874 .deqp-test-gl:
875 extends:
876 - .test-gl
877 - .deqp-test
878
879 .deqp-test-vk:
880 extends:
881 - .test-vk
882 - .deqp-test
883 variables:
884 DEQP_VER: vk
885
886 .fossilize-test:
887 extends: .test-vk
888 script:
889 - ./install/fossilize-runner.sh
890 artifacts:
891 when: on_failure
892 name: "mesa_${CI_JOB_NAME}"
893 paths:
894 - results/
895
896 llvmpipe-gles2:
897 variables:
898 DEQP_VER: gles2
899 DEQP_PARALLEL: 4
900 NIR_VALIDATE: 0
901 # Don't use threads inside llvmpipe, we've already got all 4 cores
902 # busy with DEQP_PARALLEL.
903 LP_NUM_THREADS: 0
904 DEQP_EXPECTED_FAILS: deqp-llvmpipe-fails.txt
905 LIBGL_ALWAYS_SOFTWARE: "true"
906 DEQP_EXPECTED_RENDERER: llvmpipe
907 extends:
908 - .deqp-test-gl
909 - .llvmpipe-rules
910
911 softpipe-gles2:
912 extends:
913 - llvmpipe-gles2
914 - .softpipe-rules
915 variables:
916 DEQP_EXPECTED_FAILS: deqp-softpipe-fails.txt
917 DEQP_SKIPS: deqp-softpipe-skips.txt
918 GALLIUM_DRIVER: "softpipe"
919 DEQP_EXPECTED_RENDERER: softpipe
920
921 softpipe-gles3:
922 parallel: 2
923 variables:
924 DEQP_VER: gles3
925 extends: softpipe-gles2
926
927 softpipe-gles31:
928 parallel: 4
929 variables:
930 DEQP_VER: gles31
931 extends: softpipe-gles2
932
933 virgl-gles2-on-gl:
934 variables:
935 DEQP_VER: gles2
936 DEQP_PARALLEL: 4
937 NIR_VALIDATE: 0
938 DEQP_NO_SAVE_RESULTS: 1
939 # Don't use threads inside llvmpipe, we've already got all 4 cores
940 # busy with DEQP_PARALLEL.
941 LP_NUM_THREADS: 0
942 DEQP_EXPECTED_FAILS: deqp-virgl-gl-fails.txt
943 DEQP_OPTIONS: "--deqp-log-images=disable"
944 LIBGL_ALWAYS_SOFTWARE: "true"
945 GALLIUM_DRIVER: "virpipe"
946 DEQP_EXPECTED_RENDERER: virgl
947 extends:
948 - .deqp-test-gl
949 - .virgl-rules
950
951 virgl-gles3-on-gl:
952 parallel: 2
953 variables:
954 DEQP_VER: gles3
955 DEQP_RUNNER_OPTIONS: "--timeout 180"
956 extends: virgl-gles2-on-gl
957
958 virgl-gles31-on-gl:
959 parallel: 4
960 variables:
961 DEQP_VER: gles31
962 MESA_GLES_VERSION_OVERRIDE: "3.1"
963 MESA_GLSL_VERSION_OVERRIDE: "310"
964 MESA_EXTENSION_OVERRIDE: "-GL_OES_tessellation_shader"
965 extends: virgl-gles3-on-gl
966
967 virgl-gl30-on-gl:
968 variables:
969 DEQP_VER: gl30
970 extends: virgl-gles2-on-gl
971
972 virgl-gl31-on-gl:
973 variables:
974 DEQP_VER: gl31
975 extends: virgl-gles2-on-gl
976
977 virgl-gl32-on-gl:
978 variables:
979 DEQP_VER: gl32
980 extends: virgl-gles2-on-gl
981
982 # Rules for tests that should not be present in MRs or the main
983 # project's pipeline (don't block marge or report red on
984 # mesa/mesamaster) but should be present on pipelines in personal
985 # branches (so you can opt in to running the flaky test when you want
986 # to).
987 .test-manual:
988 rules:
989 - if: '$CI_PROJECT_PATH != "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
990 changes:
991 *all_paths
992 when: manual
993 - when: never
994
995 virgl-gles2-on-gles:
996 variables:
997 VIRGL_HOST_API: GLES
998 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
999 extends:
1000 - virgl-gles2-on-gl
1001 - .test-manual
1002
1003 virgl-gles3-on-gles:
1004 variables:
1005 VIRGL_HOST_API: GLES
1006 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1007 extends:
1008 - virgl-gles3-on-gl
1009 - .test-manual
1010
1011 virgl-gles31-on-gles:
1012 variables:
1013 VIRGL_HOST_API: GLES
1014 DEQP_EXPECTED_FAILS: deqp-virgl-gles-fails.txt
1015 extends:
1016 - virgl-gles31-on-gl
1017 - .test-manual
1018
1019 arm64_a630_gles2:
1020 extends:
1021 - arm64_a306_gles2
1022 variables:
1023 BM_KERNEL: /lava-files/cheza-kernel
1024 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 root=/dev/nfs rw nfsrootdebug nfsroot=,tcp,nfsvers=4.2 init=/init"
1025 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-fails.txt
1026 DEQP_SKIPS: deqp-freedreno-a630-skips.txt
1027 GIT_STRATEGY: none
1028 DEQP_EXPECTED_RENDERER: FD630
1029 DEQP_NO_SAVE_RESULTS: ""
1030 tags:
1031 - google-freedreno-cheza
1032 script:
1033 - ./install/bare-metal/cros-servo.sh
1034
1035 arm64_a630_gles31:
1036 extends: arm64_a630_gles2
1037 variables:
1038 DEQP_VER: gles31
1039 # gles31 is about 12 minutes with validation enabled.
1040 NIR_VALIDATE: 0
1041
1042 arm64_a630_gles3:
1043 extends: arm64_a630_gles2
1044 variables:
1045 DEQP_VER: gles3
1046 # gles3 is about 15 minutes with validation enabled.
1047 NIR_VALIDATE: 0
1048
1049 # We almost always manage to lower UBOs back to constant uploads in
1050 # the test suite, so get a little testing for it here.
1051 arm64_a630_noubo:
1052 extends: arm64_a630_gles31
1053 variables:
1054 DEQP_VER: gles31
1055 IR3_SHADER_DEBUG: nouboopt
1056 DEQP_CASELIST_FILTER: "functional.*ubo"
1057
1058 # The driver does some guessing as to whether to render using gmem
1059 # or bypass, and some GLES3.1 features interact with either one.
1060 # Do a little testing with gmem and bypass forced.
1061 arm64_a630_bypass:
1062 extends: arm64_a630_gles31
1063 variables:
1064 CI_NODE_INDEX: 1
1065 CI_NODE_TOTAL: 5
1066 FD_MESA_DEBUG: nogmem
1067 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
1068
1069 arm64_a630_traces:
1070 extends:
1071 - arm64_a630_gles2
1072 variables:
1073 BARE_METAL_TEST_SCRIPT: "/install/tracie-runner-gl.sh"
1074 DEVICE_NAME: "freedreno-a630"
1075 TRACIE_NO_UNIT_TESTS: 1
1076 # This lets us run several more traces which don't use any features we're
1077 # missing.
1078 MESA_GLSL_VERSION_OVERRIDE: "460"
1079 MESA_GL_VERSION_OVERRIDE: "4.6"
1080
1081 # Along with checking gmem path, check that we don't get obvious nir
1082 # validation failures (though it's too expensive to have it on for the
1083 # full CTS)
1084 arm64_a630_gmem:
1085 extends: arm64_a630_gles31
1086 variables:
1087 CI_NODE_INDEX: 1
1088 CI_NODE_TOTAL: 5
1089 FD_MESA_DEBUG: nobypass
1090 NIR_VALIDATE: 1
1091
1092 arm64_a630_vk:
1093 extends: arm64_a630_gles2
1094 variables:
1095 DEQP_VER: vk
1096 CI_NODE_INDEX: 1
1097 CI_NODE_TOTAL: 50
1098 VK_DRIVER: freedreno
1099 # Force binning in the main run, which makes sure we render at
1100 # least 2 bins. This is the path that impacts the most different
1101 # features. However, we end up with flaky results in
1102 # dEQP-VK.binding_model.*.geometry and dEQP-VK.glsl.*_vertex.
1103 TU_DEBUG: forcebin
1104
1105 # Do a separate sysmem pass over the testcases that really affect sysmem
1106 # rendering. This is currently very flaky, leave it as an option for devs
1107 # to click play on in their branches.
1108 arm64_a630_vk_sysmem:
1109 extends:
1110 - arm64_a630_vk
1111 variables:
1112 CI_NODE_INDEX: 1
1113 CI_NODE_TOTAL: 10
1114 DEQP_CASELIST_FILTER: "dEQP-VK.renderpass.*"
1115 DEQP_EXPECTED_FAILS: deqp-freedreno-a630-bypass-fails.txt
1116 TU_DEBUG: sysmem
1117
1118 .baremetal-test:
1119 extends:
1120 - .ci-run-policy
1121 - .test
1122 stage: test
1123 artifacts:
1124 when: always
1125 name: "mesa_${CI_JOB_NAME}"
1126 paths:
1127 - results/
1128 - serial*.txt
1129
1130 arm64_a306_gles2:
1131 extends:
1132 - .baremetal-test
1133 - .use-arm64_test
1134 - .freedreno-rules
1135 variables:
1136 BM_KERNEL: /lava-files/Image.gz
1137 BM_DTB: /lava-files/apq8016-sbc.dtb
1138 BM_ROOTFS: /lava-files/rootfs-arm64
1139 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8"
1140 FLAKES_CHANNEL: "#freedreno-ci"
1141 BARE_METAL_TEST_SCRIPT: "/install/deqp-runner.sh"
1142 DEQP_EXPECTED_FAILS: deqp-freedreno-a307-fails.txt
1143 DEQP_SKIPS: deqp-freedreno-a307-skips.txt
1144 DEQP_VER: gles2
1145 DEQP_PARALLEL: 4
1146 DEQP_EXPECTED_RENDERER: FD307
1147 # Since we can't get artifacts back yet, skip making them.
1148 DEQP_NO_SAVE_RESULTS: 1
1149 # NIR_VALIDATE=0 left intentionally unset as a3xx is fast enough at its small testsuite.
1150 script:
1151 - ./install/bare-metal/fastboot.sh
1152 needs:
1153 - arm_test-base
1154 - arm64_test
1155 - arm_build
1156 - meson-arm64
1157 tags:
1158 - google-freedreno-db410c
1159
1160 # Fractional run, single threaded, due to flaky results
1161 arm64_a306_gles3:
1162 extends:
1163 - arm64_a306_gles2
1164 variables:
1165 DEQP_VER: gles3
1166 DEQP_PARALLEL: 1
1167 CI_NODE_INDEX: 1
1168 CI_NODE_TOTAL: 25
1169 NIR_VALIDATE: 0
1170
1171 # Fractional runs with debug options. Note that since we're not
1172 # hitting the iommu faults, we can run in parallel (derive from gles2, not gles3).
1173 arm64_a306_gles3_options:
1174 extends: arm64_a306_gles2
1175 variables:
1176 DEQP_VER: gles3
1177 script:
1178 # Check that the non-constbuf UBO case works.
1179 - DEQP_RUN_SUFFIX=-nouboopt IR3_SHADER_DEBUG=nouboopt DEQP_CASELIST_FILTER="functional.*ubo" ./install/bare-metal/fastboot.sh
1180
1181 arm64_a530_gles2:
1182 extends:
1183 - arm64_a306_gles2
1184 variables:
1185 BM_KERNEL: /lava-files/db820c-kernel
1186 BM_DTB: /lava-files/db820c.dtb
1187 # Disable SMP because only CPU 0 is at a freq higher than 19mhz on
1188 # current upstream kernel.
1189 BM_CMDLINE: "ip=dhcp console=ttyMSM0,115200n8 nosmp"
1190 DEQP_EXPECTED_FAILS: deqp-freedreno-a530-fails.txt
1191 DEQP_SKIPS: deqp-freedreno-a530-skips.txt
1192 DEQP_EXPECTED_RENDERER: FD530
1193 NIR_VALIDATE: 0
1194 tags:
1195 - google-freedreno-db820c
1196
1197 arm64_a530_gles3:
1198 extends:
1199 - arm64_a530_gles2
1200 variables:
1201 DEQP_VER: gles3
1202 DEQP_PARALLEL: 1
1203 CI_NODE_INDEX: 1
1204 CI_NODE_TOTAL: 40
1205
1206 arm64_a530_gles31:
1207 extends:
1208 - arm64_a530_gles3
1209 variables:
1210 DEQP_VER: gles31
1211 CI_NODE_INDEX: 1
1212 CI_NODE_TOTAL: 10
1213
1214 # RADV CI
1215 .test-radv:
1216 extends: .radv-rules
1217 stage: radv
1218 variables:
1219 VK_DRIVER: radeon
1220 ACO_DEBUG: validateir,validatera
1221
1222 # Can only be triggered manually on personal branches because RADV is the only
1223 # driver that does Vulkan testing at the moment.
1224 radv_polaris10_vkcts:
1225 extends:
1226 - .deqp-test-vk
1227 - .test-radv
1228 - .test-manual
1229 variables:
1230 DEQP_SKIPS: deqp-radv-polaris10-skips.txt
1231 tags:
1232 - polaris10
1233
1234 radv-fossils:
1235 extends:
1236 - .fossilize-test
1237 - .test-radv
1238 script:
1239 # Pitcairn (GFX6)
1240 - export RADV_FORCE_FAMILY="pitcairn"
1241 - ./install/fossilize-runner.sh
1242 # Bonaire (GFX7)
1243 - export RADV_FORCE_FAMILY="bonaire"
1244 - ./install/fossilize-runner.sh
1245 # Polaris10 (GFX8)
1246 - export RADV_FORCE_FAMILY="polaris10"
1247 - ./install/fossilize-runner.sh
1248 # Vega10 (GFX9)
1249 - export RADV_FORCE_FAMILY="gfx900"
1250 - ./install/fossilize-runner.sh
1251 # Navi10 (GFX10)
1252 - export RADV_FORCE_FAMILY="gfx1010"
1253 - ./install/fossilize-runner.sh
1254
1255 # Traces CI
1256 .traces-test:
1257 cache:
1258 key: ${CI_JOB_NAME}
1259 paths:
1260 - traces-db/
1261
1262 .traces-test-gl:
1263 extends:
1264 - .test-gl
1265 - .traces-test
1266 script:
1267 - ./install/tracie-runner-gl.sh
1268
1269 .traces-test-vk:
1270 extends:
1271 - .test-vk
1272 - .traces-test
1273 script:
1274 - ./install/tracie-runner-vk.sh
1275
1276 llvmpipe-traces:
1277 extends:
1278 - .traces-test-gl
1279 - .llvmpipe-rules
1280 variables:
1281 LIBGL_ALWAYS_SOFTWARE: "true"
1282 GALLIUM_DRIVER: "llvmpipe"
1283 DEVICE_NAME: "gl-vmware-llvmpipe"
1284
1285 radv-polaris10-traces:
1286 extends:
1287 - .traces-test-vk
1288 - .test-radv
1289 - .test-manual
1290 variables:
1291 DEVICE_NAME: "vk-amd-polaris10"
1292 tags:
1293 - polaris10
1294
1295 virgl-traces:
1296 extends:
1297 - .traces-test-gl
1298 - .virgl-rules
1299 variables:
1300 LIBGL_ALWAYS_SOFTWARE: "true"
1301 GALLIUM_DRIVER: "virpipe"
1302 DEVICE_NAME: "gl-virgl"
1303 MESA_GLES_VERSION_OVERRIDE: "3.1"
1304 MESA_GLSL_VERSION_OVERRIDE: "310"