未验证 提交 973cca29 编写于 作者: H huzhiqiang 提交者: GitHub

[CI] Update CI tasks #3865

上级 6ec9d32c
......@@ -70,19 +70,28 @@ function CheckLibSizeDiff() {
diff_size=$[$current_size - $develop_size]
if [ $diff_size -gt 10485 ]; then
echo_line="Your PR has increased basic inference lib for $diff_size Byte, exceeding maximum requirement of 10485 Byte (0.01M). You need Superjomn's (Yunchunwei) approval or you can contact DannyIsFunny(HuZhiqiang).\n"
check_approval 1 $Superjomn
fi
if [ -n "${echo_list}" ];then
echo "****************"
echo -e "${echo_list[@]}"
echo "There are ${failed_num} approved errors."
echo "****************"
fi
if [ -n "${echo_list}" ]; then
exit 1
echo "****************"
echo -e "${echo_list[@]}"
echo "There is an approved errors."
echo "****************"
exit 1
fi
# Todo: Code below should be applied later.
# if [ $diff_size -gt 10485 ]; then
# echo_line="Your PR has increased basic inference lib for $diff_size Byte, exceeding maximum requirement of 10485 Byte (0.01M). You need Superjomn's (Yunchunwei) approval or you can contact DannyIsFunny(HuZhiqiang).\n"
# check_approval 1 $Superjomn
# fi
#
# if [ -n "${echo_list}" ];then
# echo "****************"
# echo -e "${echo_list[@]}"
# echo "There are ${failed_num} approved errors."
# echo "****************"
# fi
#
# if [ -n "${echo_list}" ]; then
# exit 1
# fi
}
####################################################################################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册