Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
d20349b5
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
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)
set
(
proto_hdrs
)
paddle_protobuf_generate_cpp
(
proto_srcs proto_hdrs
${
proto_library_SRCS
}
)
cc_library
(
${
TARGET_NAME
}
SRCS
${
proto_srcs
}
DEPS
${
proto_library_DEPS
}
protobuf
)
add_dependencies
(
extern_xxhash
${
TARGET_NAME
}
)
endfunction
()
function
(
py_proto_compile TARGET_NAME
)
...
...
paddle/scripts/installation_validate.py
浏览文件 @
d20349b5
...
...
@@ -15,4 +15,5 @@
import
paddle.fluid
as
fluid
import
paddle
as
pd
fluid
.
install_check
.
run_check
()
print
(
pd
.
__version__
)
paddle/scripts/paddle_build.bat
浏览文件 @
d20349b5
...
...
@@ -40,6 +40,7 @@ if not defined WITH_TPCACHE set WITH_TPCACHE=ON
rem -------set cache build work directory-----------
rmdir
build
\python
/s/q
if
"
%WITH_CACHE%
"
==
"OFF"
(
rmdir
build
/s/q
goto
:mkbuild
...
...
@@ -48,10 +49,10 @@ if "%WITH_CACHE%"=="OFF" (
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
datetime
=
%%
#
set
day_now
=
%datetime
:
~
6
,
2
%
set
day_before
=-
1
set
/p
day_before
=<
day
.txt
set
/p
day_before
=<
%work_dir%
\..\
day.txt
if
%day_now%
NEQ
%day_before%
(
echo
%day_now%
>
day
.txt
type
day
.txt
echo
%day_now%
>
%work_dir%
\..\
day.txt
type
%work_dir%
\..\
day.txt
rmdir
build
/s/q
)
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:
msbuild
/m /p
:Configuration
=
Release
/verbosity
:quiet
third_party
.vcxproj
if
%ERRORLEVEL%
NEQ
0
(
set
/a
build_times
=
%build_times%
+
1
if
%build_times%
GTR
3
(
if
%build_times%
GTR
2
(
exit
/b
7
)
else
(
echo
Build
third_party
failed
,
will
retry
!
...
...
@@ -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
if
%ERRORLEVEL%
NEQ
0
(
set
/a
build_times
=
%build_times%
+
1
if
%build_times%
GTR
2
(
if
%build_times%
GTR
1
(
exit
/b
7
)
else
(
echo
Build
Paddle
failed
,
will
retry
!
...
...
@@ -301,6 +302,7 @@ goto:eof
call
paddle_winci
\Scripts\deactivate.bat
2
>
NUL
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
end
=
%%
#
set
end
=
%end
:
~
4
,
10
%
call
:timestamp
"
%start%
"
"
%end%
"
"1 card TestCases Total"
call
:timestamp
"
%start%
"
"
%end%
"
"TestCases Total"
echo
Running
unit
tests
failed
,
will
exit
!
exit
/b
8
...
...
@@ -313,6 +315,7 @@ echo ========================================
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
end
=
%%
#
set
end
=
%end
:
~
4
,
10
%
call
:timestamp
"
%start%
"
"
%end%
"
"1 card TestCases Total"
call
:timestamp
"
%start%
"
"
%end%
"
"TestCases Total"
cd
%work_dir%
\paddle\fluid\inference\api\demo_ci
...
...
@@ -345,6 +348,8 @@ echo ============================================ >> check_change_of_unitte
echo
EOF
>>
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
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
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
...
...
@@ -455,8 +460,6 @@ taskkill /f /im cvtres.exe 2>NUL
taskkill
/f /im
rc
.exe
2
>
NUL
wmic
process
where
name
=
"op_function_generator.exe"
call
terminate
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
echo
Windows
CI
run
successfully
!
exit
/b
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录