Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
d20349b5
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d20349b5
编写于
9月 24, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
9月 24, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add unittest count ,install check on windows (#27492)
* add unittest count of windows * Reduce the number of retries
上级
8473ee9d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
7 deletion
+12
-7
cmake/generic.cmake
cmake/generic.cmake
+1
-0
paddle/scripts/installation_validate.py
paddle/scripts/installation_validate.py
+1
-0
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+10
-7
未找到文件。
cmake/generic.cmake
浏览文件 @
d20349b5
...
@@ -721,6 +721,7 @@ function(proto_library TARGET_NAME)
...
@@ -721,6 +721,7 @@ function(proto_library TARGET_NAME)
set
(
proto_hdrs
)
set
(
proto_hdrs
)
paddle_protobuf_generate_cpp
(
proto_srcs proto_hdrs
${
proto_library_SRCS
}
)
paddle_protobuf_generate_cpp
(
proto_srcs proto_hdrs
${
proto_library_SRCS
}
)
cc_library
(
${
TARGET_NAME
}
SRCS
${
proto_srcs
}
DEPS
${
proto_library_DEPS
}
protobuf
)
cc_library
(
${
TARGET_NAME
}
SRCS
${
proto_srcs
}
DEPS
${
proto_library_DEPS
}
protobuf
)
add_dependencies
(
extern_xxhash
${
TARGET_NAME
}
)
endfunction
()
endfunction
()
function
(
py_proto_compile TARGET_NAME
)
function
(
py_proto_compile TARGET_NAME
)
...
...
paddle/scripts/installation_validate.py
浏览文件 @
d20349b5
...
@@ -15,4 +15,5 @@
...
@@ -15,4 +15,5 @@
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
import
paddle
as
pd
import
paddle
as
pd
fluid
.
install_check
.
run_check
()
print
(
pd
.
__version__
)
print
(
pd
.
__version__
)
paddle/scripts/paddle_build.bat
浏览文件 @
d20349b5
...
@@ -40,6 +40,7 @@ if not defined WITH_TPCACHE set WITH_TPCACHE=ON
...
@@ -40,6 +40,7 @@ if not defined WITH_TPCACHE set WITH_TPCACHE=ON
rem -------set cache build work directory-----------
rem -------set cache build work directory-----------
rmdir
build
\python
/s/q
if
"
%WITH_CACHE%
"
==
"OFF"
(
if
"
%WITH_CACHE%
"
==
"OFF"
(
rmdir
build
/s/q
rmdir
build
/s/q
goto
:mkbuild
goto
:mkbuild
...
@@ -48,10 +49,10 @@ if "%WITH_CACHE%"=="OFF" (
...
@@ -48,10 +49,10 @@ if "%WITH_CACHE%"=="OFF" (
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
datetime
=
%%
#
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
datetime
=
%%
#
set
day_now
=
%datetime
:
~
6
,
2
%
set
day_now
=
%datetime
:
~
6
,
2
%
set
day_before
=-
1
set
day_before
=-
1
set
/p
day_before
=<
day
.txt
set
/p
day_before
=<
%work_dir%
\..\
day.txt
if
%day_now%
NEQ
%day_before%
(
if
%day_now%
NEQ
%day_before%
(
echo
%day_now%
>
day
.txt
echo
%day_now%
>
%work_dir%
\..\
day.txt
type
day
.txt
type
%work_dir%
\..\
day.txt
rmdir
build
/s/q
rmdir
build
/s/q
)
)
git
diff
origin
/develop --stat --name-only
|
findstr
"cmake CMakeLists.txt paddle_build.bat"
git
diff
origin
/develop --stat --name-only
|
findstr
"cmake CMakeLists.txt paddle_build.bat"
...
@@ -208,7 +209,7 @@ echo Build third_party the %build_times% time:
...
@@ -208,7 +209,7 @@ echo Build third_party the %build_times% time:
msbuild
/m /p
:Configuration
=
Release
/verbosity
:quiet
third_party
.vcxproj
msbuild
/m /p
:Configuration
=
Release
/verbosity
:quiet
third_party
.vcxproj
if
%ERRORLEVEL%
NEQ
0
(
if
%ERRORLEVEL%
NEQ
0
(
set
/a
build_times
=
%build_times%
+
1
set
/a
build_times
=
%build_times%
+
1
if
%build_times%
GTR
3
(
if
%build_times%
GTR
2
(
exit
/b
7
exit
/b
7
)
else
(
)
else
(
echo
Build
third_party
failed
,
will
retry
!
echo
Build
third_party
failed
,
will
retry
!
...
@@ -223,7 +224,7 @@ echo Build Paddle the %build_times% time:
...
@@ -223,7 +224,7 @@ echo Build Paddle the %build_times% time:
msbuild
/m
:
%PARALLEL_PROJECT_COUNT%
/p
:TrackFileAccess
=
false
/p
:CLToolExe
=
clcache
.exe
/p
:CLToolPath
=
%PYTHON_ROOT%
\Scripts
/p
:Configuration
=
Release
/verbosity
:minimal
paddle
.sln
msbuild
/m
:
%PARALLEL_PROJECT_COUNT%
/p
:TrackFileAccess
=
false
/p
:CLToolExe
=
clcache
.exe
/p
:CLToolPath
=
%PYTHON_ROOT%
\Scripts
/p
:Configuration
=
Release
/verbosity
:minimal
paddle
.sln
if
%ERRORLEVEL%
NEQ
0
(
if
%ERRORLEVEL%
NEQ
0
(
set
/a
build_times
=
%build_times%
+
1
set
/a
build_times
=
%build_times%
+
1
if
%build_times%
GTR
2
(
if
%build_times%
GTR
1
(
exit
/b
7
exit
/b
7
)
else
(
)
else
(
echo
Build
Paddle
failed
,
will
retry
!
echo
Build
Paddle
failed
,
will
retry
!
...
@@ -301,6 +302,7 @@ goto:eof
...
@@ -301,6 +302,7 @@ goto:eof
call
paddle_winci
\Scripts\deactivate.bat
2
>
NUL
call
paddle_winci
\Scripts\deactivate.bat
2
>
NUL
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
end
=
%%
#
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
end
=
%%
#
set
end
=
%end
:
~
4
,
10
%
set
end
=
%end
:
~
4
,
10
%
call
:timestamp
"
%start%
"
"
%end%
"
"1 card TestCases Total"
call
:timestamp
"
%start%
"
"
%end%
"
"TestCases Total"
call
:timestamp
"
%start%
"
"
%end%
"
"TestCases Total"
echo
Running
unit
tests
failed
,
will
exit
!
echo
Running
unit
tests
failed
,
will
exit
!
exit
/b
8
exit
/b
8
...
@@ -313,6 +315,7 @@ echo ========================================
...
@@ -313,6 +315,7 @@ echo ========================================
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
end
=
%%
#
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
end
=
%%
#
set
end
=
%end
:
~
4
,
10
%
set
end
=
%end
:
~
4
,
10
%
call
:timestamp
"
%start%
"
"
%end%
"
"1 card TestCases Total"
call
:timestamp
"
%start%
"
"
%end%
"
"TestCases Total"
call
:timestamp
"
%start%
"
"
%end%
"
"TestCases Total"
cd
%work_dir%
\paddle\fluid\inference\api\demo_ci
cd
%work_dir%
\paddle\fluid\inference\api\demo_ci
...
@@ -345,6 +348,8 @@ echo ============================================ >> check_change_of_unitte
...
@@ -345,6 +348,8 @@ echo ============================================ >> check_change_of_unitte
echo
EOF
>>
check_change_of_unittest
.sh
echo
EOF
>>
check_change_of_unittest
.sh
echo
spec_path
=
$
(
pwd
)
/UNITTEST
_PR.spec>>
check_change_of_unittest
.sh
echo
spec_path
=
$
(
pwd
)
/UNITTEST
_PR.spec>>
check_change_of_unittest
.sh
echo
ctest
-N
^|
awk
-F
':'
'{print $2}'
^|
sed
'/
^^
$/d'
^|
sed
'$d'
^>
$
{
spec_path
}>>
check_change_of_unittest
.sh
echo
ctest
-N
^|
awk
-F
':'
'{print $2}'
^|
sed
'/
^^
$/d'
^|
sed
'$d'
^>
$
{
spec_path
}>>
check_change_of_unittest
.sh
echo
num
=
$
(
awk
'END{print NR}'
$
{
spec_path
})>>
check_change_of_unittest
.sh
echo
echo
"Windows 1 card TestCases count is $num"
>>
check_change_of_unittest
.sh
echo
UPSTREAM_URL
=
'https://github.com/PaddlePaddle/Paddle'
>>
check_change_of_unittest
.sh
echo
UPSTREAM_URL
=
'https://github.com/PaddlePaddle/Paddle'
>>
check_change_of_unittest
.sh
echo
origin_upstream_url
=
`git remote -v
^|
awk '{print $1, $2}'
^|
uniq
^|
grep upstream
^|
awk '{print $2}'`
>>
check_change_of_unittest
.sh
echo
origin_upstream_url
=
`git remote -v
^|
awk '{print $1, $2}'
^|
uniq
^|
grep upstream
^|
awk '{print $2}'`
>>
check_change_of_unittest
.sh
echo
if
[
"$origin_upstream_url"
==
""
];
then
>>
check_change_of_unittest
.sh
echo
if
[
"$origin_upstream_url"
==
""
];
then
>>
check_change_of_unittest
.sh
...
@@ -455,8 +460,6 @@ taskkill /f /im cvtres.exe 2>NUL
...
@@ -455,8 +460,6 @@ taskkill /f /im cvtres.exe 2>NUL
taskkill
/f /im
rc
.exe
2
>
NUL
taskkill
/f /im
rc
.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
taskkill
/f /im
python
.exe
2
>
NUL
taskkill
/f /im
python
.exe
2
>
NUL
call
paddle_winci
\Scripts\deactivate.bat
2
>
NUL
del
%PADDLE_WHL_FILE_WIN%
taskkill
/f /im
python
.exe
2
>
NUL
taskkill
/f /im
python
.exe
2
>
NUL
echo
Windows
CI
run
successfully
!
echo
Windows
CI
run
successfully
!
exit
/b
0
exit
/b
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录