This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 440022 - [CBI] JUnit failures in CBI Build R3_6_Maintenance
Summary: [CBI] JUnit failures in CBI Build R3_6_Maintenance
Status: RESOLVED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.wsi (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.6.3   Edit
Assignee: Keith Chong CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard: PMC_Approved
Keywords:
Depends on:
Blocks: 428007
  Show dependency tree
 
Reported: 2014-07-21 10:46 EDT by Julio C. Chavez CLA
Modified: 2015-01-15 13:52 EST (History)
7 users (show)

See Also:
keith.chong.ca: pmc_approved? (david_williams)
keith.chong.ca: pmc_approved? (raghunathan.srinivasan)
keith.chong.ca: pmc_approved? (naci.dai)
keith.chong.ca: pmc_approved? (neil.hauge)
cbridgha: pmc_approved+
keith.chong.ca: pmc_approved? (kaloyan)
keith.chong.ca: pmc_approved? (ccc)


Attachments
Apply to org.eclipse.wst.wsi.tests (1.12 KB, patch)
2014-08-21 12:33 EDT, Keith Chong CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julio C. Chavez CLA 2014-07-21 10:46:55 EDT
There is a constant failure in the JUnit R3_6_Maintenance

org.eclipse.wst.wsi.tests.internal.BasicProfileAnalyzerTest.testReportWriterIsClosedAfterReportIsFinished (from org.eclipse.wst.wsi.tests.internal.RegressionBucket)

Failing for the past 79 builds (Since #169 )
Took 3 min 9 sec.
add description
Error Message

The WS-I Test Assertion Document (TAD)document was either not found or could not be processed.
Stacktrace

The WS-I Test Assertion Document (TAD)document was either not found or could not be processed.
	at org.eclipse.wst.wsi.internal.core.analyzer.BasicProfileAnalyzer.validateConformance(BasicProfileAnalyzer.java:214)
	at org.eclipse.wst.wsi.tests.internal.BasicProfileAnalyzerTest.testReportWriterIsClosedAfterReportIsFinished(BasicProfileAnalyzerTest.java:38)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:86)
	at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Comment 1 Julio C. Chavez CLA 2014-08-18 12:27:46 EDT
Failing also with 3.7.0, which by the date the only difference is that Eclipse Platform and SDK P2 URL depedencies were udpated to Mars
Comment 2 Keith Chong CLA 2014-08-21 12:21:01 EDT
I believe I have a fix for this:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.eclipse.wst.wsi.tests.internal.RegressionBucket
Tests run: 95, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.491 sec

Results :

Tests run: 95, Failures: 0, Errors: 0, Skipped: 0

[INFO] All tests passed!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.065s
[INFO] Finished at: Thu Aug 21 12:18:37 EDT 2014
[INFO] Final Memory: 36M/71M
[INFO] ------------------------------------------------------------------------
Comment 3 Keith Chong CLA 2014-08-21 12:33:24 EDT
Created attachment 246217 [details]
Apply to org.eclipse.wst.wsi.tests
Comment 4 Keith Chong CLA 2014-08-21 12:38:51 EDT
1. Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
- Fix JUnit failures.  Not stop ship, affects test plugin only.

2. Is there a work-around? If so, why do you believe the work-around is insufficient? 
- No

3. How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? 
- Ran the test bucket with the changes and all tests passed.  See above comment.

4. Give a brief technical overview. Who has reviewed this fix? 
- pom.xml change only

5. What is the risk associated with this fix? 
- Low.
Comment 5 Chuck Bridgham CLA 2014-08-21 12:51:21 EDT
Thanks Keith - looks good
Comment 6 Keith Chong CLA 2014-09-18 14:13:54 EDT
The JUnit runs fine on my local machine.   However, it is still failing in the build.  Deferring this to 3.6.2
Comment 7 Keith Chong CLA 2015-01-15 13:52:49 EST
Resolving/closing bug.