-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
change ut file map #32841
change ut file map #32841
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tools/get_pr_ut.py
Outdated
for f in self.get_pr_files(): | ||
current_system = platform.system() | ||
if current_system == "Darwin" or current_system == "Windows": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Py3任务的目录与coverage不同,这里需要处理一下;
增加or self.suffix == ".py3"的条件判断
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
else: | ||
if self.is_only_comment(f): | ||
ut_list.append('map_comment_placeholder') | ||
onlyCommentsFilesOrXpu.append(f_judge) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来的ut_list.append('map_comment_placeholder')被删除,ut_list为空的情况存在混淆的可能;比如ut_list在符is_only_comment,和完全没有命中映射文件的情况是相同的,都为空
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
tools/get_pr_ut.py
Outdated
'https://paddle-docker-tar.bj.bcebos.com/pre_test/prec_delta', | ||
'prec_delta') | ||
if ret: | ||
with open('prec_delta' + self.suffix) as delta: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以去掉self.suffix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Others
PR changes
Others
Describe