2019-06-26 18:50:52 +08:00
|
|
|
# IMAGE_TAG is the tag of the docker image used for the build jobs. If the
|
2019-06-07 16:20:28 +08:00
|
|
|
# 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
|
2019-04-30 00:33:22 +08:00
|
|
|
variables:
|
2019-06-07 16:20:28 +08:00
|
|
|
UPSTREAM_REPO: mesa/mesa
|
|
|
|
DEBIAN_VERSION: testing-slim
|
2019-07-25 17:58:08 +08:00
|
|
|
IMAGE_TAG: "2019-07-25-1"
|
2019-06-07 16:20:28 +08:00
|
|
|
|
|
|
|
include:
|
|
|
|
- project: 'wayland/ci-templates'
|
|
|
|
ref: c73dae8b84697ef18e2dbbf4fed7386d9652b0cd
|
|
|
|
file: '/templates/debian.yml'
|
2019-04-30 00:33:22 +08:00
|
|
|
|
|
|
|
stages:
|
2019-05-13 15:11:27 +08:00
|
|
|
- containers
|
2019-04-30 00:33:22 +08:00
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2019-06-07 16:20:28 +08:00
|
|
|
# Retry jobs after runner system failures
|
|
|
|
.retry: &retry
|
|
|
|
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-05-13 15:11:27 +08:00
|
|
|
.container:
|
2019-06-07 16:20:28 +08:00
|
|
|
extends: .debian@container-ifnot-exists
|
2019-05-13 15:11:27 +08:00
|
|
|
stage: containers
|
2019-06-07 16:20:28 +08:00
|
|
|
<<: *retry
|
2019-05-13 15:11:27 +08:00
|
|
|
variables:
|
2019-06-07 16:20:28 +08:00
|
|
|
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
|
2019-06-26 18:50:52 +08:00
|
|
|
DEBIAN_TAG: '${DEBIAN_ARCH}-${IMAGE_TAG}'
|
2019-06-07 16:20:28 +08:00
|
|
|
DEBIAN_EXEC: 'DEBIAN_ARCH=${DEBIAN_ARCH}
|
|
|
|
GCC_ARCH=${GCC_ARCH}
|
|
|
|
KERNEL_ARCH=${KERNEL_ARCH}
|
|
|
|
DEFCONFIG=${DEFCONFIG}
|
|
|
|
DEVICE_TREES=${DEVICE_TREES}
|
|
|
|
KERNEL_IMAGE_NAME=${KERNEL_IMAGE_NAME}
|
|
|
|
bash src/gallium/drivers/panfrost/ci/debian-install.sh'
|
2019-04-30 00:33:22 +08:00
|
|
|
|
2019-05-13 15:11:27 +08:00
|
|
|
container:armhf:
|
|
|
|
extends: .container
|
2019-05-03 23:48:48 +08:00
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "armhf"
|
|
|
|
GCC_ARCH: "arm-linux-gnueabihf"
|
|
|
|
KERNEL_ARCH: "arm"
|
|
|
|
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-05-13 15:11:27 +08:00
|
|
|
container:arm64:
|
|
|
|
extends: .container
|
2019-05-03 23:48:48 +08:00
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "arm64"
|
|
|
|
GCC_ARCH: "aarch64-linux-gnu"
|
|
|
|
KERNEL_ARCH: "arm64"
|
|
|
|
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-05-03 23:48:48 +08:00
|
|
|
.build:
|
2019-04-30 00:33:22 +08:00
|
|
|
stage: build
|
2019-06-26 18:50:52 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:${DEBIAN_ARCH}-${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
|
|
|
|
-Dgallium-drivers=kmsro,panfrost
|
|
|
|
-Ddri-drivers=
|
|
|
|
-Dprefix=/artifacts/rootfs/mesa
|
|
|
|
- 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/.
|
|
|
|
- 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-05-13 15:11:27 +08:00
|
|
|
build:armhf:
|
2019-05-03 23:48:48 +08:00
|
|
|
extends: .build
|
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "armhf"
|
|
|
|
GCC_ARCH: "arm-linux-gnueabihf"
|
|
|
|
DEVICE_TYPE: "rk3288-veyron-jaq"
|
|
|
|
KERNEL_IMAGE_NAME: "zImage"
|
|
|
|
|
2019-05-13 15:11:27 +08:00
|
|
|
build:arm64:
|
2019-05-03 23:48:48 +08:00
|
|
|
extends: .build
|
|
|
|
variables:
|
|
|
|
DEBIAN_ARCH: "arm64"
|
|
|
|
GCC_ARCH: "aarch64-linux-gnu"
|
|
|
|
DEVICE_TYPE: "rk3399-gru-kevin"
|
|
|
|
KERNEL_IMAGE_NAME: "Image"
|
|
|
|
|
|
|
|
.test:
|
2019-04-30 00:33:22 +08:00
|
|
|
stage: test
|
2019-05-03 23:48:48 +08:00
|
|
|
tags:
|
|
|
|
- idle-jobs
|
2019-06-26 18:50:52 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:arm64-${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:
|
|
|
|
- mkdir -p ~/.config/
|
|
|
|
- |
|
|
|
|
echo "default:
|
|
|
|
uri: https://lava.collabora.co.uk/RPC2
|
|
|
|
timeout: 120
|
|
|
|
username: jenkins-fdo
|
|
|
|
token: $LAVA_TOKEN
|
|
|
|
" > ~/.config/lavacli.yaml
|
2019-05-03 23:48:48 +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
|
|
|
|
- curl "https://lava.collabora.co.uk/results/$lava_job_id/csv?user=jenkins-fdo&token=$LAVA_TOKEN" > raw_results.csv
|
|
|
|
- cat raw_results.csv | csvcut -c 12,3 | grep dEQP-GLES2 | sort > results/results-$lava_job_id.csv
|
|
|
|
|
|
|
|
# FIXME: Remove flip-flops from comparison files
|
2019-05-06 13:39:42 +08:00
|
|
|
- |
|
|
|
|
FLIP_FLOPS="
|
|
|
|
dEQP-GLES2.functional.clipping.triangle_vertex.clip_three.clip_neg_x_neg_z_and_pos_x_pos_z_and_neg_x_neg_y_pos_z
|
|
|
|
dEQP-GLES2.functional.clipping.triangle_vertex.clip_three.clip_pos_y_pos_z_and_neg_x_neg_y_pos_z_and_pos_x_pos_y_neg_z
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_rbo_rgb5_a1
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_rbo_rgb5_a1_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_rbo_rgba4
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_rbo_rgba4_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_npot_rbo_rgb5_a1
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_npot_rbo_rgb5_a1_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_npot_rbo_rgba4
|
|
|
|
dEQP-GLES2.functional.fbo.render.color.blend_npot_rbo_rgba4_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.color_clear.rbo_rgb5_a1
|
|
|
|
dEQP-GLES2.functional.fbo.render.color_clear.rbo_rgb5_a1_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.color_clear.rbo_rgb5_a1_stencil_index8
|
|
|
|
dEQP-GLES2.functional.fbo.render.color_clear.rbo_rgba4_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.color_clear.rbo_rgba4_stencil_index8
|
|
|
|
dEQP-GLES2.functional.fbo.render.recreate_depthbuffer.
|
|
|
|
dEQP-GLES2.functional.fbo.render.recreate_stencilbuffer.
|
|
|
|
dEQP-GLES2.functional.fbo.render.shared_colorbuffer_clear.rbo_rgb5_a1
|
|
|
|
dEQP-GLES2.functional.fbo.render.shared_colorbuffer_clear.rbo_rgba4
|
2019-06-20 13:59:01 +08:00
|
|
|
dEQP-GLES2.functional.fbo.render.shared_colorbuffer_clear.tex2d_rgb
|
|
|
|
dEQP-GLES2.functional.fbo.render.shared_colorbuffer_clear.tex2d_rgba
|
2019-05-06 13:39:42 +08:00
|
|
|
dEQP-GLES2.functional.fbo.render.shared_colorbuffer.rbo_rgb5_a1
|
|
|
|
dEQP-GLES2.functional.fbo.render.shared_colorbuffer.rbo_rgba4
|
|
|
|
dEQP-GLES2.functional.fbo.render.shared_depthbuffer.rbo_rgb5_a1_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.shared_depthbuffer.rbo_rgba4_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.stencil_clear.rbo_rgb5_a1_stencil_index8
|
|
|
|
dEQP-GLES2.functional.fbo.render.stencil.npot_rbo_rgb5_a1_stencil_index8
|
|
|
|
dEQP-GLES2.functional.fbo.render.stencil.npot_rbo_rgba4_stencil_index8
|
|
|
|
dEQP-GLES2.functional.fbo.render.stencil.rbo_rgb5_a1_stencil_index8
|
|
|
|
dEQP-GLES2.functional.fbo.render.stencil.rbo_rgba4_stencil_index8
|
|
|
|
dEQP-GLES2.functional.lifetime.attach.deleted_input.renderbuffer_framebuffer
|
|
|
|
dEQP-GLES2.functional.lifetime.attach.deleted_output.renderbuffer_framebuffer
|
|
|
|
dEQP-GLES2.functional.polygon_offset.fixed16_factor_0_slope
|
|
|
|
dEQP-GLES2.functional.polygon_offset.fixed16_factor_1_slope
|
|
|
|
dEQP-GLES2.functional.shaders.invariance.highp.loop_4
|
2019-06-20 13:59:01 +08:00
|
|
|
dEQP-GLES2.functional.shaders.matrix.mul.dynamic_highp_mat4_vec4_vertex
|
2019-06-13 21:00:35 +08:00
|
|
|
dEQP-GLES2.functional.shaders.matrix.mul.dynamic_highp_vec4_mat4_fragment
|
2019-05-06 13:39:42 +08:00
|
|
|
dEQP-GLES2.functional.shaders.operator.common_functions.smoothstep.mediump_vec3_vertex
|
|
|
|
dEQP-GLES2.functional.shaders.random.all_features.fragment.12
|
|
|
|
dEQP-GLES2.functional.shaders.random.all_features.fragment.37
|
|
|
|
dEQP-GLES2.functional.texture.units.2_units.mixed.1
|
|
|
|
dEQP-GLES2.functional.texture.units.2_units.mixed.3
|
|
|
|
dEQP-GLES2.functional.texture.units.2_units.only_2d.2
|
|
|
|
dEQP-GLES2.functional.texture.units.4_units.mixed.5
|
|
|
|
dEQP-GLES2.functional.texture.units.4_units.only_2d.0
|
2019-06-14 02:34:42 +08:00
|
|
|
dEQP-GLES2.functional.texture.units.8_units.only_cube.2
|
2019-06-13 21:00:35 +08:00
|
|
|
dEQP-GLES2.functional.texture.units.all_units.mixed.6
|
2019-05-06 13:39:42 +08:00
|
|
|
dEQP-GLES2.functional.texture.units.all_units.only_cube.4
|
|
|
|
dEQP-GLES2.functional.texture.units.all_units.only_cube.7
|
|
|
|
dEQP-GLES2.functional.texture.units.all_units.only_cube.8
|
|
|
|
"
|
2019-06-13 21:00:35 +08:00
|
|
|
|
|
|
|
# FIXME: These tests fail in RK3288 but pass on RK3399
|
|
|
|
- |
|
|
|
|
FLIP_FLOPS="$FLIP_FLOPS
|
2019-06-14 02:34:42 +08:00
|
|
|
dEQP-GLES2.functional.fragment_ops.blend.*
|
2019-06-13 21:00:35 +08:00
|
|
|
dEQP-GLES2.functional.shaders.builtin_variable.max_draw_buffers_vertex
|
2019-06-21 14:10:57 +08:00
|
|
|
dEQP-GLES2.functional.shaders.matrix.div.const_lowp_mat2_mat2_vertex
|
|
|
|
dEQP-GLES2.functional.shaders.operator.unary_operator.pre_increment_effect.highp_ivec4_vertex
|
|
|
|
dEQP-GLES2.functional.shaders.texture_functions.vertex.texture2dprojlod_vec3
|
2019-06-26 04:42:58 +08:00
|
|
|
dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec3_stts_fragment
|
|
|
|
dEQP-GLES2.functional.texture.filtering.2d.nearest_mipmap_nearest_linear_repeat_rgba8888
|
|
|
|
dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec3_stts_fragment
|
|
|
|
dEQP-GLES2.functional.shaders.loops.do_while_constant_iterations.only_continue_vertex
|
|
|
|
dEQP-GLES2.functional.fbo.render.resize.tex2d_rgb_depth_component16
|
|
|
|
dEQP-GLES2.functional.fbo.render.resize.tex2d_rgba_depth_component16
|
2019-06-19 00:02:35 +08:00
|
|
|
dEQP-GLES2.functional.texture.filtering.2d.linear_mipmap_nearest_nearest_clamp_rgba8888
|
2019-06-13 21:00:35 +08:00
|
|
|
"
|
|
|
|
|
2019-06-17 13:56:00 +08:00
|
|
|
- for test in $FLIP_FLOPS; do sed -i "/$test/d" results/expected-failures.txt results/results-$lava_job_id.csv; done
|
2019-04-30 00:33:22 +08:00
|
|
|
|
|
|
|
- PASSED=$(grep pass$ results/results-$lava_job_id.csv | wc -l)
|
|
|
|
- FAILED=$(grep fail$ results/results-$lava_job_id.csv | wc -l)
|
|
|
|
- TOTAL=$(wc -l < results/results-$lava_job_id.csv)
|
|
|
|
- 'echo "Passed: $PASSED ($(expr $PASSED \* 100 / $TOTAL)%)"'
|
|
|
|
- 'echo "Failed: $FAILED ($(expr $FAILED \* 100 / $TOTAL)%)"'
|
|
|
|
- 'echo "Total: $TOTAL"'
|
2019-06-21 14:10:57 +08:00
|
|
|
- 'if [ $TOTAL != 16374 ]; then echo "WARNING: Unexpected count of results. Incomplete run?"; fi'
|
2019-04-30 00:33:22 +08:00
|
|
|
|
|
|
|
- sed '/,pass/d' results/results-$lava_job_id.csv | sed 's/,fail//' > results/failures-$lava_job_id.txt
|
2019-06-28 14:10:29 +08:00
|
|
|
|
|
|
|
# Don't error out on RK3288
|
|
|
|
- diff -u results/expected-failures.txt results/failures-$lava_job_id.txt || [ -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-05-13 15:11:27 +08:00
|
|
|
test:armhf:
|
2019-05-03 23:48:48 +08:00
|
|
|
extends: .test
|
|
|
|
dependencies:
|
2019-05-13 15:11:27 +08:00
|
|
|
- build:armhf
|
2019-05-03 23:48:48 +08:00
|
|
|
|
2019-05-13 15:11:27 +08:00
|
|
|
test:arm64:
|
2019-05-03 23:48:48 +08:00
|
|
|
extends: .test
|
|
|
|
dependencies:
|
2019-05-13 15:11:27 +08:00
|
|
|
- build:arm64
|
2019-05-03 23:48:48 +08:00
|
|
|
|