This is an automated email from the ASF dual-hosted git repository.

liaoxin 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 25821296e65 [chore](ci) cloud_p* collect log when regression fail 
(#33302)
25821296e65 is described below

commit 25821296e65402470231a922cf05acc3439e7912
Author: Dongyang Li <[email protected]>
AuthorDate: Tue Apr 9 21:19:10 2024 +0800

    [chore](ci) cloud_p* collect log when regression fail (#33302)
---
 regression-test/pipeline/cloud_p0/run.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/regression-test/pipeline/cloud_p0/run.sh 
b/regression-test/pipeline/cloud_p0/run.sh
index 7ceb60fe3e9..6dd594163d5 100644
--- a/regression-test/pipeline/cloud_p0/run.sh
+++ b/regression-test/pipeline/cloud_p0/run.sh
@@ -43,6 +43,7 @@ echo "#### Run cloud_p0 test on Doris ####"
 DORIS_HOME="${teamcity_build_checkoutDir}/output"
 export DORIS_HOME
 exit_flag=0
+need_collect_log=false
 
 # shellcheck disable=SC2317
 run() {
@@ -66,6 +67,7 @@ run() {
         -actionParallel 2; then
         echo
     else
+        bash 
"${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh
 'set' "export need_collect_log=true"
         # regression 测试跑完后输出的汇总信息,Test 1961 suites, failed 1 suites, fatal 0 
scripts, skipped 0 scripts
         # 如果 test_suites>0 && failed_suites<=3  && 
fatal_scripts=0,就把返回状态码改为正常的0,让teamcity根据跑case的情况去判断成功还是失败
         # 这样预期能够快速 mute 不稳定的 case
@@ -89,9 +91,11 @@ export -f run
 timeout_minutes=$((${repeat_times_from_trigger:-1} * 
${BUILD_TIMEOUT_MINUTES:-180}))m
 timeout "${timeout_minutes}" bash -cx run
 exit_flag="$?"
+# shellcheck source=/dev/null
+source "$(cd "${teamcity_build_checkoutDir}" && bash 
"${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh
 'get')"
 
 echo "#### 5. check if need backup doris logs"
-if [[ ${exit_flag} != "0" ]]; then
+if [[ ${exit_flag} != "0" ]] || ${need_collect_log}; then
     check_if_need_gcore "${exit_flag}"
     if core_file_name=$(archive_doris_coredump 
"${pr_num_from_trigger}_${commit_id_from_trigger}_$(date 
+%Y%m%d%H%M%S)_doris_coredump.tar.gz"); then
         reporting_build_problem "coredump"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to