ci: disentangle tags for containers and artifacts produced by them
In order to reduce the amount of building work and network traffic, we use docker caching. For that, we use the MESA_IMAGE_TAG and MESA_BASE_TAG env variables which build the MESA_IMAGE variable to identify different containers. We are also using these tags to identify the cached artifacts produced by other containers when those are part of the underlying OS to run directly in DUTs through the DISTRIBUTION_TAG env variable. The undesirable collateral effect is that we cannot combine a test job using a container which would like to make use of some of the cached artifacts created by another container. In other words, we cannot have a job using a DISTRIBUTION_TAG and a MESA_IMAGE using a different MESA_[IMAGE|BASE]_TAG variables. Now, we split the usage in the DISTRIBUTION_TAG through the definition of MESA_ARTIFACTS_TAG AND MESA_ARTIFACTS_BASE_TAG. Signed-off-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Martin Peres <martin.peres@mupuf.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10977>
This commit is contained in:
parent
f9ecbb1e1d
commit
1be7d87770
|
@ -306,6 +306,7 @@ x86_build-base:
|
|||
variables:
|
||||
MESA_BASE_IMAGE: "debian/x86_build-base"
|
||||
MESA_BASE_TAG: *x86_build-base
|
||||
MESA_ARTIFACTS_BASE_TAG: *x86_build-base
|
||||
needs:
|
||||
- x86_build-base
|
||||
|
||||
|
@ -438,6 +439,7 @@ arm_build:
|
|||
variables:
|
||||
MESA_IMAGE_PATH: "debian/arm_build"
|
||||
MESA_IMAGE_TAG: *arm_build
|
||||
MESA_ARTIFACTS_TAG: *arm_build
|
||||
needs:
|
||||
- arm_build
|
||||
|
||||
|
@ -449,7 +451,7 @@ arm_build:
|
|||
GIT_STRATEGY: fetch
|
||||
KERNEL_URL: "https://gitlab.freedesktop.org/gfx-ci/linux/-/archive/v5.13-rc2-for-mesa-ci-2a4a4fa4407f/v5.13-rc2-for-mesa-ci-2a4a4fa4407f.tar.bz2"
|
||||
MESA_ROOTFS_TAG: &kernel-rootfs "2021-05-21-panfrost-oops"
|
||||
DISTRIBUTION_TAG: &distribution-tag-arm "${MESA_ROOTFS_TAG}--${MESA_IMAGE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||
DISTRIBUTION_TAG: &distribution-tag-arm "${MESA_ROOTFS_TAG}--${MESA_ARTIFACTS_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||
script:
|
||||
- .gitlab-ci/container/lava_build.sh
|
||||
|
||||
|
@ -460,7 +462,7 @@ kernel+rootfs_amd64:
|
|||
image: "$FDO_BASE_IMAGE"
|
||||
variables:
|
||||
DEBIAN_ARCH: "amd64"
|
||||
DISTRIBUTION_TAG: &distribution-tag-amd64 "${MESA_ROOTFS_TAG}--${MESA_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||
DISTRIBUTION_TAG: &distribution-tag-amd64 "${MESA_ROOTFS_TAG}--${MESA_ARTIFACTS_BASE_TAG}--${MESA_TEMPLATES_COMMIT}"
|
||||
|
||||
kernel+rootfs_arm64:
|
||||
extends:
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
TEST_SUITE: "deqp"
|
||||
LAVA_TEST_SCRIPT: "/install/deqp-runner.sh"
|
||||
extends:
|
||||
- .use-x86_build-base # for same $MESA_BASE_TAG as in kernel+rootfs_amd64
|
||||
- .use-x86_build-base # for same $MESA_ARTIFACTS_BASE_TAG as in kernel+rootfs_amd64
|
||||
- .use-arm_build # ARM because it must match the architecture of the runner
|
||||
- .lava-test
|
||||
- .use-kernel+rootfs-amd64
|
||||
|
|
Loading…
Reference in New Issue