From b1f77b4dd927ebf6250a907ee7a1a49eb21e1769 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Tue, 14 Jun 2022 18:51:57 +0800 Subject: [PATCH] fix whl check (#43415) --- paddle/scripts/paddle_build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 3ed5f992ed..9e4aac55f5 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -955,6 +955,9 @@ function fetch_upstream_develop_if_not_exist() { } function check_whl_size() { + if [ ${BRANCH} != 'develop' ];then + return + fi set +x pr_whl_size=`du -m ${PADDLE_ROOT}/build/pr_whl/*.whl|awk '{print $1}'` @@ -1094,6 +1097,10 @@ function check_approvals_of_unittest() { fi fi elif [ $check_times == 3 ]; then + if [ ${BRANCH} != 'develop' ];then + return + fi + rm -f fluidInference_so_size curl -O https://paddle-docker-tar.bj.bcebos.com/paddle_ci_index/fluidInference_so_size oriBuildSize=`cat fluidInference_so_size` @@ -3276,6 +3283,10 @@ function build_develop() { } function check_coverage_build() { + if [ ${BRANCH} != 'develop' ];then + return + fi + rm -f build_size curl -O https://paddle-docker-tar.bj.bcebos.com/paddle_ci_index/build_size curl -O https://xly-devops.bj.bcebos.com/PR/build_whl/${AGILE_PULL_ID}/${AGILE_REVISION}/coverage_build_size -- GitLab