Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

branch-3.0: [fix](ut) prefer to use LLVM_PROFDATA from env.sh #47351 #47386

Merged
merged 1 commit into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading