From dce81ee1ed5788ae73abc61889cb973c302012a8 Mon Sep 17 00:00:00 2001 From: Zhou Wei <1183042833@qq.com> Date: Thu, 3 Nov 2022 19:35:51 +0800 Subject: [PATCH] fix paddle ci script to show more debug log (#47599) --- paddle/scripts/paddle_build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index e8af7c5a36..8b0bed07f6 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -999,6 +999,7 @@ function check_whl_size() { } function generate_upstream_develop_api_spec() { + set -x cp ${PADDLE_ROOT}/python/requirements.txt /tmp pr_whl_size=`du -m ${PADDLE_ROOT}/build/python/dist/*.whl|awk '{print $1}'` mkdir -p ${PADDLE_ROOT}/build/pr_whl && mv ${PADDLE_ROOT}/build/python/dist/*.whl ${PADDLE_ROOT}/build/pr_whl/ @@ -1010,14 +1011,17 @@ function generate_upstream_develop_api_spec() { cd ${PADDLE_ROOT} git fetch upstream $BRANCH git checkout -b develop_base_pr -t upstream/$BRANCH + echo "upstream develop git log: " git log --pretty=oneline -10 dev_commit=`git log -1|head -1|awk '{print $2}'` dev_url="https://xly-devops.bj.bcebos.com/PR/build_whl/0/${dev_commit}/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl" url_return=`curl -s -m 5 -IL ${dev_url} |awk 'NR==1{print $2}'` if [ "$url_return" == '200' ];then + echo "wget develop whl from bos! " mkdir -p ${PADDLE_ROOT}/build/python/dist && wget -q -P ${PADDLE_ROOT}/build/python/dist ${dev_url} else + echo "compile develop whl localy! " if [[ ${cmake_change} ]];then rm -rf ${PADDLE_ROOT}/build/third_party fi @@ -1029,6 +1033,7 @@ function generate_upstream_develop_api_spec() { endTime_s=`date +%s` echo "Build Time: $[ $endTime_s - $startTime_s ]s" echo "ipipe_log_param_Build_Time: $[ $endTime_s - $startTime_s ]s" >> ${PADDLE_ROOT}/build/build_summary.txt + set +x } function generate_api_spec() { -- GitLab