[chore](ci) trigger a must success pipeline (#30711)

Co-authored-by: stephen <hello-stephen@qq.com>
This commit is contained in:
Dongyang Li
2024-02-01 20:00:18 +08:00
committed by yiguolei
parent 318bd3f9de
commit f0eeb45355
2 changed files with 16 additions and 4 deletions

View File

@ -250,6 +250,13 @@ jobs:
"${{ steps.parse.outputs.COMMIT_ID_FROM_TRIGGER }}" \
"performance" \
"${{ steps.parse.outputs.COMMENT_REPEAT_TIMES }}"
trigger_or_skip_build \
"${{ steps.changes.outputs.changed_performance }}" \
"${{ steps.parse.outputs.PULL_REQUEST_NUM }}" \
"${{ steps.parse.outputs.COMMIT_ID_FROM_TRIGGER }}" \
"perf" \
"${{ steps.parse.outputs.COMMENT_REPEAT_TIMES }}"
else
echo "PR target branch not in (master, branch-2.0), skip run performance"
trigger_or_skip_build \
@ -258,4 +265,11 @@ jobs:
"${{ steps.parse.outputs.COMMIT_ID_FROM_TRIGGER }}" \
"performance" \
"${{ steps.parse.outputs.COMMENT_REPEAT_TIMES }}"
trigger_or_skip_build \
"false" \
"${{ steps.parse.outputs.PULL_REQUEST_NUM }}" \
"${{ steps.parse.outputs.COMMIT_ID_FROM_TRIGGER }}" \
"perf" \
"${{ steps.parse.outputs.COMMENT_REPEAT_TIMES }}"
fi

View File

@ -31,11 +31,10 @@ comment_to_pipeline=(
['p0']='Doris_DorisRegression_P0Regression'
['p1']='Doris_DorisRegression_P1Regression'
['external']='Doris_External_Regression'
['clickbench']='Doris_Performance_Clickbench_ClickbenchNew'
['pipelinex_p0']='Doris_DorisRegression_P0RegressionPipelineX'
['arm']='Doris_ArmPipeline_P0Regression'
['tpch']='Tpch_TpchSf100'
['performance']='Doris_PerformanceNew_Performance'
['perf']='Doris_DorisPerformance_Performance'
)
# github中评论的要触发的流水线名字
@ -52,10 +51,9 @@ conment_to_context=(
['p1']='P1 Regression (Doris Regression)'
['external']='External Regression (Doris External Regression)'
['pipelinex_p0']='P0 Regression PipelineX (Doris Regression)'
['clickbench']='clickbench-new (clickbench)'
['arm']='P0 Regression (ARM pipeline)'
['tpch']='tpch-sf100 (tpch)'
['performance']='performance (Performance New)'
['perf']='performance (Doris Performance)'
)
get_commit_id_of_build() {