Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343448 - react for new dump capture in test framework
Summary: react for new dump capture in test framework
Status: RESOLVED FIXED
Alias: None
Product: WTP Releng
Classification: WebTools
Component: releng (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.10.0   Edit
Assignee: David Williams CLA
QA Contact: David Williams CLA
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 14:26 EDT by David Williams CLA
Modified: 2018-06-29 15:23 EDT (History)
0 users

See Also:
david_williams: pmc_approved+
david_williams: pmc_approved? (raghunathan.srinivasan)
david_williams: pmc_approved? (naci.dai)
david_williams: pmc_approved? (deboer)
david_williams: pmc_approved? (neil.hauge)
david_williams: pmc_approved? (kaloyan)
david_williams: pmc_approved? (cbridgha)


Attachments
patch to add timeout to vm args, and udpate to latest platform to build with (1.62 KB, patch)
2011-05-17 15:04 EDT, David Williams CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2011-04-20 14:26:45 EDT
See 

http://dev.eclipse.org/mhonarc/lists/platform-releng-dev/msg18345.html

for some background, but if I'm reading it right, we can get the test framework to capture two thread dumps right before a test times out. 

We will need to update our custom "library.xml" file to pass in the ${timeout} value, as they did. (See 
https://bugs.eclipse.org/bugs/attachment.cgi?id=192770&action=diff 
for details.
Comment 1 David Williams CLA 2011-04-20 14:30:19 EDT
Oh, correction ... now that I'm reading the referenced patch, it is not technically a "thread dump" ... just all the (active) stack traces at that moment ... which is really what most developers look at anyway, when debugging hangs ... just wanted to clarify terminology.
Comment 2 David Williams CLA 2011-05-17 15:04:44 EDT
Created attachment 195906 [details]
patch to add timeout to vm args, and udpate to latest platform to build with

I'll be approving my own bug :) but will document well ... I'd like to try and take advantage of the improvement in ant runner, which will provide thread stack dump in console log, if a junit hangs. Do take advantage, we'd need M7 or above, so will move up to RC1 as base builder ... which should have pretty much final compiler, etc.
Comment 3 David Williams CLA 2011-05-17 15:09:13 EDT
We get so many timeouts and hangs during unit tests, I think worth trying this out ... though, granted, some small chance something would go wrong and cause tests to fail prematurely, or something. 

And, we need to update base builder, to get near final compiler, etc. (We've been on M6 for last milestone, and RC1 ... we'll probably want to update again for RC3, at least).
Comment 4 David Williams CLA 2011-05-17 15:12:37 EDT
released for final RC2 builds ... now I can't wait for a junit test to hang! :)