From c672464844eb47d6cebd6f35d28bcc66c6bd90df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Roukala=20=28n=C3=A9=20Peres=29?= Date: Tue, 19 Apr 2022 10:08:13 +0300 Subject: [PATCH] ci/b2c: fix the generation of the IMAGE_UNDER_TEST variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `IMAGE_UNDER_TEST` variable set in `.b2c-test` got broken with the merge of 7d474c1 (ci: Move most stuff out of root .gitlab-ci.yml). During the shuffling, the `MESA_BASE_TAG` and `MESA_IMAGE_TAG` variables were dropped, leading to `IMAGE_UNDER_TEST` being an unexisting container. To make this issue less likely to happen in the future, this patch drops the code duplication that led to `IMAGE_UNDER_TEST` to be the same as `MESA_IMAGE` and instead re-uses .use-debian/x86_test-vk to generate `MESA_IMAGE`, which we then use verbatim in `IMAGE_UNDER_TEST`. The renaming is `MESA_IMAGE` into `IMAGE_UNDER_TEST` there to make the distinction clear between the image run by gitlab-runner (what is usually called `MESA_IMAGE` but we instead hardcode to valve-infra's trigger container), and the image we are running on the test machines. Fixes: 7d474c1 (ci: Move most stuff out of root .gitlab-ci.yml) Signed-off-by: Martin Roukala (né Peres) Reviewed-by: Charlie Turner Part-of: --- .gitlab-ci/test/gitlab-ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 585e4474c17..888d7386316 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -181,11 +181,7 @@ # built as part of the CI in the boot2container project. image: registry.freedesktop.org/mupuf/valve-infra/mesa-trigger:2022-03-03.2 extends: - # Only pull in what is needed to build up the MESA_IMAGE (which is - # called for clarity IMAGE_UNDER_TEST). This is in distinction to - # the image within which the job runs on the runner machines. The - # IMAGE_UNDER_TEST is deployed to the DUTs. - - .incorporate-base-tag+templates-commit + - .use-debian/x86_test-vk variables: # No need by default to pull the whole repo GIT_STRATEGY: none @@ -206,8 +202,11 @@ B2C_TIMEOUT_OVERALL_MINUTES: 240 B2C_TIMEOUT_RETRIES: 0 - MESA_IMAGE_PATH: "debian/x86_test-vk" - IMAGE_UNDER_TEST: "$CI_REGISTRY_IMAGE/${MESA_IMAGE_PATH}:${FDO_DISTRIBUTION_TAG}" + # As noted in the top description, we make a distinction between the + # container used by gitlab-runner to queue the work, and the container + # used by the DUTs/test machines. To make this distinction quite clear, + # we rename the MESA_IMAGE variable into IMAGE_UNDER_TEST. + IMAGE_UNDER_TEST: "$MESA_IMAGE" INSTALL_TARBALL: "./artifacts/install.tar" CI_VALVE_ARTIFACTS: "./artifacts/valve"