From c32fdbc5bac1a97e5b88c5dd8551ebe9e554fe35 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Fri, 21 May 2021 09:54:44 +0800 Subject: [PATCH 1/2] fix model_bhecnmark ci --- tools/test_model_benchmark.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test_model_benchmark.sh b/tools/test_model_benchmark.sh index 8f8026b0adcef..c27001bce2e7d 100644 --- a/tools/test_model_benchmark.sh +++ b/tools/test_model_benchmark.sh @@ -24,6 +24,7 @@ function check_whl { mkdir -p /tmp/pr && mkdir -p /tmp/develop unzip -q build/python/dist/*.whl -d /tmp/pr + rm -f build/python/dist/*.whl && rm -f build/python/build/.timestamp git checkout . git checkout -b develop_base_pr upstream/$BRANCH From 4a46a2357bca24acf89edc6ef3546119275e5b10 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Fri, 21 May 2021 10:18:09 +0800 Subject: [PATCH 2/2] fix model_bhecnmark ci --- tools/test_model_benchmark.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test_model_benchmark.sh b/tools/test_model_benchmark.sh index c27001bce2e7d..ff7af4ac4d2df 100644 --- a/tools/test_model_benchmark.sh +++ b/tools/test_model_benchmark.sh @@ -30,6 +30,7 @@ function check_whl { git checkout -b develop_base_pr upstream/$BRANCH cd build make -j `nproc` + [ $? -ne 0 ] && echo "install paddle failed." && exit 1 unzip -q python/dist/*.whl -d /tmp/develop sed -i '/version.py/d' /tmp/pr/*/RECORD