Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343448

Summary: react for new dump capture in test framework
Product: [WebTools] WTP Releng Reporter: David Williams <david_williams>
Component: relengAssignee: David Williams <david_williams>
Status: RESOLVED FIXED QA Contact: David Williams <david_williams>
Severity: normal    
Priority: P3 Flags: 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)
Version: unspecified   
Target Milestone: 3.10.0   
Hardware: PC   
OS: Linux   
Whiteboard: PMC_approved
Attachments:
Description Flags
patch to add timeout to vm args, and udpate to latest platform to build with none

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! :)