gitlab-ci: Run dEQP on devices with Panfrost
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 18 Sep 2019 14:03:36 +0000 (16:03 +0200)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Sun, 6 Oct 2019 14:47:21 +0000 (07:47 -0700)
Include Panfrost's gitlab.ci.yml file from Mesa's main .gitlab-ci.yml so
we test on devices with Panfrost.

This uses LAVA to schedule jobs in the devices and will be the base for
testing Etnaviv, Lima, etc.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
.gitlab-ci.yml
src/gallium/drivers/panfrost/ci/generate_lava.py
src/gallium/drivers/panfrost/ci/gitlab-ci.yml
src/gallium/drivers/panfrost/ci/lava-deqp.yml.jinja2

index dc2b11774575795bc12bd1217ee1aa61b5f32a39..1109d82649d0373e26a2528b3b44de05339452fd 100644 (file)
@@ -28,6 +28,9 @@ include:
     ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
     file: '/templates/debian.yml'
 
+include:
+  - local: '/src/gallium/drivers/panfrost/ci/gitlab-ci.yml'
+
 stages:
   - containers
   - build
index ec9b1e7efd259d2f0453530de782e4d36678d198..ab1597f1fe3aa88c92abdb424bb13e08bc5583e0 100755 (executable)
@@ -9,6 +9,7 @@ parser.add_argument("--base-artifacts-url")
 parser.add_argument("--arch")
 parser.add_argument("--device-type")
 parser.add_argument("--kernel-image-name")
+parser.add_argument("--gpu-version")
 args = parser.parse_args()
 
 env = Environment(loader = FileSystemLoader('.'), trim_blocks=True, lstrip_blocks=True)
@@ -19,5 +20,6 @@ values['base_artifacts_url'] = args.base_artifacts_url
 values['arch'] = args.arch
 values['device_type'] = args.device_type
 values['kernel_image_name'] = args.kernel_image_name
+values['gpu_version'] = args.gpu_version
 
 print(template.render(values))
index 95e8db980173f8caf0ab0d397d30c833ffa45eff..4a32fcb9276829fb021dce0ac0def0f55aa7584d 100644 (file)
@@ -1,48 +1,32 @@
-# IMAGE_TAG is the tag of the docker image used for the build jobs. If the
-# image doesn't exist yet, the docker-image stage generates it.
-#
-# In order to generate a new image, one should generally change the tag.
-# While removing the image from the registry would also work, that's not
-# recommended except for ephemeral images during development: Replacing an
-# image after a significant amount of time might pull in newer versions of
-# gcc/clang or other packages, which might break the build with older commits
-# using the same tag.
-#
-# After merging a change resulting in generating a new image to the main
-# repository, it's recommended to remove the image from the source repository's
-# container registry, so that the image from the main repository's registry
-# will be used there as well.  You can manage your images on your fork of:
-# https://gitlab.freedesktop.org/xorg/xserver/container_registry
 variables:
-  UPSTREAM_REPO: mesa/mesa
-  DEBIAN_VERSION: testing-slim
-  IMAGE_TAG: "2019-09-10-3"
+    LAVA_DEBIAN_VERSION: testing-slim
+    LAVA_IMAGE_TAG: "lava-2019-09-18-1"
 
 include:
   - project: 'wayland/ci-templates'
-    ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
+    ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
     file: '/templates/debian.yml'
 
-stages:
-  - containers
-  - build
-  - test
-
-# Retry jobs after runner system failures
-.retry: &retry
+# When to automatically run the CI
+.ci-run-policy:
+  only:
+    - branches@mesa/mesa
+    - merge_requests
+    - /^ci([-/].*)?$/
   retry:
     max: 2
     when:
       - runner_system_failure
 
 # Build Docker image with deqp, the rootfs and the build deps for Mesa
-.container:
-  extends: .debian@container-ifnot-exists
+.lava-container:
+  extends:
+    - .debian@container-ifnot-exists
+    - .ci-run-policy
   stage: containers
-  <<: *retry
   variables:
     GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
-    DEBIAN_TAG: '${DEBIAN_ARCH}-${IMAGE_TAG}'
+    DEBIAN_TAG: '${DEBIAN_ARCH}-${LAVA_IMAGE_TAG}'
     DEBIAN_EXEC: 'DEBIAN_ARCH=${DEBIAN_ARCH}
                   GCC_ARCH=${GCC_ARCH}
                   KERNEL_ARCH=${KERNEL_ARCH}
@@ -51,9 +35,10 @@ stages:
                   DEVICE_TREES=${DEVICE_TREES}
                   KERNEL_IMAGE_NAME=${KERNEL_IMAGE_NAME}
                   bash src/gallium/drivers/panfrost/ci/debian-install.sh'
+    DEBIAN_VERSION: ${LAVA_DEBIAN_VERSION}
 
-container:armhf:
-  extends: .container
+lava-container:armhf:
+  extends: .lava-container
   variables:
     DEBIAN_ARCH: "armhf"
     GCC_ARCH: "arm-linux-gnueabihf"
@@ -63,8 +48,8 @@ container:armhf:
     DEVICE_TREES: "arch/arm/boot/dts/rk3288-veyron-jaq.dtb"
     KERNEL_IMAGE_NAME: "zImage"
 
-container:arm64:
-  extends: .container
+lava-container:arm64:
+  extends: .lava-container
   variables:
     DEBIAN_ARCH: "arm64"
     GCC_ARCH: "aarch64-linux-gnu"
@@ -74,9 +59,9 @@ container:arm64:
     DEVICE_TREES: "arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb"
     KERNEL_IMAGE_NAME: "Image"
 
-.build:
+.lava-build:
   stage: build
-  image: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:${DEBIAN_ARCH}-${IMAGE_TAG}
+  image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:$DEBIAN_ARCH-$LAVA_IMAGE_TAG
   cache:
     paths:
       - ccache
@@ -140,29 +125,29 @@ container:arm64:
     paths:
       - results/
 
-build:armhf:
-  extends: .build
-  needs: ["container:armhf"]
+lava-build:armhf:
+  extends: .lava-build
+  needs: ["lava-container:armhf"]
   variables:
     DEBIAN_ARCH: "armhf"
     GCC_ARCH: "arm-linux-gnueabihf"
     DEVICE_TYPE: "rk3288-veyron-jaq"
     KERNEL_IMAGE_NAME: "zImage"
 
-build:arm64:
-  extends: .build
-  needs: ["container:arm64"]
+lava-build:arm64:
+  extends: .lava-build
+  needs: ["lava-container:arm64"]
   variables:
     DEBIAN_ARCH: "arm64"
     GCC_ARCH: "aarch64-linux-gnu"
     DEVICE_TYPE: "rk3399-gru-kevin"
     KERNEL_IMAGE_NAME: "Image"
 
-.test:
+.lava-test:
   stage: test
   tags:
     - idle-lava
-  image: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:arm64-${IMAGE_TAG}  # Any of the images will be fine
+  image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:arm64-$LAVA_IMAGE_TAG  # Any of the images will be fine
   variables:
     GIT_STRATEGY: none # no need to pull the whole tree for submitting the job
   script:
@@ -180,15 +165,15 @@ build:arm64:
     paths:
       - results/
 
-test:armhf:
-  extends: .test
-  needs: ["build:armhf"]
+lava-test:armhf:
+  extends: .lava-test
+  needs: ["lava-build:armhf"]
   dependencies:
-    - build:armhf
+    - lava-build:armhf
 
-test:arm64:
-  extends: .test
-  needs: ["build:arm64"]
+lava-test:arm64:
+  extends: .lava-test
+  needs: ["lava-build:arm64"]
   dependencies:
-    - build:arm64
+    - lava-build:arm64
 
index a975c1b4632eed26ad91d0a3a312a1e1af3a99b3..64508cd9476dc4c163c803f84f25c1ed91ab21c2 100644 (file)
@@ -8,7 +8,7 @@ timeouts:
   actions:
     power-off:
       seconds: 30
-priority: medium
+priority: 75
 visibility: public
 actions:
 - deploy: