Skip to content

Commit 9a09cb4

Browse files
committed
Remind re-run ci when test exit -6
1 parent 6ea06ba commit 9a09cb4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tools/auto_parallel/ci_auto_parallel.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,16 @@ case_list[${#case_list[*]}]=gpt-3_dygraph
6464
}
6565

6666
print_info(){
67-
#解决异常退出-6的问题,CI中的偶现问题,无法发现
68-
if [[ $1 -ne 0 ]] && [[ $1 -ne 250 ]];then
67+
if [ $1 -eq 250 ];then
68+
#解决异常退出-6的问题,CI中的偶现问题,无法复现
69+
echo -e "\033[1;31m"
70+
echo -e "\033[1;31m The CI execution encountered an abnormal termination with error code exit -6. \033[0m"
71+
echo -e "\033[1;31m This is an intermittent issue. \033[0m"
72+
echo -e "\033[1;31m Please re-run the CI. \033[0m"
73+
echo -e "\033[1;31m"
74+
exit 2
75+
fi
76+
if [[ $1 -ne 0 ]];then
6977
EXCODE=2
7078
if [ ! -f ${log_path}/$2 ];then
7179
echo -e "\033[31m run $2 CI FAIL \033"
@@ -76,7 +84,7 @@ if [[ $1 -ne 0 ]] && [[ $1 -ne 250 ]];then
7684
fi
7785
exit $EXCODE
7886
else
79-
echo -e "\033[32m run $3 CI SUCCESS \033"
87+
echo -e "\033[32m The $3 CI has completed \033"
8088
fi
8189
}
8290

0 commit comments

Comments
 (0)