Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
61443a0e
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
61443a0e
编写于
2月 28, 2022
作者:
T
tianshuo78520a
提交者:
GitHub
2月 28, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change CI-Build build develop (#39863)
上级
23aa7a36
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
14 addition
and
69 deletion
+14
-69
.gitignore
.gitignore
+1
-0
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+13
-22
tools/check_file_suffix.py
tools/check_file_suffix.py
+0
-47
未找到文件。
.gitignore
浏览文件 @
61443a0e
...
...
@@ -20,6 +20,7 @@ build/
build_doc/
*.user
*.tmp
*.pyc
.vscode
.idea
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
61443a0e
...
...
@@ -2592,22 +2592,6 @@ function reuse_so_cache() {
fi
}
function
find_temporary_files
()
{
set
+x
jsonData
=
`
curl
\
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
\
-H
"Accept: application/vnd.github.v3+json"
\
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/files
`
result
=
`
echo
${
jsonData
}
|python
${
PADDLE_ROOT
}
/tools/check_file_suffix.py
`
if
[
${#
result
}
-gt
0
]
then
echo
${
result
}
exit
65
fi
}
function
trt_convert_test
()
{
set
+e
cd
${
PADDLE_ROOT
}
...
...
@@ -2638,10 +2622,19 @@ function build_pr_and_develop() {
rm
-rf
${
PADDLE_ROOT
}
/build/Makefile
${
PADDLE_ROOT
}
/build/CMakeCache.txt
rm
-rf
${
PADDLE_ROOT
}
/build/third_party
fi
git fetch upstream develop
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
mkdir
${
PADDLE_ROOT
}
/build/dev_whl
&&
wget
-P
${
PADDLE_ROOT
}
/build/dev_whl
${
dev_url
}
else
git checkout
-b
develop_base_pr upstream/
$BRANCH
cmake_gen_and_build
${
PYTHON_ABI
:-
""
}
${
parallel_number
}
generate_api_spec
"
$1
"
"DEV"
mkdir
${
PADDLE_ROOT
}
/build/dev_whl
&&
cp
${
PADDLE_ROOT
}
/build/python/dist/
*
.whl
${
PADDLE_ROOT
}
/build/dev_whl
fi
}
function
build_develop
()
{
...
...
@@ -2669,7 +2662,6 @@ function main() {
set
+e
check_style_info
=
$(
check_style
)
check_style_code
=
$?
find_temporary_files
generate_upstream_develop_api_spec
${
PYTHON_ABI
:-
""
}
${
parallel_number
}
cmake_gen_and_build
${
PYTHON_ABI
:-
""
}
${
parallel_number
}
check_sequence_op_unittest
...
...
@@ -2689,7 +2681,6 @@ function main() {
;;
build_and_check_cpu
)
set
+e
find_temporary_files
generate_upstream_develop_api_spec
${
PYTHON_ABI
:-
""
}
${
parallel_number
}
cmake_gen_and_build
${
PYTHON_ABI
:-
""
}
${
parallel_number
}
check_sequence_op_unittest
...
...
tools/check_file_suffix.py
已删除
100644 → 0
浏览文件 @
23aa7a36
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
sys
import
json
def
check_suffix
():
suffix_arr
=
[
".pyc"
]
json_buff
=
""
for
line
in
sys
.
stdin
:
json_buff
=
""
.
join
([
json_buff
,
line
])
json_obj
=
json
.
loads
(
json_buff
)
if
not
isinstance
(
json_obj
,
list
):
print
(
'Json String Should be a list Object
\n
'
)
return
files_with_invalid_suffix
=
[]
for
i
in
range
(
len
(
json_obj
)):
file_name
=
json_obj
[
i
][
"filename"
]
if
file_name
==
None
:
continue
for
suffix
in
suffix_arr
:
if
file_name
.
endswith
(
suffix
):
files_with_invalid_suffix
.
append
(
file_name
)
break
if
len
(
files_with_invalid_suffix
)
!=
0
:
print
(
'Error: Find file(s): [
\n
'
)
for
i
in
range
(
len
(
files_with_invalid_suffix
)):
print
(
'
\t
'
+
files_with_invalid_suffix
[
i
]
+
'
\n
'
)
print
(
' ] end(s) with invalid suffix, Please check if these files are temporary.'
)
if
__name__
==
"__main__"
:
check_suffix
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录