From 04b154b847e20e47e3001045845381c016ee12e1 Mon Sep 17 00:00:00 2001 From: Valentine Burley Date: Tue, 17 Dec 2024 09:32:53 +0100 Subject: [PATCH] ci/deqp: Add a DEQP_FORCE_ASAN option Replace the last use case for for DEQP_RUNNER_OPTIONS by introducing a centralized option instead of hardcoding the path via the --env argument in various test configs. Signed-off-by: Valentine Burley Part-of: --- .gitlab-ci/common/generate-env.sh | 2 +- .gitlab-ci/cuttlefish-runner.sh | 3 +-- .gitlab-ci/deqp-runner.sh | 2 +- .gitlab-ci/test/gitlab-ci.yml | 4 ++-- src/gallium/drivers/softpipe/ci/gitlab-ci.yml | 2 +- src/gallium/frontends/lavapipe/ci/gitlab-ci.yml | 4 +--- 6 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci/common/generate-env.sh b/.gitlab-ci/common/generate-env.sh index 8bdd02d06c2..428e7fa6f80 100755 --- a/.gitlab-ci/common/generate-env.sh +++ b/.gitlab-ci/common/generate-env.sh @@ -31,9 +31,9 @@ VARS=( CROSVM_GPU_ARGS CURRENT_SECTION DEQP_BIN_DIR + DEQP_FORCE_ASAN DEQP_FRACTION DEQP_RUNNER_MAX_FAILS - DEQP_RUNNER_OPTIONS DEQP_SUITE DEQP_TEMP_DIR DEVICE_NAME diff --git a/.gitlab-ci/cuttlefish-runner.sh b/.gitlab-ci/cuttlefish-runner.sh index e57c30d2ad3..7c7234edfa4 100755 --- a/.gitlab-ci/cuttlefish-runner.sh +++ b/.gitlab-ci/cuttlefish-runner.sh @@ -104,8 +104,7 @@ $ADB shell "mkdir ${AOSP_RESULTS}; cd ${AOSP_RESULTS}/..; ./deqp-runner \ --testlog-to-xml /deqp-tools/testlog-to-xml \ --fraction-start ${CI_NODE_INDEX:-1} \ --fraction $(( CI_NODE_TOTAL * ${DEQP_FRACTION:-1})) \ - --jobs ${FDO_CI_CONCURRENT:-4} \ - $DEQP_RUNNER_OPTIONS" + --jobs ${FDO_CI_CONCURRENT:-4}" EXIT_CODE=$? set -e diff --git a/.gitlab-ci/deqp-runner.sh b/.gitlab-ci/deqp-runner.sh index cea83a08506..1196866e0fd 100755 --- a/.gitlab-ci/deqp-runner.sh +++ b/.gitlab-ci/deqp-runner.sh @@ -135,7 +135,7 @@ deqp-runner \ --jobs ${FDO_CI_CONCURRENT:-4} \ $BASELINE \ ${DEQP_RUNNER_MAX_FAILS:+--max-fails "$DEQP_RUNNER_MAX_FAILS"} \ - $DEQP_RUNNER_OPTIONS; DEQP_EXITCODE=$? + ${DEQP_FORCE_ASAN:+--env LD_PRELOAD=libasan.so.8:/install/lib/libdlclose-skip.so}; DEQP_EXITCODE=$? { set +x; } 2>/dev/null diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 13ecfe9859e..5b27a4b0552 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -239,8 +239,8 @@ yaml-toml-shell-py-test: # ARM32/64 testing of bare-metal boards attached to an x86 gitlab-runner system, using an asan mesa build .baremetal-arm32-asan-test: variables: - DEQP_RUNNER_OPTIONS: "--env LD_PRELOAD=libasan.so.8:/install/lib/libdlclose-skip.so" S3_ARTIFACT_NAME: mesa-arm32-asan-debugoptimized + DEQP_FORCE_ASAN: 1 needs: - debian/baremetal_arm32_test - job: debian-arm32-asan @@ -249,8 +249,8 @@ yaml-toml-shell-py-test: .baremetal-arm64-asan-test: variables: - DEQP_RUNNER_OPTIONS: "--env LD_PRELOAD=libasan.so.8:/install/lib/libdlclose-skip.so" S3_ARTIFACT_NAME: mesa-arm64-asan-debugoptimized + DEQP_FORCE_ASAN: 1 needs: - debian/baremetal_arm64_test - job: debian-arm64-asan diff --git a/src/gallium/drivers/softpipe/ci/gitlab-ci.yml b/src/gallium/drivers/softpipe/ci/gitlab-ci.yml index 38ed31b240f..a8640f34d73 100644 --- a/src/gallium/drivers/softpipe/ci/gitlab-ci.yml +++ b/src/gallium/drivers/softpipe/ci/gitlab-ci.yml @@ -18,7 +18,7 @@ softpipe-asan-gles31: DEQP_SUITE: softpipe-asan GPU_VERSION: softpipe-asan DEQP_FRACTION: 10 - DEQP_RUNNER_OPTIONS: "--env LD_PRELOAD=libasan.so.8" + DEQP_FORCE_ASAN: 1 extends: .softpipe-deqp-test needs: - debian/x86_64_test-gl diff --git a/src/gallium/frontends/lavapipe/ci/gitlab-ci.yml b/src/gallium/frontends/lavapipe/ci/gitlab-ci.yml index c4d13f97104..a12606a4854 100644 --- a/src/gallium/frontends/lavapipe/ci/gitlab-ci.yml +++ b/src/gallium/frontends/lavapipe/ci/gitlab-ci.yml @@ -29,9 +29,7 @@ lavapipe-full: variables: DEQP_SUITE: lvp-asan GPU_VERSION: lvp-asan - # Skip dlclose so that we get good backtraces of the leaks. - # Don't batch the tests into caselists while we're leaky. - DEQP_RUNNER_OPTIONS: "--env LD_PRELOAD=libasan.so.8:libdlclose-skip.so" + DEQP_FORCE_ASAN: 1 needs: - debian/x86_64_test-vk - debian-testing-asan