From 5a27ce44de8d13670a850aa34b1c4be0a3622a2a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Feb 2025 15:19:47 +0800 Subject: [PATCH] branch-3.0: [fix](ut) prefer to use LLVM_PROFDATA from env.sh #47351 (#47386) Cherry-picked from #47351 Co-authored-by: Dongyang Li --- cloud/script/run_all_tests.sh | 4 ++-- regression-test/pipeline/common/github-utils.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud/script/run_all_tests.sh b/cloud/script/run_all_tests.sh index 330fb00449350b..f2b5f4dd9b0b06 100644 --- a/cloud/script/run_all_tests.sh +++ b/cloud/script/run_all_tests.sh @@ -120,8 +120,8 @@ function report_coverage() { for object in ${binary_objects[@]}; do binary_objects_options[${#binary_objects_options[*]}]="-object ${object}" done - llvm-profdata merge -o ${profdata} ${profraw} - llvm-cov show -output-dir=report -format=html \ + ${LLVM_PROFDATA:-llvm-profdata} merge -o ${profdata} ${profraw} + ${LLVM_COV:-llvm-cov} show -output-dir=report -format=html \ -ignore-filename-regex='(.*gensrc/.*)|(.*_test\.cpp$)' \ -instr-profile=${profdata} \ ${binary_objects_options[*]} diff --git a/regression-test/pipeline/common/github-utils.sh b/regression-test/pipeline/common/github-utils.sh index 6e2321540726fe..361eecd394cbeb 100644 --- a/regression-test/pipeline/common/github-utils.sh +++ b/regression-test/pipeline/common/github-utils.sh @@ -283,6 +283,7 @@ file_changed_cloud_ut() { if [[ -z ${all_files} ]]; then echo "return need" && return 0; fi for af in ${all_files}; do if [[ "${af}" == 'cloud/src/'* ]] || + [[ "${af}" == 'cloud/script/'* ]] || [[ "${af}" == 'gensrc'* ]] || [[ "${af}" == 'common/cpp'* ]] || [[ "${af}" == 'cloud/test/'* ]]; then