Skip to content

Commit

Permalink
branch-3.0: [fix](ut) prefer to use LLVM_PROFDATA from env.sh #47351 (#…
Browse files Browse the repository at this point in the history
…47386)

Cherry-picked from #47351

Co-authored-by: Dongyang Li <[email protected]>
  • Loading branch information
github-actions[bot] and hello-stephen authored Feb 8, 2025
1 parent 9305725 commit 5a27ce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/script/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[*]}
Expand Down
1 change: 1 addition & 0 deletions regression-test/pipeline/common/github-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a27ce4

Please sign in to comment.