ci/angle: test-time structured tag checks

Let's setup the CI to enable runner script to check if the ANGLE
binaries from the container/rootfs are matching the intended version.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33421>
This commit is contained in:
Guilherme Gallo 2025-02-04 23:02:06 -03:00 committed by Marge Bot
parent 74cb5105b4
commit 3b01d6e900
6 changed files with 18 additions and 0 deletions

View file

@ -190,6 +190,8 @@ debian/s390x_build:
# Android NDK cross-build image
.android-variables:
extends:
- .container-builds-android
variables:
ANDROID_NDK_VERSION: "r27c"
ANDROID_SDK_VERSION: 34

View file

@ -7,6 +7,12 @@
section_start cuttlefish_setup "cuttlefish: setup"
set -xe
# Structured tagging check for angle
if [ -n "$USE_ANGLE" ]; then
# Bail out if the ANGLE_TAG differs from what is offered in the system
ci_tag_test_time_check "ANGLE_TAG"
fi
export HOME=/cuttlefish
export PATH=/cuttlefish/bin:$PATH
export LD_LIBRARY_PATH=/cuttlefish/lib64:${CI_PROJECT_DIR}/install/lib:$LD_LIBRARY_PATH
@ -168,6 +174,8 @@ $ADB shell stop
$ADB shell start
# Check what GLES implementation Surfaceflinger is using after copying the new mesa libraries
# Note: we are injecting the ANGLE libs in the vendor partition, so we need to check if the
# ANGLE libs are being used after the shell restart
while [ "$($ADB shell dumpsys SurfaceFlinger | grep GLES:)" = "" ] ; do sleep 1; done
MESA_RUNTIME_VERSION="$($ADB shell dumpsys SurfaceFlinger | grep GLES:)"

View file

@ -26,6 +26,8 @@ export VK_DRIVER_FILES="$PWD"/install/share/vulkan/icd.d/"$VK_DRIVER"_icd."$ARCH
export OCL_ICD_VENDORS="$PWD"/install/etc/OpenCL/vendors/
if [ -n "$USE_ANGLE" ]; then
# Are we using the right angle version?
ci_tag_test_time_check "ANGLE_TAG"
export LD_LIBRARY_PATH=/angle:$LD_LIBRARY_PATH
fi

View file

@ -178,6 +178,10 @@ yaml-toml-shell-py-test:
paths:
- results/
.test-angle:
variables:
ANGLE_TAG: ${CONDITIONAL_BUILD_ANGLE_TAG}
.b2c-vkd3d-proton-test:
variables:
HWCI_TEST_SCRIPT: install/vkd3d-runner.sh

View file

@ -15,6 +15,7 @@ radv-stoney-angle:
extends:
- .lava-test-deqp:x86_64
- .radv-stoney-test:x86_64
- .test-angle
variables:
DEQP_SUITE: radv-stoney-angle
USE_ANGLE: 1

View file

@ -370,6 +370,7 @@
.anv-angle-test:
extends:
- .anv-test
- .test-angle
variables:
VK_DRIVER: intel
USE_ANGLE: 1