From 3a8aac354cce02d3d0f9dc650bd905fb305b4e2b Mon Sep 17 00:00:00 2001 From: Zhou Wei <1183042833@qq.com> Date: Wed, 7 Dec 2022 17:58:45 +0800 Subject: [PATCH] fix ci (#48730) --- paddle/scripts/paddle_build.bat | 5 ++++- paddle/scripts/paddle_build.sh | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 254b268b95..0163946682 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -99,6 +99,10 @@ set PYTHON_VENV_ROOT=%cache_dir%\python_venv set PYTHON_EXECUTABLE=!PYTHON_VENV_ROOT!\Scripts\python.exe %PYTHON_ROOT%\python.exe -m venv --clear !PYTHON_VENV_ROOT! call !PYTHON_VENV_ROOT!\Scripts\activate.bat +if %ERRORLEVEL% NEQ 0 ( + echo activate python virtual environment failed! + exit /b 5 +) if "%WITH_PYTHON%" == "ON" ( where python @@ -640,7 +644,6 @@ pip uninstall -y paddlepaddle pip uninstall -y paddlepaddle-gpu pip install %PADDLE_WHL_FILE_WIN% if %ERRORLEVEL% NEQ 0 ( - call paddle_winci\Scripts\deactivate.bat 2>NUL echo pip install whl package failed! exit /b 1 ) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 4e563496d3..71facd9695 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -1008,9 +1008,8 @@ function generate_upstream_develop_api_spec() { cmake_change=`git diff --name-only upstream/$BRANCH | grep "cmake/external" || true` cd ${PADDLE_ROOT} - git fetch upstream $BRANCH git checkout -b develop_base_pr -t upstream/$BRANCH - echo "upstream develop git log: " + echo "develop git log: " git log --pretty=oneline -10 dev_commit=`git log -1|head -1|awk '{print $2}'` -- GitLab