This is an automated email from the ASF dual-hosted git repository.
englefly pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 0af82238944 [chore](ci) support to run regression pipeline mutiple
times (#26701)
0af82238944 is described below
commit 0af822389447274da02979013efcae55dc9ba6e9
Author: Dongyang Li <[email protected]>
AuthorDate: Thu Nov 9 20:16:38 2023 +0800
[chore](ci) support to run regression pipeline mutiple times (#26701)
Co-authored-by: stephen <[email protected]>
---
.github/workflows/auto_trigger_teamcity.yml | 65 +++++++++++++----------------
1 file changed, 28 insertions(+), 37 deletions(-)
diff --git a/.github/workflows/auto_trigger_teamcity.yml
b/.github/workflows/auto_trigger_teamcity.yml
index 6e2a1bf97e4..ab3e85fa6b5 100644
--- a/.github/workflows/auto_trigger_teamcity.yml
+++ b/.github/workflows/auto_trigger_teamcity.yml
@@ -57,41 +57,32 @@ jobs:
echo "latest_commit_id : ${{ env.LATEST_COMMIT }}"
set -x
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~
"buildall" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_Doris_FeUt Doris_DorisBeUt_BeUt
Doris_DorisCompile_Compile Doris_Performance_Clickbench_ClickbenchNew
Doris_ArmPipeline_P0Regression ${trigger_pipelines}"
+ reg="run
(buildall|compile|p0|p1|feut|beut|external|clickbench|pipelinex_p0|arm|tpch)(
[1-9]*[0-9]+)*"
+ comment_trigger_type="$(echo "${comment_message}" | grep -E "${reg}"
| awk -F' ' '{print $2}' | sed -n 1p)"
+ comment_repeat_times="$(echo "${comment_message}" | grep -E "${reg}"
| awk -F' ' '{print $3}' | sed -n 1p)"
+ if [[ "${comment_trigger_type}" == "buildall" ]]; then
+ trigger_pipelines="Doris_Doris_FeUt Doris_DorisBeUt_BeUt
Doris_DorisCompile_Compile Doris_Performance_Clickbench_ClickbenchNew
Doris_ArmPipeline_P0Regression"
+ elif [[ "${comment_trigger_type}" == "compile" ]]; then
+ trigger_pipelines="Doris_DorisCompile_Compile"
+ elif [[ "${comment_trigger_type}" == "p0" ]]; then
+ trigger_pipelines="Doris_DorisRegression_P0Regression"
+ elif [[ "${comment_trigger_type}" == "p1" ]]; then
+ trigger_pipelines="Doris_DorisRegression_P1Regression"
+ elif [[ "${comment_trigger_type}" == "feut" ]]; then
+ trigger_pipelines="Doris_Doris_FeUt"
+ elif [[ "${comment_trigger_type}" == "beut" ]]; then
+ trigger_pipelines="Doris_DorisBeUt_BeUt"
+ elif [[ "${comment_trigger_type}" == "external" ]]; then
+ trigger_pipelines="Doris_External_Regression"
+ elif [[ "${comment_trigger_type}" == "clickbench" ]]; then
+ trigger_pipelines="Doris_Performance_Clickbench_ClickbenchNew"
+ elif [[ "${comment_trigger_type}" == "pipelinex_p0" ]]; then
+ trigger_pipelines="Doris_DorisRegression_P0RegressionPipelineX"
+ elif [[ "${comment_trigger_type}" == "arm" ]]; then
+ trigger_pipelines="Doris_ArmPipeline_P0Regression"
+ elif [[ "${comment_trigger_type}" == "tpch" ]]; then
+ trigger_pipelines="Tpch_TpchSf100"
fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ " p0"
&& ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_DorisRegression_P0Regression
${trigger_pipelines}"
- if [[ "${comment_message}" = *"10" ]]; then repeat_times="10"; fi
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ "
pipelinex_p0" && ! "${comment_message}" =~ "Thanks for your contribution" ]];
then
- trigger_pipelines="Doris_DorisRegression_P0RegressionPipelineX
${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ "p1"
&& ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_DorisRegression_P1Regression
${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~
"feut" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_Doris_FeUt ${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~
"beut" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_DorisBeUt_BeUt ${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~
"compile" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_DorisCompile_Compile
${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~
"clickbench" && ! "${comment_message}" =~ "Thanks for your contribution" ]];
then
- trigger_pipelines="Doris_Performance_Clickbench_ClickbenchNew
${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ "arm"
&& ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_ArmPipeline_P0Regression
${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~
"external" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
- trigger_pipelines="Doris_External_Regression ${trigger_pipelines}"
- fi
- if [[ "${comment_message}" =~ "run" && "${comment_message}" =~
"just_for_test" && ! "${comment_message}" =~ "Thanks for your contribution" ]];
then
- trigger_pipelines="Doris_DorisRegression_ExternalRegression
${trigger_pipelines}"
- fi
-
if [ -z "${trigger_pipelines}" ];then
echo "Just a general comment that doesn't match any pipeline rules"
fi
@@ -134,9 +125,9 @@ jobs:
if [ "_""${same_build_sign}" == "_false" ];then
sleep 10s
echo "there is no running build or queue build, so trigger a new
!"
- echo "repeat_times: ${repeat_times}"
- if [[ -n "${repeat_times}" ]]; then
- execute_command="curl -s -X POST
${teamcity_url}/httpAuth/action.html\?add2Queue\=${pipeline}\&branchName\=pull/${pull_request_num}\&name=env.latest_pr_comment\&value=${encoded_string}\&name=env.latest_commit_id\&value=${latest_commit_id}\&name=env.repeat_times\&value=${repeat_times}"
+ echo "comment_repeat_times: ${comment_repeat_times}"
+ if [[ -n "${comment_repeat_times}" ]]; then
+ execute_command="curl -s -X POST
${teamcity_url}/httpAuth/action.html\?add2Queue\=${pipeline}\&branchName\=pull/${pull_request_num}\&name=env.latest_pr_comment\&value=${encoded_string}\&name=env.latest_commit_id\&value=${latest_commit_id}\&name=env.repeat_times\&value=${comment_repeat_times}"
else
execute_command="curl -s -X POST
${teamcity_url}/httpAuth/action.html\?add2Queue\=${pipeline}\&branchName\=pull/${pull_request_num}\&name=env.latest_pr_comment\&value=${encoded_string}\&name=env.latest_commit_id\&value=${latest_commit_id}"
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]