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

pr file count is greater than 30 need to run all cases (#43906)

上级 cbaebb04
......@@ -125,12 +125,16 @@ class PRChecker(object):
""" Get files in pull request. """
page = 0
file_dict = {}
file_count = 0
while True:
files = self.pr.get_files().get_page(page)
if not files:
break
for f in files:
file_dict[PADDLE_ROOT + f.filename] = f.status
file_count += 1
if file_count == 30: #if pr file count = 31, nend to run all case
break
page += 1
print("pr modify files: %s" % file_dict)
return file_dict
......@@ -282,6 +286,8 @@ class PRChecker(object):
filterFiles = []
file_list = []
file_dict = self.get_pr_files()
if len(file_dict) == 30: #if pr file count = 31, nend to run all case
return ''
for filename in file_dict:
if filename.startswith(PADDLE_ROOT + 'python/'):
file_list.append(filename)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册