[ci](perf) adjust threshold (#29856)

Co-authored-by: stephen <hello-stephen@qq.com>
This commit is contained in:
Dongyang Li
2024-01-11 19:00:12 +08:00
committed by yiguolei
parent ebfbe0c8dd
commit f94ff21eef
4 changed files with 23 additions and 20 deletions

View File

@ -256,12 +256,13 @@ exit_flag=0
echo "#### 5. run clickbench query"
sed -i '/^run_sql \"analyze table hits with sync;\"/d' "${teamcity_build_checkoutDir}"/tools/clickbench-tools/run-clickbench-queries.sh
bash "${teamcity_build_checkoutDir}"/tools/clickbench-tools/run-clickbench-queries.sh
cold_run_time_threshold=${cold_run_time_threshold:-666} # 单位 秒
hot_run_time_threshold=${hot_run_time_threshold:-52} # 单位 秒
cold_run_time_threshold=${cold_run_time_threshold_master:-120} # 单位 秒
hot_run_time_threshold=${hot_run_time_threshold_master:-34} # 单位 秒
if [[ "${target_branch}" == "branch-2.0" ]]; then
cold_run_time_threshold=${cold_run_time_threshold:-666} # 单位 秒
hot_run_time_threshold=${hot_run_time_threshold:-55} # 单位 秒
cold_run_time_threshold=${cold_run_time_threshold_branch20:-110} # 单位 秒
hot_run_time_threshold=${hot_run_time_threshold_branch20:-34} # 单位 秒
fi
echo "INFO: cold_run_time_threshold is ${cold_run_time_threshold}, hot_run_time_threshold is ${hot_run_time_threshold}"
# result.csv 来自 run-clickbench-queries.sh 的产出
if ! check_clickbench_performance_result result.csv; then exit 1; fi
if ! (cd clickbench && bash check-query-result.sh && cd -); then exit 1; fi

View File

@ -663,15 +663,15 @@ exit_flag=0
if ! insert_into_select; then exit 1; fi
echo "#### 3. check load performance"
stream_load_json_speed_threshold=${stream_load_json_speed_threshold:-100} # 单位 MB/s
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold:-10} # 单位 MB/s
stream_load_parquet_speed_threshold=${stream_load_parquet_speed_threshold:-10} # 单位 MB/s
insert_into_select_speed_threshold=${insert_into_select_speed_threshold:-310} # 单位 Krows/s
stream_load_json_speed_threshold=${stream_load_json_speed_threshold_master:-115} # 单位 MB/s
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold_master:-15} # 单位 MB/s
stream_load_parquet_speed_threshold=${stream_load_parquet_speed_threshold_master:-22} # 单位 MB/s
insert_into_select_speed_threshold=${insert_into_select_speed_threshold_master:-700} # 单位 Krows/s
if [[ "${target_branch}" == "branch-2.0" ]]; then
stream_load_json_speed_threshold=${stream_load_json_speed_threshold:-100} # 单位 MB/s
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold:-10} # 单位 MB/s
stream_load_parquet_speed_threshold=${stream_load_parquet_speed_threshold:-10} # 单位 MB/s
insert_into_select_speed_threshold=${insert_into_select_speed_threshold:-310} # 单位 Krows/s
stream_load_json_speed_threshold=${stream_load_json_speed_threshold_branch20:-105} # 单位 MB/s
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold_branch20:-15} # 单位 MB/s
stream_load_parquet_speed_threshold=${stream_load_parquet_speed_threshold_branch20:-22} # 单位 MB/s
insert_into_select_speed_threshold=${insert_into_select_speed_threshold_branch20:-410} # 单位 Krows/s
fi
if [[ ${stream_load_json_speed} -lt ${stream_load_json_speed_threshold} ]]; then echo "ERROR: stream_load_json_speed ${stream_load_json_speed} is less than the threshold ${stream_load_json_speed_threshold}" && exit 1; fi
if [[ ${stream_load_orc_speed} -lt ${stream_load_orc_speed_threshold} ]]; then echo "ERROR: stream_load_json_speed ${stream_load_orc_speed} is less than the threshold ${stream_load_orc_speed_threshold}" && exit 1; fi

View File

@ -125,12 +125,13 @@ exit_flag=0
echo "#### 3. run tpcds-sf${SF} query"
set_session_variable runtime_filter_mode global
bash "${teamcity_build_checkoutDir}"/tools/tpcds-tools/bin/run-tpcds-queries.sh -s "${SF}" | tee "${teamcity_build_checkoutDir}"/run-tpcds-queries.log
cold_run_time_threshold=${cold_run_time_threshold:-600000} # ms
hot_run_time_threshold=${hot_run_time_threshold:-240000} # ms
cold_run_time_threshold=${cold_run_time_threshold_master:-315000} # ms
hot_run_time_threshold=${hot_run_time_threshold_master:-190000} # ms
if [[ "${target_branch}" == "branch-2.0" ]]; then
cold_run_time_threshold=${cold_run_time_threshold:-600000} # ms
hot_run_time_threshold=${hot_run_time_threshold:-300000} # ms
cold_run_time_threshold=${cold_run_time_threshold_branch20:-370000} # ms
hot_run_time_threshold=${hot_run_time_threshold_branch20:-260000} # ms
fi
echo "INFO: cold_run_time_threshold is ${cold_run_time_threshold}, hot_run_time_threshold is ${hot_run_time_threshold}"
if ! check_tpcds_result "${teamcity_build_checkoutDir}"/run-tpcds-queries.log; then exit 1; fi
line_end=$(sed -n '/^Total hot run time/=' "${teamcity_build_checkoutDir}"/run-tpcds-queries.log)
line_begin=$((line_end - 100))

View File

@ -117,12 +117,13 @@ exit_flag=0
echo "#### 3. run tpch-sf${SF} query"
set_session_variable runtime_filter_mode global
bash "${teamcity_build_checkoutDir}"/tools/tpch-tools/bin/run-tpch-queries.sh -s "${SF}" | tee "${teamcity_build_checkoutDir}"/run-tpch-queries.log
cold_run_time_threshold=${cold_run_time_threshold:-200000} # ms
hot_run_time_threshold=${hot_run_time_threshold:-50000} # ms
cold_run_time_threshold=${cold_run_time_threshold_master:-120000} # ms
hot_run_time_threshold=${hot_run_time_threshold_master:-42000} # ms
if [[ "${target_branch}" == "branch-2.0" ]]; then
cold_run_time_threshold=${cold_run_time_threshold:-200000} # ms
hot_run_time_threshold=${hot_run_time_threshold:-100000} # ms
cold_run_time_threshold=${cold_run_time_threshold_branch20:-130000} # ms
hot_run_time_threshold=${hot_run_time_threshold_branch20:-55000} # ms
fi
echo "INFO: cold_run_time_threshold is ${cold_run_time_threshold}, hot_run_time_threshold is ${hot_run_time_threshold}"
if ! check_tpch_result "${teamcity_build_checkoutDir}"/run-tpch-queries.log; then exit 1; fi
line_end=$(sed -n '/^Total hot run time/=' "${teamcity_build_checkoutDir}"/run-tpch-queries.log)
line_begin=$((line_end - 23))