Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
2c5cecb1
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看板
未验证
提交
2c5cecb1
编写于
5月 06, 2022
作者:
T
tianshuo78520a
提交者:
GitHub
5月 06, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Del github api token (#42330)
上级
df113208
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
21 addition
and
26 deletion
+21
-26
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+10
-10
tools/check_api_approvals.sh
tools/check_api_approvals.sh
+1
-1
tools/check_file_diff_approvals.sh
tools/check_file_diff_approvals.sh
+1
-1
tools/check_ut.py
tools/check_ut.py
+1
-1
tools/ci_op_benchmark.sh
tools/ci_op_benchmark.sh
+1
-1
tools/coverage/cuda_clean.py
tools/coverage/cuda_clean.py
+1
-2
tools/coverage/gcda_clean.py
tools/coverage/gcda_clean.py
+1
-2
tools/coverage/pull_request.py
tools/coverage/pull_request.py
+1
-3
tools/get_pr_ut.py
tools/get_pr_ut.py
+1
-1
tools/test_ci_op_benchmark.sh
tools/test_ci_op_benchmark.sh
+1
-1
tools/windows/check_change_of_unittest.sh
tools/windows/check_change_of_unittest.sh
+2
-3
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
2c5cecb1
...
@@ -959,7 +959,7 @@ function check_whl_size() {
...
@@ -959,7 +959,7 @@ function check_whl_size() {
whldiffSize
=
`
echo
$((
$pr_whl_size
-
$dev_whl_size
))
`
whldiffSize
=
`
echo
$((
$pr_whl_size
-
$dev_whl_size
))
`
if
[
${
whldiffSize
}
-gt
10
]
;
then
if
[
${
whldiffSize
}
-gt
10
]
;
then
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22334008 22361972
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22334008 22361972
`
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
...
@@ -1053,13 +1053,13 @@ function generate_api_spec() {
...
@@ -1053,13 +1053,13 @@ function generate_api_spec() {
function
check_approvals_of_unittest
()
{
function
check_approvals_of_unittest
()
{
set
+x
set
+x
if
[
"
$GIT
HUB_API_TOKEN
"
==
""
]
||
[
"
$GIT
_PR_ID
"
==
""
]
;
then
if
[
"
$GIT_PR_ID
"
==
""
]
;
then
return
0
return
0
fi
fi
# approval_user_list: XiaoguangHu01 46782768,luotao1 6836917,phlrain 43953930,lanxianghit 47554610, zhouwei25 52485244, kolinwei 22165420
# approval_user_list: XiaoguangHu01 46782768,luotao1 6836917,phlrain 43953930,lanxianghit 47554610, zhouwei25 52485244, kolinwei 22165420
check_times
=
$1
check_times
=
$1
if
[
$check_times
==
1
]
;
then
if
[
$check_times
==
1
]
;
then
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
if
[
"
${
approval_line
}
"
!=
""
]
;
then
if
[
"
${
approval_line
}
"
!=
""
]
;
then
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22165420 52485244
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22165420 52485244
`
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
...
@@ -1073,7 +1073,7 @@ function check_approvals_of_unittest() {
...
@@ -1073,7 +1073,7 @@ function check_approvals_of_unittest() {
elif
[
$check_times
==
2
]
;
then
elif
[
$check_times
==
2
]
;
then
unittest_spec_diff
=
`
python
${
PADDLE_ROOT
}
/tools/diff_unittest.py
${
PADDLE_ROOT
}
/paddle/fluid/UNITTEST_DEV.spec
${
PADDLE_ROOT
}
/paddle/fluid/UNITTEST_PR.spec
`
unittest_spec_diff
=
`
python
${
PADDLE_ROOT
}
/tools/diff_unittest.py
${
PADDLE_ROOT
}
/paddle/fluid/UNITTEST_DEV.spec
${
PADDLE_ROOT
}
/paddle/fluid/UNITTEST_PR.spec
`
if
[
"
$unittest_spec_diff
"
!=
""
]
;
then
if
[
"
$unittest_spec_diff
"
!=
""
]
;
then
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22165420 52485244 32428676 45041955
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22165420 52485244 32428676 45041955
`
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
...
@@ -1106,7 +1106,7 @@ function check_approvals_of_unittest() {
...
@@ -1106,7 +1106,7 @@ function check_approvals_of_unittest() {
EOF
EOF
if
[
`
echo
"20 <
$AllDiffSize
"
|bc
`
-eq
1
]
;
then
if
[
`
echo
"20 <
$AllDiffSize
"
|bc
`
-eq
1
]
;
then
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 39303645 328693
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 39303645 328693
`
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
...
@@ -2853,7 +2853,7 @@ function test_op_benchmark() {
...
@@ -2853,7 +2853,7 @@ function test_op_benchmark() {
# The PR will pass quickly when get approval from specific person.
# The PR will pass quickly when get approval from specific person.
# Xreki 12538138, luotao1 6836917, ZzSean 32410583
# Xreki 12538138, luotao1 6836917, ZzSean 32410583
set
+x
set
+x
approval_line
=
$(
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
)
approval_line
=
$(
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
)
if
[
"
${
approval_line
}
"
!=
""
]
;
then
if
[
"
${
approval_line
}
"
!=
""
]
;
then
APPROVALS
=
$(
echo
${
approval_line
}
| python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 32410583 12538138 6836917
)
APPROVALS
=
$(
echo
${
approval_line
}
| python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 32410583 12538138 6836917
)
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
...
@@ -2905,11 +2905,11 @@ function summary_check_problems() {
...
@@ -2905,11 +2905,11 @@ function summary_check_problems() {
function
reuse_so_cache
()
{
function
reuse_so_cache
()
{
get_html
=
"https://api.github.com/repos/PaddlePaddle/Paddle"
get_html
=
"https://api.github.com/repos/PaddlePaddle/Paddle"
curl
-X
GET
${
get_html
}
/commits
-H
"authorization: token
${
GITHUB_API_TOKEN
}
"
>
tmp.txt
curl
-X
GET
${
get_html
}
/commits
>
tmp.txt
merge_commit
=
`
grep
"sha"
tmp.txt|
awk
-F
\"
'NR==1{print $(NF-1)}'
|
sed
's# ##g'
`
merge_commit
=
`
grep
"sha"
tmp.txt|
awk
-F
\"
'NR==1{print $(NF-1)}'
|
sed
's# ##g'
`
curl
-X
GET
${
get_html
}
/commits/
${
merge_commit
}
-H
"authorization: token
${
GITHUB_API_TOKEN
}
"
>
tmp.txt
curl
-X
GET
${
get_html
}
/commits/
${
merge_commit
}
>
tmp.txt
merge_pr
=
`
grep
-oP
-m
1
'(#[0-9]*)'
tmp.txt|
sed
's/#//g'
`
merge_pr
=
`
grep
-oP
-m
1
'(#[0-9]*)'
tmp.txt|
sed
's/#//g'
`
curl
-X
GET
${
get_html
}
/pulls/
${
merge_pr
}
/commits
-H
"authorization: token
${
GITHUB_API_TOKEN
}
"
>
tmp.txt
curl
-X
GET
${
get_html
}
/pulls/
${
merge_pr
}
/commits
>
tmp.txt
pr_commit
=
`
grep
"sha"
tmp.txt |tail
-3
|head
-1
|awk
-F
:
'{print $NF}'
|sed
's#"##g'
|sed
's#,##g'
|
sed
's# ##g'
`
pr_commit
=
`
grep
"sha"
tmp.txt |tail
-3
|head
-1
|awk
-F
:
'{print $NF}'
|sed
's#"##g'
|sed
's#,##g'
|
sed
's# ##g'
`
set
+e
set
+e
wget
-q
https://xly-devops.bj.bcebos.com/PR/Paddle/
${
merge_pr
}
/
${
pr_commit
}
/workspace/Paddle/build/proto_so.tar.gz
wget
-q
https://xly-devops.bj.bcebos.com/PR/Paddle/
${
merge_pr
}
/
${
pr_commit
}
/workspace/Paddle/build/proto_so.tar.gz
...
@@ -3003,7 +3003,7 @@ function check_coverage_build() {
...
@@ -3003,7 +3003,7 @@ function check_coverage_build() {
set
+x
set
+x
if
[
${
diff_coverage_build_size
}
-gt
3
]
;
then
if
[
${
diff_coverage_build_size
}
-gt
3
]
;
then
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 29832297 6836917 43953930
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 29832297 6836917 43953930
`
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
...
...
tools/check_api_approvals.sh
浏览文件 @
2c5cecb1
...
@@ -20,7 +20,7 @@ if [ -z ${BRANCH} ]; then
...
@@ -20,7 +20,7 @@ if [ -z ${BRANCH} ]; then
fi
fi
PADDLE_ROOT
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../"
&&
pwd
)
"
PADDLE_ROOT
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../"
&&
pwd
)
"
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
failed_num
=
0
failed_num
=
0
echo_list
=()
echo_list
=()
...
...
tools/check_file_diff_approvals.sh
浏览文件 @
2c5cecb1
...
@@ -71,7 +71,7 @@ API_FILES=("CMakeLists.txt"
...
@@ -71,7 +71,7 @@ API_FILES=("CMakeLists.txt"
"paddle/fluid/eager/backward.h"
"paddle/fluid/eager/backward.h"
)
)
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
git_files
=
`
git diff
--numstat
upstream/
$BRANCH
|
wc
-l
`
git_files
=
`
git diff
--numstat
upstream/
$BRANCH
|
wc
-l
`
git_count
=
`
git diff
--numstat
upstream/
$BRANCH
|
awk
'{sum+=$1}END{print sum}'
`
git_count
=
`
git diff
--numstat
upstream/
$BRANCH
|
awk
'{sum+=$1}END{print sum}'
`
failed_num
=
0
failed_num
=
0
...
...
tools/check_ut.py
浏览文件 @
2c5cecb1
...
@@ -24,7 +24,7 @@ class PRChecker(object):
...
@@ -24,7 +24,7 @@ class PRChecker(object):
""" PR Checker. """
""" PR Checker. """
def
__init__
(
self
):
def
__init__
(
self
):
self
.
github
=
Github
(
os
.
getenv
(
'GITHUB_API_TOKEN'
),
timeout
=
60
)
self
.
github
=
Github
(
timeout
=
60
)
self
.
repo
=
None
self
.
repo
=
None
def
check
(
self
,
filename
,
msg
):
def
check
(
self
,
filename
,
msg
):
...
...
tools/ci_op_benchmark.sh
浏览文件 @
2c5cecb1
...
@@ -307,7 +307,7 @@ function gpu_op_benchmark {
...
@@ -307,7 +307,7 @@ function gpu_op_benchmark {
# The PR will pass quickly when get approval from specific person.
# The PR will pass quickly when get approval from specific person.
# Xreki 12538138, luotao1 6836917, ZzSean 32410583
# Xreki 12538138, luotao1 6836917, ZzSean 32410583
set
+x
set
+x
approval_line
=
$(
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
)
approval_line
=
$(
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
)
if
[
-n
"
${
approval_line
}
"
]
;
then
if
[
-n
"
${
approval_line
}
"
]
;
then
APPROVALS
=
$(
echo
${
approval_line
}
| python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 32410583 12538138 6836917
)
APPROVALS
=
$(
echo
${
approval_line
}
| python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 32410583 12538138 6836917
)
LOG
"[INFO] current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
LOG
"[INFO] current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
...
...
tools/coverage/cuda_clean.py
浏览文件 @
2c5cecb1
...
@@ -30,8 +30,7 @@ def get_pull(pull_id):
...
@@ -30,8 +30,7 @@ def get_pull(pull_id):
Returns:
Returns:
github.PullRequest.PullRequest: The pull request.
github.PullRequest.PullRequest: The pull request.
"""
"""
token
=
os
.
getenv
(
'GITHUB_API_TOKEN'
)
github
=
Github
(
timeout
=
60
)
github
=
Github
(
token
,
timeout
=
60
)
repo
=
github
.
get_repo
(
'PaddlePaddle/Paddle'
)
repo
=
github
.
get_repo
(
'PaddlePaddle/Paddle'
)
pull
=
repo
.
get_pull
(
pull_id
)
pull
=
repo
.
get_pull
(
pull_id
)
...
...
tools/coverage/gcda_clean.py
浏览文件 @
2c5cecb1
...
@@ -32,8 +32,7 @@ def get_pull(pull_id):
...
@@ -32,8 +32,7 @@ def get_pull(pull_id):
Returns:
Returns:
github.PullRequest.PullRequest
github.PullRequest.PullRequest
"""
"""
token
=
os
.
getenv
(
'GITHUB_API_TOKEN'
)
github
=
Github
(
timeout
=
60
)
github
=
Github
(
token
,
timeout
=
60
)
idx
=
1
idx
=
1
while
idx
<
4
:
while
idx
<
4
:
try
:
try
:
...
...
tools/coverage/pull_request.py
浏览文件 @
2c5cecb1
...
@@ -24,8 +24,6 @@ import os
...
@@ -24,8 +24,6 @@ import os
from
github
import
Github
from
github
import
Github
token
=
os
.
getenv
(
'GITHUB_API_TOKEN'
)
def
get_pull
(
pull_id
):
def
get_pull
(
pull_id
):
"""
"""
...
@@ -35,7 +33,7 @@ def get_pull(pull_id):
...
@@ -35,7 +33,7 @@ def get_pull(pull_id):
Returns:
Returns:
github.PullRequest.PullRequest
github.PullRequest.PullRequest
"""
"""
github
=
Github
(
t
oken
,
t
imeout
=
60
)
github
=
Github
(
timeout
=
60
)
repo
=
github
.
get_repo
(
'PaddlePaddle/Paddle'
)
repo
=
github
.
get_repo
(
'PaddlePaddle/Paddle'
)
pull
=
repo
.
get_pull
(
pull_id
)
pull
=
repo
.
get_pull
(
pull_id
)
...
...
tools/get_pr_ut.py
浏览文件 @
2c5cecb1
...
@@ -35,7 +35,7 @@ class PRChecker(object):
...
@@ -35,7 +35,7 @@ class PRChecker(object):
""" PR Checker. """
""" PR Checker. """
def
__init__
(
self
):
def
__init__
(
self
):
self
.
github
=
Github
(
os
.
getenv
(
'GITHUB_API_TOKEN'
),
timeout
=
60
)
self
.
github
=
Github
(
timeout
=
60
)
self
.
repo
=
self
.
github
.
get_repo
(
'PaddlePaddle/Paddle'
)
self
.
repo
=
self
.
github
.
get_repo
(
'PaddlePaddle/Paddle'
)
self
.
py_prog_oneline
=
re
.
compile
(
'\d+\|\s*#.*'
)
self
.
py_prog_oneline
=
re
.
compile
(
'\d+\|\s*#.*'
)
self
.
py_prog_multiline_a
=
re
.
compile
(
'\d+\|\s*r?""".*?"""'
,
re
.
DOTALL
)
self
.
py_prog_multiline_a
=
re
.
compile
(
'\d+\|\s*r?""".*?"""'
,
re
.
DOTALL
)
...
...
tools/test_ci_op_benchmark.sh
浏览文件 @
2c5cecb1
...
@@ -319,7 +319,7 @@ function gpu_op_benchmark {
...
@@ -319,7 +319,7 @@ function gpu_op_benchmark {
# The PR will pass quickly when get approval from specific person.
# The PR will pass quickly when get approval from specific person.
# Xreki 12538138, luotao1 6836917, ZzSean 32410583
# Xreki 12538138, luotao1 6836917, ZzSean 32410583
set
+x
set
+x
approval_line
=
$(
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
)
approval_line
=
$(
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
)
if
[
-n
"
${
approval_line
}
"
]
;
then
if
[
-n
"
${
approval_line
}
"
]
;
then
APPROVALS
=
$(
echo
${
approval_line
}
| python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 32410583 12538138 6836917
)
APPROVALS
=
$(
echo
${
approval_line
}
| python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 32410583 12538138 6836917
)
LOG
"[INFO] current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
LOG
"[INFO] current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
...
...
tools/windows/check_change_of_unittest.sh
浏览文件 @
2c5cecb1
...
@@ -15,16 +15,15 @@
...
@@ -15,16 +15,15 @@
set
-e
set
-e
set
+x
set
+x
export
PADDLE_ROOT
=
"
$(
cd
"
$PWD
/../"
&&
pwd
)
"
export
PADDLE_ROOT
=
"
$(
cd
"
$PWD
/../"
&&
pwd
)
"
GITHUB_API_TOKEN
=
$GITHUB_API_TOKEN
GIT_PR_ID
=
$AGILE_PULL_ID
GIT_PR_ID
=
$AGILE_PULL_ID
BRANCH
=
$BRANCH
BRANCH
=
$BRANCH
if
[
"
${
GIT
HUB_API_TOKEN
}
"
==
""
]
||
[
"
${
GIT
_PR_ID
}
"
==
""
]
;
then
if
[
"
${
GIT_PR_ID
}
"
==
""
]
;
then
exit
0
exit
0
fi
fi
unittest_spec_diff
=
$(
cat
$PADDLE_ROOT
/deleted_ut |
sed
's/^/ - /g'
)
unittest_spec_diff
=
$(
cat
$PADDLE_ROOT
/deleted_ut |
sed
's/^/ - /g'
)
if
[
"
$unittest_spec_diff
"
!=
""
]
;
then
if
[
"
$unittest_spec_diff
"
!=
""
]
;
then
approval_line
=
`
curl
-H
"Authorization: token
${
GITHUB_API_TOKEN
}
"
https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
approval_line
=
`
curl https://api.github.com/repos/PaddlePaddle/Paddle/pulls/
${
GIT_PR_ID
}
/reviews?per_page
=
10000
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22165420 52485244 32428676 45041955
`
APPROVALS
=
`
echo
${
approval_line
}
|python
${
PADDLE_ROOT
}
/tools/check_pr_approval.py 1 22165420 52485244 32428676 45041955
`
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
echo
"current pr
${
GIT_PR_ID
}
got approvals:
${
APPROVALS
}
"
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
if
[
"
${
APPROVALS
}
"
==
"FALSE"
]
;
then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录