Skip to content

Commit ba39b56

Browse files
branch-4.0: [ci](branch-4.0) adjust pipeline for 4.0 #56296 (#56386)
Cherry-picked from #56296 Co-authored-by: Dongyang Li <[email protected]>
1 parent e031d4e commit ba39b56

File tree

9 files changed

+26
-21
lines changed

9 files changed

+26
-21
lines changed

.github/workflows/comment-to-trigger-teamcity.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ jobs:
8383
echo "COMMENT_USER_ID ${COMMENT_USER_ID} is allowed to skip buildall for branch-3.1"
8484
echo "comment_trigger=false" | tee -a "$GITHUB_OUTPUT"
8585
echo "comment_skip=true" | tee -a "$GITHUB_OUTPUT"
86+
elif [[ "${COMMENT_USER_ID}" == '9208457' && "${TARGET_BRANCH}" == *'branch-4.0'* ]]; then
87+
echo "COMMENT_USER_ID ${COMMENT_USER_ID} is allowed to skip buildall for branch-4.0"
88+
echo "comment_trigger=false" | tee -a "$GITHUB_OUTPUT"
89+
echo "comment_skip=true" | tee -a "$GITHUB_OUTPUT"
8690
else
8791
echo "COMMENT_USER_ID ${COMMENT_USER_ID} is not allowed to skip buildall."
8892
exit

regression-test/pipeline/common/teamcity-utils.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
# 控制哪些分支可以跑哪些流水线
2626
declare -A targetBranch_to_pipelines
2727
targetBranch_to_pipelines=(
28-
['master']='feut beut cloudut compile p0 p1 external arm performance cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage'
29-
['branch-3.1']='feut beut cloudut compile p0 p1 external arm performance cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage'
28+
['master']='feut beut cloudut compile p0 p1 external arm performance cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe'
29+
['branch-4.0']='feut beut cloudut compile p0 p1 external arm performance cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe'
30+
['branch-3.1']='feut beut cloudut compile p0 p1 external arm performance cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage check_coverage_fe'
3031
['branch-3.0']='feut beut cloudut compile p0 p1 external arm performance cloud_p0 cloud_p1 vault_p0 nonConcurrent check_coverage'
3132
['branch-2.1']='feut beut compile p0 p1 external arm'
3233
['branch-2.0']='feut beut compile p0 p1 external arm performance'

regression-test/pipeline/performance/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ merge_pr_to_target_branch_latest() {
7575
fi
7676
}
7777

78-
if [[ "${target_branch}" == "master" ]]; then
78+
if [[ "${target_branch}" == "master" || "${target_branch}" == "branch-4.0" ]]; then
7979
REMOTE_CCACHE='/mnt/remote_ccache_master'
8080
docker_image="apache/doris:build-env-ldb-toolchain-latest"
8181
elif [[ "${target_branch}" == "branch-3.1" ]]; then

regression-test/pipeline/performance/prepare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ source "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/doris-uti
7676
if ${skip_pipeline:=false}; then echo "INFO: skip build pipline" && exit 0; else echo "INFO: no skip"; fi
7777

7878
echo "INFO: PR target branch ${target_branch}"
79-
if ! [[ "${target_branch}" == master || "${target_branch}" == branch-2.0 ]]; then
80-
# if target branch is not master or branch-2.0, set target_branch to master to use the same doris meta and storage
79+
if ! [[ "${target_branch}" == master || "${target_branch}" == branch-4.0 ]]; then
80+
# if target branch is not master or branch-4.0, set target_branch to master to use the same doris meta and storage
8181
bash "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh 'set' "export target_branch=master"
8282
fi
8383
install_java

regression-test/pipeline/performance/run-clickbench.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ exit_flag=0
257257
bash "${teamcity_build_checkoutDir}"/tools/clickbench-tools/run-clickbench-queries.sh
258258
cold_run_time_threshold=${cold_run_time_threshold_master:-120} # 单位 秒
259259
hot_run_time_threshold=${hot_run_time_threshold_master:-34} # 单位 秒
260-
if [[ "${target_branch}" == "branch-2.0" ]]; then
261-
cold_run_time_threshold=${cold_run_time_threshold_branch20:-110} # 单位 秒
262-
hot_run_time_threshold=${hot_run_time_threshold_branch20:-34} # 单位 秒
260+
if [[ "${target_branch}" == "branch-4.0" ]]; then
261+
cold_run_time_threshold=${cold_run_time_threshold_branch40:-120} # 单位 秒
262+
hot_run_time_threshold=${hot_run_time_threshold_branch40:-34} # 单位 秒
263263
elif [[ "${target_branch}" == "branch-3.1" ]]; then
264264
cold_run_time_threshold=${cold_run_time_threshold_branch31:-120} # 单位 秒
265265
hot_run_time_threshold=${hot_run_time_threshold_branch31:-34} # 单位 秒

regression-test/pipeline/performance/run-load.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,11 @@ exit_flag=0
666666
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold_master:-15} # 单位 MB/s
667667
stream_load_parquet_speed_threshold=${stream_load_parquet_speed_threshold_master:-22} # 单位 MB/s
668668
insert_into_select_speed_threshold=${insert_into_select_speed_threshold_master:-700} # 单位 Krows/s
669-
if [[ "${target_branch}" == "branch-2.0" ]]; then
670-
stream_load_json_speed_threshold=${stream_load_json_speed_threshold_branch20:-105} # 单位 MB/s
671-
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold_branch20:-15} # 单位 MB/s
672-
stream_load_parquet_speed_threshold=${stream_load_parquet_speed_threshold_branch20:-22} # 单位 MB/s
673-
insert_into_select_speed_threshold=${insert_into_select_speed_threshold_branch20:-410} # 单位 Krows/s
669+
if [[ "${target_branch}" == "branch-4.0" ]]; then
670+
stream_load_json_speed_threshold=${stream_load_json_speed_threshold_branch40:-115} # 单位 MB/s
671+
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold_branch40:-15} # 单位 MB/s
672+
stream_load_parquet_speed_threshold=${stream_load_parquet_speed_threshold_branch40:-22} # 单位 MB/s
673+
insert_into_select_speed_threshold=${insert_into_select_speed_threshold_branch40:-700} # 单位 Krows/s
674674
elif [[ "${target_branch}" == "branch-3.1" ]]; then
675675
stream_load_json_speed_threshold=${stream_load_json_speed_threshold_branch31:-115} # 单位 MB/s
676676
stream_load_orc_speed_threshold=${stream_load_orc_speed_threshold_branch31:-15} # 单位 MB/s

regression-test/pipeline/performance/run-tpcds.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ exit_flag=0
127127
echo
128128
cold_run_time_threshold=${cold_run_time_threshold_master:-315000} # ms
129129
hot_run_time_threshold=${hot_run_time_threshold_master:-190000} # ms
130-
if [[ "${target_branch}" == "branch-2.0" ]]; then
131-
cold_run_time_threshold=${cold_run_time_threshold_branch20:-370000} # ms
132-
hot_run_time_threshold=${hot_run_time_threshold_branch20:-260000} # ms
130+
if [[ "${target_branch}" == "branch-4.0" ]]; then
131+
cold_run_time_threshold=${cold_run_time_threshold_branch40:-370000} # ms
132+
hot_run_time_threshold=${hot_run_time_threshold_branch40:-260000} # ms
133133
elif [[ "${target_branch}" == "branch-3.1" ]]; then
134134
cold_run_time_threshold=${cold_run_time_threshold_branch31:-315000} # ms
135135
hot_run_time_threshold=${hot_run_time_threshold_branch31:-190000} # ms

regression-test/pipeline/performance/run-tpch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ exit_flag=0
119119
echo
120120
cold_run_time_threshold=${cold_run_time_threshold_master:-120000} # ms
121121
hot_run_time_threshold=${hot_run_time_threshold_master:-42000} # ms
122-
if [[ "${target_branch}" == "branch-2.0" ]]; then
123-
cold_run_time_threshold=${cold_run_time_threshold_branch20:-130000} # ms
124-
hot_run_time_threshold=${hot_run_time_threshold_branch20:-55000} # ms
122+
if [[ "${target_branch}" == "branch-4.0" ]]; then
123+
cold_run_time_threshold=${cold_run_time_threshold_branch40:-120000} # ms
124+
hot_run_time_threshold=${hot_run_time_threshold_branch40:-42000} # ms
125125
elif [[ "${target_branch}" == "branch-3.1" ]]; then
126126
cold_run_time_threshold=${cold_run_time_threshold_branch31:-120000} # ms
127127
hot_run_time_threshold=${hot_run_time_threshold_branch31:-42000} # ms

regression-test/pipeline/vault_p0/prepare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ fi
6767
# shellcheck source=/dev/null
6868
source "$(bash "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh 'get')"
6969
if ${skip_pipeline:=false}; then echo "INFO: skip build pipline" && exit 0; else echo "INFO: no skip"; fi
70-
if [[ "${target_branch}" == "master" || "${target_branch}" == "branch-3.1" || "${target_branch}" == "branch-3.0" ]]; then
70+
if [[ "${target_branch}" == "master" || "${target_branch}" == "branch-4.0" || "${target_branch}" == "branch-3.1" || "${target_branch}" == "branch-3.0" ]]; then
7171
echo "INFO: PR target branch ${target_branch}"
7272
install_java
7373
else
74-
echo "WARNING: PR target branch ${target_branch} is NOT in (master, branch-3.1, branch-3.0), skip pipeline."
74+
echo "WARNING: PR target branch ${target_branch} is NOT in (master, branch-4.0, branch-3.1, branch-3.0), skip pipeline."
7575
bash "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh 'set' "export skip_pipeline=true"
7676
exit 0
7777
fi

0 commit comments

Comments
 (0)