未验证 提交 d7d7fae1 编写于 作者: Z Zhou Wei 提交者: GitHub

Fix Link unittest exe random fail (#32891)

上级 c66586b4
...@@ -40,10 +40,8 @@ taskkill /f /im python.exe 2>NUL ...@@ -40,10 +40,8 @@ taskkill /f /im python.exe 2>NUL
taskkill /f /im nvcc.exe 2>NUL taskkill /f /im nvcc.exe 2>NUL
taskkill /f /im cicc.exe 2>NUL taskkill /f /im cicc.exe 2>NUL
taskkill /f /im ptxas.exe 2>NUL taskkill /f /im ptxas.exe 2>NUL
taskkill /f /im test_api_impl.exe 2>NUL
taskkill /f /im op_function_generator.exe 2>NUL taskkill /f /im op_function_generator.exe 2>NUL
wmic process where name="op_function_generator.exe" call terminate 2>NUL wmic process where name="op_function_generator.exe" call terminate 2>NUL
wmic process where name="test_api_impl.exe" call terminate 2>NUL
wmic process where name="cvtres.exe" call terminate 2>NUL wmic process where name="cvtres.exe" call terminate 2>NUL
wmic process where name="rc.exe" call terminate 2>NUL wmic process where name="rc.exe" call terminate 2>NUL
wmic process where name="cl.exe" call terminate 2>NUL wmic process where name="cl.exe" call terminate 2>NUL
...@@ -400,16 +398,18 @@ taskkill /f /im csc.exe 2>NUL ...@@ -400,16 +398,18 @@ taskkill /f /im csc.exe 2>NUL
taskkill /f /im nvcc.exe 2>NUL taskkill /f /im nvcc.exe 2>NUL
taskkill /f /im cicc.exe 2>NUL taskkill /f /im cicc.exe 2>NUL
taskkill /f /im ptxas.exe 2>NUL taskkill /f /im ptxas.exe 2>NUL
taskkill /f /im test_api_impl.exe 2>NUL
taskkill /f /im op_function_generator.exe 2>NUL taskkill /f /im op_function_generator.exe 2>NUL
wmic process where name="cmake.exe" call terminate 2>NUL wmic process where name="cmake.exe" call terminate 2>NUL
wmic process where name="op_function_generator.exe" call terminate 2>NUL wmic process where name="op_function_generator.exe" call terminate 2>NUL
wmic process where name="test_api_impl.exe" call terminate 2>NUL
wmic process where name="cvtres.exe" call terminate 2>NUL wmic process where name="cvtres.exe" call terminate 2>NUL
wmic process where name="rc.exe" call terminate 2>NUL wmic process where name="rc.exe" call terminate 2>NUL
wmic process where name="cl.exe" call terminate 2>NUL wmic process where name="cl.exe" call terminate 2>NUL
wmic process where name="lib.exe" call terminate 2>NUL wmic process where name="lib.exe" call terminate 2>NUL
if "%WITH_TESTING%"=="ON" (
for /F "tokens=1 delims= " %%# in ('tasklist ^| findstr /i test') do taskkill /f /im %%#
)
echo Build Paddle the %build_times% time: echo Build Paddle the %build_times% time:
if %GENERATOR% == "Ninja" ( if %GENERATOR% == "Ninja" (
ninja -j %PARALLEL_PROJECT_COUNT% ninja -j %PARALLEL_PROJECT_COUNT%
...@@ -776,15 +776,16 @@ taskkill /f /im python.exe 2>NUL ...@@ -776,15 +776,16 @@ taskkill /f /im python.exe 2>NUL
taskkill /f /im nvcc.exe 2>NUL taskkill /f /im nvcc.exe 2>NUL
taskkill /f /im cicc.exe 2>NUL taskkill /f /im cicc.exe 2>NUL
taskkill /f /im ptxas.exe 2>NUL taskkill /f /im ptxas.exe 2>NUL
taskkill /f /im test_api_impl.exe 2>NUL
taskkill /f /im op_function_generator.exe 2>NUL taskkill /f /im op_function_generator.exe 2>NUL
wmic process where name="op_function_generator.exe" call terminate 2>NUL wmic process where name="op_function_generator.exe" call terminate 2>NUL
wmic process where name="test_api_impl.exe" call terminate 2>NUL
wmic process where name="cvtres.exe" call terminate 2>NUL wmic process where name="cvtres.exe" call terminate 2>NUL
wmic process where name="rc.exe" call terminate 2>NUL wmic process where name="rc.exe" call terminate 2>NUL
wmic process where name="cl.exe" call terminate 2>NUL wmic process where name="cl.exe" call terminate 2>NUL
wmic process where name="lib.exe" call terminate 2>NUL wmic process where name="lib.exe" call terminate 2>NUL
wmic process where name="python.exe" call terminate 2>NUL wmic process where name="python.exe" call terminate 2>NUL
if "%WITH_TESTING%"=="ON" (
for /F "tokens=1 delims= " %%# in ('tasklist ^| findstr /i test') do taskkill /f /im %%#
)
echo Windows CI run successfully! echo Windows CI run successfully!
exit /b 0 exit /b 0
......
...@@ -35,8 +35,8 @@ elif [[ "$SYSTEM" == "Windows_NT" ]];then ...@@ -35,8 +35,8 @@ elif [[ "$SYSTEM" == "Windows_NT" ]];then
git remote | grep upstream git remote | grep upstream
if [ $? != 0 ]; then if [ $? != 0 ]; then
git remote add upstream https://github.com/PaddlePaddle/Paddle.git git remote add upstream https://github.com/PaddlePaddle/Paddle.git
git fetch upstream develop
fi fi
git fetch upstream ${BRANCH}
fi fi
CURBRANCH=`git rev-parse --abbrev-ref HEAD` CURBRANCH=`git rev-parse --abbrev-ref HEAD`
echo $CURBRANCH echo $CURBRANCH
......
...@@ -69,6 +69,7 @@ disable_wingpu_test="^test_model$|\ ...@@ -69,6 +69,7 @@ disable_wingpu_test="^test_model$|\
^test_py_reader_pin_memory$|\ ^test_py_reader_pin_memory$|\
^test_py_reader_push_pop$|\ ^test_py_reader_push_pop$|\
^test_reader_reset$|\ ^test_reader_reset$|\
^test_imperative_se_resnext$|\
^test_sync_batch_norm_op$|\ ^test_sync_batch_norm_op$|\
^test_imperative_static_runner_while$|\ ^test_imperative_static_runner_while$|\
^test_dataloader_keep_order$|\ ^test_dataloader_keep_order$|\
...@@ -345,6 +346,7 @@ if [ "${WITH_GPU:-OFF}" == "ON" ];then ...@@ -345,6 +346,7 @@ if [ "${WITH_GPU:-OFF}" == "ON" ];then
if [ -f "$PADDLE_ROOT/added_ut" ];then if [ -f "$PADDLE_ROOT/added_ut" ];then
added_uts=^$(awk BEGIN{RS=EOF}'{gsub(/\n/,"$|^");print}' $PADDLE_ROOT/added_ut)$ added_uts=^$(awk BEGIN{RS=EOF}'{gsub(/\n/,"$|^");print}' $PADDLE_ROOT/added_ut)$
ctest -R "(${added_uts})" --output-on-failure -C Release --repeat-until-fail 3;added_ut_error=$? ctest -R "(${added_uts})" --output-on-failure -C Release --repeat-until-fail 3;added_ut_error=$?
rm -f $PADDLE_ROOT/added_ut
if [ "$added_ut_error" != 0 ];then if [ "$added_ut_error" != 0 ];then
echo "========================================" echo "========================================"
echo "Added UT should pass three additional executions" echo "Added UT should pass three additional executions"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册