ci/angle: add structured tag check to ANGLE build time

Now everytime the ANGLE is built, we check if the conditional tag
declared in the .gitlab-ci/conditional-build-image-tags.yml is matching
the current version of the build script and its inputs

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-07 01:42:39 -03:00
committed by Marge Bot
parent 6827133592
commit 74cb5105b4
5 changed files with 39 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
VARS=(
ACO_DEBUG
ANGLE_TAG
ANV_VIDEO_DECODE
ANV_VIDEO_ENCODE
ARTIFACTS_BASE_URL

View File

@@ -1 +1,2 @@
variables:
CONDITIONAL_BUILD_ANGLE_TAG: fec96cc945650c5fe9f7188cabe80d8a

View File

@@ -9,6 +9,10 @@ set -uex
uncollapsed_section_start angle "Building ANGLE"
# 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 "ANGLE_TAG"
ANGLE_REV="6abdc11741c4932e8e64ec055e67f556a7cbb5b1"
# Set ANGLE_ARCH based on DEBIAN_ARCH if it hasn't been explicitly defined

View File

@@ -61,6 +61,32 @@
# no need to pull the whole repo to build the container image
GIT_STRATEGY: none
.container-builds-angle:
variables:
ANGLE_TAG: "${CONDITIONAL_BUILD_ANGLE_TAG}"
.container-builds-android:
extends:
- .container-builds-angle
variables:
# CI_BUILD_COMPONENTS is a space-separated list of components used during early tag checks
# If this job inherits from multiple .container-builds-*, it needs to combine them
# e.g: inherits from .container-builds-angle and .container-builds-piglit
# should make CI_BUILD_COMPONENTS="angle piglit"
CI_BUILD_COMPONENTS: "angle"
.container-builds-x86_64:
extends:
- .container-builds-angle
variables:
CI_BUILD_COMPONENTS: "angle"
.container-builds-arm64:
extends:
- .container-builds-angle
variables:
CI_BUILD_COMPONENTS: "angle"
.use-base-image:
extends:
- .container
@@ -177,6 +203,7 @@ debian/s390x_build:
debian/android_build:
extends:
- .android-variables
- .container-builds-android
- .use-debian/x86_64_build-base
variables:
MESA_IMAGE_TAG: &debian-android_build ${DEBIAN_BUILD_TAG}
@@ -460,7 +487,9 @@ debian/arm32_test-vk:
debian/arm64_test-gl:
tags:
- aarch64
extends: .use-debian/arm64_test-base
extends:
- .use-debian/arm64_test-base
- .container-builds-arm64
variables:
MESA_IMAGE_TAG: &debian-arm64_test-gl ${DEBIAN_TEST_GL_TAG}
@@ -532,6 +561,7 @@ kernel+rootfs_x86_64:
- .use-debian/x86_64_build-base
- .kernel+rootfs
- .firmware_x86_64
- .container-builds-x86_64
image: "$FDO_BASE_IMAGE"
variables:
DEBIAN_ARCH: "amd64"
@@ -543,6 +573,7 @@ kernel+rootfs_arm64:
- .use-debian/arm64_build
- .kernel+rootfs
- .firmware_arm64
- .container-builds-arm64
tags:
- aarch64
variables:

View File

@@ -40,7 +40,7 @@ variables:
DEBIAN_TEST_ANDROID_TAG: "20250217-wrappers"
DEBIAN_TEST_GL_TAG: "20250223-way-prot"
DEBIAN_TEST_VK_TAG: "20250223-way-prot"
KERNEL_ROOTFS_TAG: "20250215-tag-file"
KERNEL_ROOTFS_TAG: "20250215-buildtags"
DEBIAN_PYUTILS_IMAGE: "debian/x86_64_pyutils"
DEBIAN_PYUTILS_TAG: "20250129-lavacli"