Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle remove files in pr #32940

Merged
merged 1 commit into from
May 20, 2021
Merged

Conversation

lelelelelez
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

当PR中删除某个文件时,get_pr_ut.py还会去检测此次修改是否为文档类的修改,如图
image
此PR修改这个问题

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -130,7 +130,8 @@ def get_pr_files(self):
if not files:
break
for f in files:
file_list.append(PADDLE_ROOT + f.filename)
if f.status != 'removed':
file_list.append(PADDLE_ROOT + f.filename)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

移除的文件也需要跑对应单测吧,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前的方案是检测到移除掉的文件,就跑全量。
后面持续优化

Copy link
Contributor

@XieYunshen XieYunshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lelelelelez lelelelelez merged commit 7e27b5a into PaddlePaddle:develop May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants