diff --git a/tools/test_ci_op_benchmark.sh b/tools/test_ci_op_benchmark.sh index d217d7e50e9bc56a0475884b136874885cc0aeed..8dd5c9703c01af4b96de18fa076b0e0873ed7ae2 100644 --- a/tools/test_ci_op_benchmark.sh +++ b/tools/test_ci_op_benchmark.sh @@ -262,6 +262,11 @@ function check_CHANGE_OP_MAP { LOG "[ERROR] Missing test script of \"${op_name}\"(${CHANGE_OP_MAP[$op_name]}) in benchmark." fi done + if [ $exit_code -ne 0 ]; then + LOG "[INFO] See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-OP-benchmark-Manual for details." + LOG "[INFO] Or you can apply for one RD (Avin0323(Recommend), Xreki, luotao1) approval to pass this PR." + exit $exit_code + fi } # diff benchmakr result and miss op @@ -274,11 +279,6 @@ function summary_problems { exit_code=$? fi check_CHANGE_OP_MAP - if [ $exit_code -ne 0 ]; then - LOG "[INFO] See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-OP-benchmark-Manual for details." - LOG "[INFO] Or you can apply for one RD (Avin0323(Recommend), Xreki, luotao1) approval to pass this PR." - exit $exit_code - fi } @@ -288,8 +288,8 @@ function cpu_op_benchmark { prepare_benchmark_environment load_CHANGE_OP_MAP load_BENCHMARK_OP_MAP - build_whl check_CHANGE_OP_MAP + build_whl LOG "[INFO] Op benchmark run success and no error!" exit 0 }