-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix Mac Timeout Test #56259
Fix Mac Timeout Test #56259
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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
@@ -930,7 +939,6 @@ set -ex | |||
|
|||
function get_precision_ut_mac() { | |||
on_precision=0 | |||
serial_list="test_resnet|test_resnet_v2|test_concat_op|test_paddle_save_load" | |||
UT_list=$(ctest -N | awk -F ': ' '{print $2}' | sed '/^$/d' | sed '$d') |
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中过滤掉single_list中的单测
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.
多写一遍956行中的循环,把UT_list换成single_list,然后符合条件的单测写入新建的UT_list_prec_2变量,当触发精准测试时,加一个ctest -R "${UT_list_prec_2}" -j 1
paddle/scripts/paddle_build.sh
Outdated
if [[ "$on_precision" == "0" ]];then | ||
ctest -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile | ||
ctest -R "${single_list}" --output-on-failure -j 1 | tee $tmpfile |
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.
没有命中精准单测时的执行逻辑,改成:
ctest -E "($disable_ut_quickly|${single_list})" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile
ctest -R "${single_list}" -E "($disable_ut_quickly)" --output-on-failure -j 1 | tee $tmpfile
06866ec
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
Description
一些单测修改为串行跑,并发跑会出现timeout情况。
Pcard-67012