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

Adjust signal trigger wait time to fix unittest random failed #28640

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

chenwhql
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

adjust signal trigger wait time to fix unittest random failed

单测并行执行时候调度存在不确定性,test_imperative_signal_handler中的单测都是让子进程主动抛出一个signal错误,然后主进程捕获这个错误从而通过验证,但由于进程调度的原因,子进程的执行可能不是马上进行的,这导致,主进程在等待几秒之后结束还没有等到子进程执行抛出错误,所以这个单测偶尔会失败,要进一步减小失败的可能,有两种方法:

  1. 延长主进程等待时间
  2. 设置为独占执行的单测

这里采取第一种方法修复

@paddle-bot-old
Copy link

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

@chenwhql chenwhql merged commit a083c76 into PaddlePaddle:develop Nov 16, 2020
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