Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
8b77f870
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
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看板
未验证
提交
8b77f870
编写于
1月 18, 2022
作者:
C
chentianyu03
提交者:
GitHub
1月 18, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add CI check from pten including fluid files (#39013)
上级
bbbd75e4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
1 deletion
+14
-1
tools/check_file_diff_approvals.sh
tools/check_file_diff_approvals.sh
+14
-1
未找到文件。
tools/check_file_diff_approvals.sh
浏览文件 @
8b77f870
...
...
@@ -236,7 +236,7 @@ if [ "${HAS_MODIFIED_TENSOR}" != "" ] && [ "${GIT_PR_ID}" != "" ]; then
fi
HAS_MODIFIED_LOD_TENSOR
=
`
git diff
--name-only
upstream/
$BRANCH
|
grep
"paddle/fluid/framework/lod_tensor"
||
true
`
if
[
"
${
HAS_MODIFIED_TENSOR
}
"
!=
""
]
&&
[
"
${
GIT_PR_ID
}
"
!=
""
]
;
then
if
[
"
${
HAS_MODIFIED_
LOD_
TENSOR
}
"
!=
""
]
&&
[
"
${
GIT_PR_ID
}
"
!=
""
]
;
then
echo_line
=
"You must be approved by jim19930609 or chenwhql for paddle/fluid/framework/lod_tensor. It is being modularized and refactored. Thanks!
\n
"
check_approval 1 22561442 22334008
fi
...
...
@@ -262,6 +262,19 @@ if [ "${EMPTY_GRAD_OP_REGISTERED}" != "" ] && [ "${GIT_PT_ID}" != "" ]; then
check_approval 1 43953930 46782768 22165420 22361972
fi
HAS_MODIFIED_PTEN_FILES
=
`
git diff
--name-only
upstream/
$BRANCH
|
grep
"paddle/pten/"
||
true
`
PTEN_INCLUDE_FLUID_FILES
=
""
for
CHANGE_FILE
in
${
HAS_MODIFIED_PTEN_FILES
}
;
do
PTEN_DIR_ADDED_LINES
=
`
git diff
-U0
upstream/
$BRANCH
--
${
PADDLE_ROOT
}
/
${
CHANGE_FILE
}
|
grep
"^+"
|
grep
"#include
\"
paddle/fluid/"
||
true
`
if
[
"
${
PTEN_DIR_ADDED_LINES
}
"
!=
""
]
&&
[
"
${
GIT_PR_ID
}
"
!=
""
]
;
then
PTEN_INCLUDE_FLUID_FILES
=
"
${
PTEN_INCLUDE_FLUID_FILES
}
${
CHANGE_FILE
}
"
fi
done
if
[
"
${
PTEN_INCLUDE_FLUID_FILES
}
"
!=
""
]
&&
[
"
${
GIT_PR_ID
}
"
!=
""
]
;
then
echo_line
=
"You must have one RD (chenwhql, MingMingShangTian, YuanRisheng or zyfncg) approval for the including paddle/fluid header in paddle/pten files(
${
PTEN_INCLUDE_FLUID_FILES
}
).
\n
"
check_approval 1 chenwhql MingMingShangTian YuanRisheng zyfncg
fi
ALL_CHANGE_FILES
=
`
git diff
--numstat
upstream/
$BRANCH
|
awk
'{print $3}'
|
grep
".py"
`
ALL_OPTEST_BAN_DYGRAPH_MESSAGE
=
""
for
CHANGE_FILE
in
${
ALL_CHANGE_FILES
}
;
do
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录