This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 193009 - Test failures without <errorStackTrace> display nothing
Summary: Test failures without <errorStackTrace> display nothing
Status: STARTED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Hudson (show other bugs)
Version: 7.0
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 17:40 UTC by Tomas Mysik
Modified: 2012-06-14 16:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (60.74 KB, text/x-log)
2010-12-07 17:40 UTC, Tomas Mysik
Details
content of the returned stream (11 bytes, text/plain)
2010-12-15 21:10 UTC, Tomas Mysik
Details
sample of test report (1.29 KB, application/xml)
2011-01-05 17:01 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2010-12-07 17:40:50 UTC
Created attachment 103696 [details]
IDE log

Hudson v1.386 (behind HTTP proxy).

If I get Test Failures of Hudson job from NB, nothing happens. There's no message in the server log.

Attaching IDE log (logging with FINE level).

Product Version: NetBeans IDE Dev (Build 101207-82ef52c60670)
Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03
System: Linux version 2.6.35-23-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Jesse Glick 2010-12-07 20:15:36 UTC
Very likely the same problem.

*** This bug has been marked as a duplicate of bug 193008 ***
Comment 2 Tomas Mysik 2010-12-08 11:09:58 UTC
Have to reopen this one because it seems that it is not a duplicate of #193008 (still, nothing happens if one requests Test Failures).

Let me know what I can do or provide in order to fix this issue.

Thanks.
Comment 3 Jesse Glick 2010-12-08 14:37:08 UTC
I need some way to reproduce the problem. Or at a minimum, log messages from after the fix of bug #193008. (I see no indication in your last log that the action was even run.)
Comment 4 Tomas Mysik 2010-12-15 10:17:54 UTC
Sorry, I don't have time for it now, I will reopen this issue soon. Thanks.
Comment 5 Tomas Mysik 2010-12-15 21:09:14 UTC
I found the cause; I have debugged org.netbeans.modules.hudson.ui.actions.ShowFailures class and the first (and the only) element in the returned XML is "failures" (I will attach the whole file, it is only one empty element) so it is ignored by <anonymous>.startElement() method (maybe some WARNING could be logged? that's why nothing was visible in the IDE log).

Unfortunately I have no idea why the returned stream contains just one empty element (I just verified via browser that there were 44 failed tests for the given test run) - don't you have any idea, Jesse? We have Hudson ver. 1.386.

Thanks a lot!
Comment 6 Tomas Mysik 2010-12-15 21:10:22 UTC
Created attachment 104136 [details]
content of the returned stream
Comment 7 Tomas Mysik 2010-12-27 13:48:10 UTC
Any progress, please?
Comment 8 Tomas Mysik 2011-01-05 17:01:04 UTC
Created attachment 104740 [details]
sample of test report
Comment 9 Jesse Glick 2011-01-05 18:03:32 UTC
Diagnosis by reporter shows that junitResult.xml exists and is loaded correctly by a test Hudson instance, but for some reason no <errorStackTrace> is produced in .../testResult/api/xml output from the real server. So the problem is likely some kind of bug in Hudson. (Inspection of CaseResult source confirms that a test is "failed" iff errorStackTrace != null, and the test in question is just a regular JUnit 3.x test run by Surefire.) $build.testResultAction.failedTests[0].errorStackTrace works in Groovy console, so perhaps there is some problem in the Stapler layer.

NB bug is that IDE shows nothing in this case. Should at least show a dialog box explaining that there is some problem in the remote API.