ci/vkd3d: Use structured tagging for vkd3d-proton

Structured tagging captures a checksum of the component we think we're
building, and verifies this through the chain.

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35167>
This commit is contained in:
Valentine Burley 2025-05-27 10:45:46 +02:00 committed by Marge Bot
parent 84bee4571c
commit 2b7ddc7d71
6 changed files with 22 additions and 2 deletions

View file

@ -3,3 +3,4 @@ variables:
CONDITIONAL_BUILD_CROSVM_TAG: bb7f75d912ef43be8c9204385d79820a
CONDITIONAL_BUILD_FLUSTER_TAG: 3bc3afd7468e106afcbfd569a85f34f9
CONDITIONAL_BUILD_PIGLIT_TAG: 009be6e9949c1121f67c8a3985b08505
CONDITIONAL_BUILD_VKD3D_PROTON_TAG: 5b73ce9ca2be32a54b88af1949e31ace

View file

@ -7,6 +7,10 @@ set -ex
section_start vkd3d-proton "Building vkd3d-proton"
# Do a very early check to make sure the tag is correct without the need of
# setting up the environment variables locally
ci_tag_build_time_check "VKD3D_PROTON_TAG"
VKD3D_PROTON_COMMIT="041cfa75580090c6b30af2f2721015d15493f14b"
VKD3D_PROTON_DST_DIR="/vkd3d-proton-tests"

View file

@ -69,7 +69,7 @@
FDO_DISTRIBUTION_EXEC: 'bash .gitlab-ci/container/container_job_trampoline.sh "${CI_JOB_NAME}"'
# no need to pull the whole repo to build the container image
GIT_STRATEGY: none
CI_BUILD_COMPONENTS: "$CI_BUILD_COMPONENTS_ANGLE $CI_BUILD_COMPONENTS_CROSVM $CI_BUILD_COMPONENTS_FLUSTER $CI_BUILD_COMPONENTS_PIGLIT"
CI_BUILD_COMPONENTS: "$CI_BUILD_COMPONENTS_ANGLE $CI_BUILD_COMPONENTS_CROSVM $CI_BUILD_COMPONENTS_FLUSTER $CI_BUILD_COMPONENTS_PIGLIT $CI_BUILD_COMPONENTS_VKD3D_PROTON"
.container-builds-angle:
variables:
@ -91,6 +91,11 @@
PIGLIT_TAG: "${CONDITIONAL_BUILD_PIGLIT_TAG}"
CI_BUILD_COMPONENTS_PIGLIT: piglit
.container-builds-vkd3d-proton:
variables:
VKD3D_PROTON_TAG: "${CONDITIONAL_BUILD_VKD3D_PROTON_TAG}"
CI_BUILD_COMPONENTS_VKD3D_PROTON: vkd3d-proton
.container-builds-android:
extends:
- .container-builds-angle
@ -115,6 +120,7 @@
.container-builds-vk:
extends:
- .container-builds-piglit
- .container-builds-vkd3d-proton
# Export the container rootfs and upload it to S3
.export-container:

View file

@ -26,7 +26,7 @@ variables:
DEBIAN_TEST_ANDROID_TAG: "20250603-curl-O-2"
DEBIAN_TEST_GL_TAG: "20250603-vkcts-main"
DEBIAN_TEST_VIDEO_TAG: "20250609-helper"
DEBIAN_TEST_VK_TAG: "20250603-vkcts-main"
DEBIAN_TEST_VK_TAG: "20250609-vkd3d"
ALPINE_X86_64_BUILD_TAG: "20250423-rootfs"
ALPINE_X86_64_LAVA_SSH_TAG: "20250423-rootfs"

View file

@ -203,6 +203,7 @@ yaml-toml-shell-py-test:
.test-vkd3d-proton:
variables:
VKD3D_PROTON_TAG: ${CONDITIONAL_BUILD_VKD3D_PROTON_TAG}
HWCI_TEST_SCRIPT: install/vkd3d-runner.sh
.piglit-traces-test:

View file

@ -15,6 +15,14 @@ if [[ -z "$VK_DRIVER" ]]; then
exit 1
fi
if [ -z "$VKD3D_PROTON_TAG" ]; then
echo "VKD3D_PROTON_TAG must be set to the conditional build tag"
exit 1
fi
# Are we using the right vkd3d-proton version?
ci_tag_test_time_check "VKD3D_PROTON_TAG"
INSTALL=$(realpath -s "$PWD"/install)
# Set up the driver environment.