未验证 提交 df1dbff1 编写于 作者: Z zhangchunle 提交者: GitHub

update precision catalog (#39717)

上级 ec21bf98
...@@ -139,13 +139,10 @@ class PRChecker(object): ...@@ -139,13 +139,10 @@ class PRChecker(object):
""" judge is white file in pr's files. """ """ judge is white file in pr's files. """
isWhiteFile = False isWhiteFile = False
not_white_files = (PADDLE_ROOT + 'cmake/', PADDLE_ROOT + 'patches/', not_white_files = (PADDLE_ROOT + 'cmake/', PADDLE_ROOT + 'patches/',
PADDLE_ROOT + 'paddle/testing/',
PADDLE_ROOT + 'tools/dockerfile/', PADDLE_ROOT + 'tools/dockerfile/',
PADDLE_ROOT + 'tools/windows/', PADDLE_ROOT + 'tools/windows/',
PADDLE_ROOT + 'tools/test_runner.py', PADDLE_ROOT + 'tools/test_runner.py',
PADDLE_ROOT + 'tools/parallel_UT_rule.py', PADDLE_ROOT + 'tools/parallel_UT_rule.py')
PADDLE_ROOT + 'paddle/scripts/paddle_build.sh',
PADDLE_ROOT + 'paddle/scripts/paddle_build.bat')
if 'cmakelist' in filename.lower(): if 'cmakelist' in filename.lower():
isWhiteFile = False isWhiteFile = False
elif filename.startswith((not_white_files)): elif filename.startswith((not_white_files)):
...@@ -285,9 +282,21 @@ class PRChecker(object): ...@@ -285,9 +282,21 @@ class PRChecker(object):
file_list = [] file_list = []
file_dict = self.get_pr_files() file_dict = self.get_pr_files()
for filename in file_dict: for filename in file_dict:
if filename.startswith( if filename.startswith(PADDLE_ROOT + 'python/'):
(PADDLE_ROOT + 'python/', PADDLE_ROOT + 'paddle/fluid/')):
file_list.append(filename) file_list.append(filename)
elif filename.startswith(PADDLE_ROOT + 'paddle/'):
if filename.startswith((PADDLE_ROOT + 'paddle/infrt',
PADDLE_ROOT + 'paddle/utils')):
filterFiles.append(filename)
elif filename.startswith(PADDLE_ROOT + 'paddle/scripts'):
if filename.startswith(
(PADDLE_ROOT + 'paddle/scripts/paddle_build.sh',
PADDLE_ROOT + 'paddle/scripts/paddle_build.bat')):
file_list.append(filename)
else:
filterFiles.append(filename)
else:
file_list.append(filename)
else: else:
if file_dict[filename] == 'added': if file_dict[filename] == 'added':
file_list.append(filename) file_list.append(filename)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册