未验证 提交 4a48e3d1 编写于 作者: S Sing_chan 提交者: GitHub

【doc CI】simplify doc check log info (#42879)

* simplify doc check log info;test=document_fix

* test sample code error;test=document_fix

* delete test code;test=document_fix
上级 191c441a
......@@ -344,6 +344,7 @@ function abort(){
}
function check_style() {
set +x
trap 'abort' 0
set -e
......@@ -368,7 +369,7 @@ function check_style() {
if ! pre-commit run --files $file_name ; then
commit_files=off
fi
done
done
export PATH=${OLD_PATH}
......@@ -378,6 +379,7 @@ function check_style() {
exit 4
fi
trap : 0
set -x
}
#=================================================
......@@ -3063,6 +3065,7 @@ function main() {
;;
build_and_check_gpu)
set +e
set +x
check_style_info=$(check_style)
check_style_code=$?
example_info_gpu=""
......@@ -3074,6 +3077,7 @@ function main() {
example_info=$(exec_samplecode_test cpu)
example_code=$?
summary_check_problems $check_style_code $[${example_code_gpu} + ${example_code}] "$check_style_info" "${example_info_gpu}\n${example_info}"
set -x
assert_api_spec_approvals
;;
check_whl_size)
......
......@@ -103,11 +103,11 @@ fi
if [ -n "${echo_list}" ];then
echo "****************"
echo "**************************************************************"
echo "Please find RD for approval first, and then find TPM for approval."
echo -e "${echo_list[@]}"
echo "There are ${failed_num} approved errors."
echo "****************"
echo "**************************************************************"
# L40 L48 L62 has fetch the result out, but there are splitted.
if [ "${api_spec_diff}" != "" -o "${api_doc_spec_diff}" != "" ] ; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册