2019-04-30 00:33:22 +08:00
|
|
|
variables:
|
2019-09-18 22:03:36 +08:00
|
|
|
LAVA_DEBIAN_VERSION: testing-slim
|
|
|
|
LAVA_IMAGE_TAG: "lava-2019-09-18-1"
|
2019-06-07 16:20:28 +08:00
|
|
|
|
|
|
|
include:
|
|
|
|
- project: 'wayland/ci-templates'
|
2019-09-18 22:03:36 +08:00
|
|
|
ref: 1f7f57c64ff4ebbf7292e3b7a13600518b8cb24c
|
2019-06-07 16:20:28 +08:00
|
|
|
file: '/templates/debian.yml'
|
2019-04-30 00:33:22 +08:00
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
# When to automatically run the CI
|
|
|
|
.ci-run-policy:
|
|
|
|
only:
|
|
|
|
- branches@mesa/mesa
|
|
|
|
- merge_requests
|
|
|
|
- /^ci([-/].*)?$/
|
2019-06-07 16:20:28 +08:00
|
|
|
retry:
|
|
|
|
max: 2
|
|
|
|
when:
|
|
|
|
- runner_system_failure
|
|
|
|
|
2019-04-30 00:33:22 +08:00
|
|
|
# Build Docker image with deqp, the rootfs and the build deps for Mesa
|
2019-09-18 22:03:36 +08:00
|
|
|
.lava-container:
|
|
|
|
extends:
|
|
|
|
- .debian@container-ifnot-exists
|
|
|
|
- .ci-run-policy
|
2019-05-13 15:11:27 +08:00
|
|
|
stage: containers
|
|
|
|
variables:
|
2019-06-07 16:20:28 +08:00
|
|
|
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
|
2019-09-18 22:03:36 +08:00
|
|
|
DEBIAN_TAG: '${DEBIAN_ARCH}-${LAVA_IMAGE_TAG}'
|
2019-06-07 16:20:28 +08:00
|
|
|
DEBIAN_EXEC: 'DEBIAN_ARCH=${DEBIAN_ARCH}
|
|
|
|
GCC_ARCH=${GCC_ARCH}
|
|
|
|
KERNEL_ARCH=${KERNEL_ARCH}
|
2019-09-02 14:33:11 +08:00
|
|
|
VOLT_ARCH=${VOLT_ARCH}
|
2019-06-07 16:20:28 +08:00
|
|
|
DEFCONFIG=${DEFCONFIG}
|
|
|
|
DEVICE_TREES=${DEVICE_TREES}
|
|
|
|
KERNEL_IMAGE_NAME=${KERNEL_IMAGE_NAME}
|
|
|
|
bash src/gallium/drivers/panfrost/ci/debian-install.sh'
|
2019-09-18 22:03:36 +08:00
|
|
|
DEBIAN_VERSION: ${LAVA_DEBIAN_VERSION}
|
2019-04-30 00:33:22 +08:00
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
lava-container:armhf:
|
|
|
|
extends: .lava-container
|
2019-09-02 14:33:11 +08:00
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "armhf"
|
|
|
|
GCC_ARCH: "arm-linux-gnueabihf"
|
|
|
|
KERNEL_ARCH: "arm"
|
|
|
|
VOLT_ARCH: "armhf"
|
|
|
|
DEFCONFIG: "arch/arm/configs/multi_v7_defconfig"
|
|
|
|
DEVICE_TREES: "arch/arm/boot/dts/rk3288-veyron-jaq.dtb"
|
|
|
|
KERNEL_IMAGE_NAME: "zImage"
|
2019-04-30 00:33:22 +08:00
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
lava-container:arm64:
|
|
|
|
extends: .lava-container
|
2019-05-03 23:48:48 +08:00
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "arm64"
|
|
|
|
GCC_ARCH: "aarch64-linux-gnu"
|
|
|
|
KERNEL_ARCH: "arm64"
|
2019-09-02 14:33:11 +08:00
|
|
|
VOLT_ARCH: "aarch64"
|
2019-05-03 23:48:48 +08:00
|
|
|
DEFCONFIG: "arch/arm64/configs/defconfig"
|
|
|
|
DEVICE_TREES: "arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb"
|
|
|
|
KERNEL_IMAGE_NAME: "Image"
|
2019-04-30 00:33:22 +08:00
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
.lava-build:
|
2019-04-30 00:33:22 +08:00
|
|
|
stage: build
|
2019-09-18 22:03:36 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:$DEBIAN_ARCH-$LAVA_IMAGE_TAG
|
2019-04-30 00:33:22 +08:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- ccache
|
|
|
|
before_script:
|
|
|
|
- mkdir -p results mesa-build
|
|
|
|
- mkdir -p ccache
|
|
|
|
script:
|
|
|
|
- export CCACHE_BASEDIR=$CI_PROJECT_DIR
|
|
|
|
- export CCACHE_DIR=$CI_PROJECT_DIR/ccache
|
|
|
|
- export PATH="/usr/lib/ccache:$PATH"
|
|
|
|
- ccache -s
|
|
|
|
|
2019-05-03 23:48:48 +08:00
|
|
|
# Build Mesa
|
|
|
|
- /usr/share/meson/debcrossgen --arch ${DEBIAN_ARCH} -o /tmp/cross_file.txt
|
2019-04-30 00:33:22 +08:00
|
|
|
- meson . mesa-build
|
|
|
|
--cross-file /tmp/cross_file.txt
|
2019-05-03 23:48:48 +08:00
|
|
|
--libdir /artifacts/rootfs/mesa/lib/
|
2019-04-30 00:33:22 +08:00
|
|
|
--buildtype release
|
2019-09-10 23:43:25 +08:00
|
|
|
-D gallium-drivers=kmsro,panfrost
|
|
|
|
-D dri-drivers=
|
|
|
|
-D prefix=/artifacts/rootfs/mesa
|
|
|
|
-D glx=disabled
|
|
|
|
-D gbm=false
|
|
|
|
-D egl=true
|
|
|
|
-D platforms=surfaceless
|
|
|
|
-D osmesa=none
|
|
|
|
-D dri3=false
|
|
|
|
-D gallium-vdpau=false
|
|
|
|
-D gallium-xvmc=false
|
|
|
|
-D gallium-omx=disabled
|
|
|
|
-D gallium-va=false
|
|
|
|
-D gallium-xa=false
|
|
|
|
-D gallium-nine=false
|
|
|
|
-D llvm=false
|
2019-04-30 00:33:22 +08:00
|
|
|
- ninja -C mesa-build install
|
|
|
|
- du -sh /artifacts/rootfs/mesa/*
|
|
|
|
- rm -rf /artifacts/rootfs/mesa/include
|
2019-05-03 23:48:48 +08:00
|
|
|
|
|
|
|
# Pack rootfs
|
2019-04-30 00:33:22 +08:00
|
|
|
- cp src/gallium/drivers/panfrost/ci/deqp-runner.sh /artifacts/rootfs/deqp/.
|
2019-08-15 16:41:21 +08:00
|
|
|
- cp src/gallium/drivers/panfrost/ci/expected-failures.txt /artifacts/rootfs/deqp/.
|
2019-04-30 00:33:22 +08:00
|
|
|
- du -sh /artifacts/rootfs/deqp/*
|
|
|
|
- find /artifacts/rootfs/ -type f -printf "%s\t%p\n" | sort -n
|
2019-05-03 23:48:48 +08:00
|
|
|
- cd /artifacts/rootfs/ ; find -H | cpio -H newc -v -o | gzip -c - > $CI_PROJECT_DIR/results/panfrost-rootfs-${DEBIAN_ARCH}.cpio.gz
|
2019-04-30 00:33:22 +08:00
|
|
|
|
2019-05-03 23:48:48 +08:00
|
|
|
# Copy kernel and DT
|
|
|
|
- cp /artifacts/${KERNEL_IMAGE_NAME} /artifacts/*.dtb $CI_PROJECT_DIR/results/.
|
|
|
|
|
|
|
|
# Generate LAVA job
|
2019-04-30 00:33:22 +08:00
|
|
|
- cd $CI_PROJECT_DIR
|
|
|
|
- src/gallium/drivers/panfrost/ci/generate_lava.py
|
|
|
|
--template src/gallium/drivers/panfrost/ci/lava-deqp.yml.jinja2
|
2019-05-03 23:48:48 +08:00
|
|
|
--arch ${DEBIAN_ARCH}
|
2019-04-30 00:33:22 +08:00
|
|
|
--base-artifacts-url $CI_PROJECT_URL/-/jobs/$CI_JOB_ID/artifacts/raw/results
|
2019-05-03 23:48:48 +08:00
|
|
|
--device-type ${DEVICE_TYPE}
|
|
|
|
--kernel-image-name ${KERNEL_IMAGE_NAME}
|
2019-04-30 00:33:22 +08:00
|
|
|
> results/lava-deqp.yml
|
2019-06-17 13:56:00 +08:00
|
|
|
- cp src/gallium/drivers/panfrost/ci/expected-failures.txt results/.
|
2019-04-30 00:33:22 +08:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- results/
|
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
lava-build:armhf:
|
|
|
|
extends: .lava-build
|
|
|
|
needs: ["lava-container:armhf"]
|
2019-09-02 14:33:11 +08:00
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "armhf"
|
|
|
|
GCC_ARCH: "arm-linux-gnueabihf"
|
|
|
|
DEVICE_TYPE: "rk3288-veyron-jaq"
|
|
|
|
KERNEL_IMAGE_NAME: "zImage"
|
2019-05-03 23:48:48 +08:00
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
lava-build:arm64:
|
|
|
|
extends: .lava-build
|
|
|
|
needs: ["lava-container:arm64"]
|
2019-05-03 23:48:48 +08:00
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "arm64"
|
|
|
|
GCC_ARCH: "aarch64-linux-gnu"
|
|
|
|
DEVICE_TYPE: "rk3399-gru-kevin"
|
|
|
|
KERNEL_IMAGE_NAME: "Image"
|
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
.lava-test:
|
2019-04-30 00:33:22 +08:00
|
|
|
stage: test
|
2019-05-03 23:48:48 +08:00
|
|
|
tags:
|
2019-09-06 21:56:01 +08:00
|
|
|
- idle-lava
|
2019-09-18 22:03:36 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:arm64-$LAVA_IMAGE_TAG # Any of the images will be fine
|
2019-06-17 13:56:00 +08:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none # no need to pull the whole tree for submitting the job
|
2019-04-30 00:33:22 +08:00
|
|
|
script:
|
2019-08-15 16:41:21 +08:00
|
|
|
- lava_job_id=`lavacli jobs submit $CI_PROJECT_DIR/results/lava-deqp.yml`
|
|
|
|
- echo $lava_job_id
|
2019-04-30 00:33:22 +08:00
|
|
|
- lavacli jobs logs $lava_job_id | grep -a -v "{'case':" | tee results/lava-deqp-$lava_job_id.log
|
|
|
|
- lavacli jobs show $lava_job_id
|
2019-08-15 16:41:21 +08:00
|
|
|
- result=`lavacli results $lava_job_id 0_deqp deqp | head -1`
|
|
|
|
- echo $result
|
2019-09-02 14:33:11 +08:00
|
|
|
|
|
|
|
# Don't error out on RK3288
|
|
|
|
- '[[ "$result" == "pass" || -f results/rk3288-veyron-jaq.dtb ]]'
|
2019-04-30 00:33:22 +08:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2019-05-03 23:48:48 +08:00
|
|
|
- results/
|
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
lava-test:armhf:
|
|
|
|
extends: .lava-test
|
|
|
|
needs: ["lava-build:armhf"]
|
2019-09-02 14:33:11 +08:00
|
|
|
dependencies:
|
2019-09-18 22:03:36 +08:00
|
|
|
- lava-build:armhf
|
2019-05-03 23:48:48 +08:00
|
|
|
|
2019-09-18 22:03:36 +08:00
|
|
|
lava-test:arm64:
|
|
|
|
extends: .lava-test
|
|
|
|
needs: ["lava-build:arm64"]
|
2019-05-03 23:48:48 +08:00
|
|
|
dependencies:
|
2019-09-18 22:03:36 +08:00
|
|
|
- lava-build:arm64
|
2019-05-03 23:48:48 +08:00
|
|
|
|