-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add TimedOutTestsListener to print the full thread dump on test timeout #6
Conversation
cc @trustin |
|
||
static final String TEST_TIMED_OUT_PREFIX = "test timed out after"; | ||
|
||
private static String INDENT = " "; |
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.
I guess this could be translated to: missing final
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.
and.. how about using '\t'
instead? It seems like Throwable.printStackTrace() indents with a tab.
Global comment: Please use 4-space indentation like we do in netty/netty |
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.netty.build.test; |
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.
How about io.netty.build.junit
?
Updated |
c7b33d7
to
721955a
Compare
LGTM. Please squash so I can cherry-pick. Thanks! |
Motivation: See netty/netty#3172 Modifications: Copy TimedOutTestsListener from https://github.com/apache/hadoop/blob/18f9b77a321b225677ce23c503b41d21478fc4a7/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/TimedOutTestsListener.java Result: If a test is set the timeout parameter using junit's @test(timeout = ...) and the timeout is triggered, a full stack trace dump will be outputted and also output the deadlocks if any.
721955a
to
10a8f73
Compare
squashed |
@trustin Will you release soon? I can submit a PR for netty to add this timeout listener after that. |
ping @trustin |
Thanks for your patient. Cherry-picked: d513280 Will perform the release process and add a comment here when it's out. |
Finished the release process. Should appear in the central repository in 30 minutes. |
Motivation: See netty#3172 Modifications: netty/netty-build#6 added a junit timeout listener to the netty-build project. This patch just set it up. Result: If a test is set the timeout parameter using junit's @test(timeout = ...) and the timeout is triggered, a full stack trace dump will be outputted and also output the deadlocks if any.
Motivation: See #3172 Modifications: netty/netty-build#6 added a junit timeout listener to the netty-build project. This patch just set it up. Result: If a test is set the timeout parameter using junit's @test(timeout = ...) and the timeout is triggered, a full stack trace dump will be outputted and also output the deadlocks if any.
Motivation: See #3172 Modifications: netty/netty-build#6 added a junit timeout listener to the netty-build project. This patch just set it up. Result: If a test is set the timeout parameter using junit's @test(timeout = ...) and the timeout is triggered, a full stack trace dump will be outputted and also output the deadlocks if any.
Motivation: See netty#3172 Modifications: netty/netty-build#6 added a junit timeout listener to the netty-build project. This patch just set it up. Result: If a test is set the timeout parameter using junit's @test(timeout = ...) and the timeout is triggered, a full stack trace dump will be outputted and also output the deadlocks if any.
Motivation:
See netty/netty#3172
Modifications:
Copy TimedOutTestsListener from https://github.com/apache/hadoop/blob/18f9b77a321b225677ce23c503b41d21478fc4a7/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/TimedOutTestsListener.java
Result:
If a test is set the timeout parameter using junit's @test(timeout = ...) and the timeout is triggered, a full stack trace dump will be outputted and also output the deadlocks if any.