From 50836e1dc10dbbed1603b6b7cfd7ed75c3f7a395 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Fri, 27 Aug 2021 12:45:40 +0800 Subject: [PATCH] Fix model_benchmark_ci (#35183) * notest;test=model_benchmark_ci * notest;test=model_benchmark_ci * fix --- tools/test_ci_model_benchmark.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/test_ci_model_benchmark.sh b/tools/test_ci_model_benchmark.sh index 7149812616..6ed4041363 100644 --- a/tools/test_ci_model_benchmark.sh +++ b/tools/test_ci_model_benchmark.sh @@ -16,7 +16,7 @@ function check_whl { - bash -x paddle/scripts/paddle_build.sh build + bash -x paddle/scripts/paddle_build.sh build_only [ $? -ne 0 ] && echo "build paddle failed." && exit 1 pip uninstall -y paddlepaddle_gpu pip install build/python/dist/*.whl @@ -35,13 +35,14 @@ function check_whl { rm -rf ${PADDLE_ROOT}/build/third_party fi - bash -x paddle/scripts/paddle_build.sh build + bash -x paddle/scripts/paddle_build.sh build_only [ $? -ne 0 ] && echo "build paddle failed." && exit 1 - unzip -q python/dist/*.whl -d /tmp/develop + unzip -q build/python/dist/*.whl -d /tmp/develop sed -i '/version.py/d' /tmp/pr/*/RECORD sed -i '/version.py/d' /tmp/develop/*/RECORD diff_whl=`diff /tmp/pr/*/RECORD /tmp/develop/*/RECORD|wc -l` + [ $? -ne 0 ] && echo "diff paddle whl failed." && exit 1 if [ ${diff_whl} -eq 0 ];then echo "paddle whl does not diff in PR-CI-Model-benchmark, so skip this ci" echo "ipipe_log_param_isSkipTest_model_benchmark: 1" -- GitLab