From 10e0c5fd466cf08e572d1493c5af0de97bc2861d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Roukala=20=28n=C3=A9=20Peres=29?= Date: Tue, 14 Mar 2023 09:51:20 +0200 Subject: [PATCH] ci/b2c: move away from the hand-rolled initscript MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Up until now, we have been handrolling part of the init-stage2.sh in the b2c command line. Let's stop doing that and instead use the same script as every other HW farms. Signed-off-by: Martin Roukala (né Peres) Part-of: --- .gitlab-ci/test/gitlab-ci.yml | 4 ++-- src/amd/ci/gitlab-ci.yml | 4 ++-- src/gallium/drivers/zink/ci/gitlab-ci.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 1981ad2..98a6dea 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -284,7 +284,7 @@ rustfmt: [ -d "$CI_COMMON_SCRIPTS" ] || exit 1 - B2C_TEST_SCRIPT="bash -c 'source ./set-job-env-vars.sh; source ./setup-test-env.sh; tar xf ${INSTALL_TARBALL_NAME}; ${B2C_TEST_SCRIPT}'" + B2C_TEST_SCRIPT="bash -c 'tar xf ${INSTALL_TARBALL_NAME}; ./install/common/init-stage2.sh'" # The Valve CI gateway receives jobs in a YAML format. Create a # job description from the CI environment. @@ -321,11 +321,11 @@ rustfmt: # begins running on the remote DUT. set +x "$CI_COMMON_SCRIPTS"/generate-env.sh > ${JOB_FOLDER}/set-job-env-vars.sh + echo "export SCRIPTS_DIR=./install" >> ${JOB_FOLDER}/set-job-env-vars.sh chmod +x ${JOB_FOLDER}/set-job-env-vars.sh echo "Variables passed through:" cat ${JOB_FOLDER}/set-job-env-vars.sh echo "export CI_JOB_JWT=${CI_JOB_JWT}" >> ${JOB_FOLDER}/set-job-env-vars.sh - cp ${SCRIPTS_DIR}/setup-test-env.sh ${JOB_FOLDER}/setup-test-env.sh set -x # Copy the mesa install tarball to the job folder, for later extraction diff --git a/src/amd/ci/gitlab-ci.yml b/src/amd/ci/gitlab-ci.yml index c3ec13d..189222e 100644 --- a/src/amd/ci/gitlab-ci.yml +++ b/src/amd/ci/gitlab-ci.yml @@ -206,7 +206,7 @@ radeonsi-raven-va:amd64: .deqp-test-valve: variables: B2C_JOB_SUCCESS_REGEX: '^\+ DEQP_EXITCODE=0\r$' - B2C_TEST_SCRIPT: ./install/deqp-runner.sh + HWCI_TEST_SCRIPT: ./install/deqp-runner.sh .kabini-test-valve: variables: @@ -420,7 +420,7 @@ radv-fossils: - .b2c-test-radv-vk variables: B2C_JOB_SUCCESS_REGEX: 'SUCCESS: No changes found!\r$' - B2C_TEST_SCRIPT: ./install/vkd3d-proton/run.sh + HWCI_TEST_SCRIPT: ./install/vkd3d-proton/run.sh .vkd3d-kabini-valve: extends: diff --git a/src/gallium/drivers/zink/ci/gitlab-ci.yml b/src/gallium/drivers/zink/ci/gitlab-ci.yml index 2b9fc9f..7cf1d08 100644 --- a/src/gallium/drivers/zink/ci/gitlab-ci.yml +++ b/src/gallium/drivers/zink/ci/gitlab-ci.yml @@ -134,7 +134,7 @@ zink-freedreno-a630-traces: PIGLIT_PROFILES: all PIGLIT_PLATFORM: gbm RADV_PERFTEST: gpl - B2C_TEST_SCRIPT: ./install/valve/gl_combined_testing.sh + HWCI_TEST_SCRIPT: ./install/valve/gl_combined_testing.sh B2C_JOB_SUCCESS_REGEX: 'Execution is over, pipeline status: 0' # Disable reporting, since DUTs don't have internet access -- 2.7.4