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

Bug 334792

Summary: Reference count test failures - test suite disabled
Product: [Eclipse Project] PDE Reporter: Michael Rennie <Michael_Rennie>
Component: API ToolsAssignee: PDE API Tools Inbox <pde-apitools-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P4 CC: ankur_sharma, curtis.windatt.public, daniel_megert, Mike_Wilson
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 412523    

Description Michael Rennie CLA 2011-01-19 10:18:16 EST
build:  I20110118-0800

The second reference count test failed with the following output:

Incorrect number of references for the set 3 expected:<3> but was:<1>
junit.framework.AssertionFailedError: Incorrect number of references for the set 3 expected:<3> but was:<1>
at org.eclipse.pde.api.tools.apiusescan.tests.ReferenceCountTests.verifyReferenceCount(ReferenceCountTests.java:63)
at org.eclipse.pde.api.tools.apiusescan.tests.ReferenceCountTests.testReferenceCountReportOne(ReferenceCountTests.java:81)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:416)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:249)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
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:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
at org.eclipse.core.launcher.Main.main(Main.java:34)

There are some entires in the test console logs, I am not sure if they are related or not:

!ENTRY org.eclipse.pde.api.tools 4 0 2011-01-18 15:02:08.856
!MESSAGE Unable to resolve method signature: a.b.c.TestClass1#void foo()

!ENTRY org.eclipse.pde.api.tools 4 120 2011-01-18 15:03:04.400
!MESSAGE Error logged from API Tools Core: 
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource '/APIPluginTests' does not exist.
	at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:326)
	at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:200)
	at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:147)
	at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:33)
	at org.eclipse.core.internal.resources.Folder.create(Folder.java:95)
	at org.eclipse.core.internal.resources.Folder.create(Folder.java:125)
	at org.eclipse.pde.api.tools.internal.ApiFilterStore$1.runInWorkspace(ApiFilterStore.java:166)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.core.resources 4 368 2011-01-18 15:03:04.402
!MESSAGE Resource '/APIPluginTests' does not exist.

!ENTRY org.eclipse.pde.api.tools 4 120 2011-01-18 15:03:06.561
!MESSAGE Error logged from API Tools Core: 
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource '/APIPluginTests/.settings' does not exist.
	at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:326)
	at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:200)
	at org.eclipse.core.internal.resources.File.create(File.java:123)
	at org.eclipse.core.internal.resources.File.create(File.java:196)
	at org.eclipse.pde.api.tools.internal.ApiFilterStore$1.runInWorkspace(ApiFilterStore.java:168)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.core.resources 4 368 2011-01-18 15:03:06.561
!MESSAGE Resource '/APIPluginTests/.settings' does not exist.

!ENTRY org.eclipse.core.resources 4 368 2011-01-18 15:07:27.297
!MESSAGE Resource '/a.b.c' does not exist.
Comment 1 Ankur Sharma CLA 2011-01-19 15:57:50 EST
The tests succeeded in N20110118-2000 suggest this to be an intermittent problem. The tests are succeeding locally also with I20110118-0800 on windows machine. I will try to get hold of a Mac machine tomorrow to investigate further.
Comment 2 Michael Rennie CLA 2011-01-25 12:56:14 EST
I managed to reproduce this after a few test runs of the plug-in test suite.
Comment 3 Curtis Windatt CLA 2011-01-26 13:57:13 EST
Leaving open for continuing investigation in M6
Comment 4 Ankur Sharma CLA 2011-01-26 14:32:04 EST
The tests succeeded in I20110125-2012. I will watch it for I20110126-0800 too and will close the bug if it succeeds again. No plans for any investigations till then.
Comment 5 Ankur Sharma CLA 2011-01-27 01:24:52 EST
The test has been succeeding last few I builds. Closing it now. Will reopen a new report if encountered again.
Comment 6 Ankur Sharma CLA 2011-01-28 04:51:23 EST
Our luck has ran out. The tests have failed again

http://download.eclipse.org/eclipse/downloads/drops/I20110127-1100/testresults/html/org.eclipse.pde.api.tools.tests_win32.win32.x86_6.0.html

Investigating now...
Comment 7 Michael Rennie CLA 2011-02-04 10:05:49 EST
...and again in N20110203-2000 (testReferenceCountReportAll)...

Incorrect number of references for the set 3 expected:<5> but was:<1>
junit.framework.AssertionFailedError: Incorrect number of references for the set 3 expected:<5> but was:<1>
at org.eclipse.pde.api.tools.apiusescan.tests.ReferenceCountTests.verifyReferenceCount(ReferenceCountTests.java:63)
at org.eclipse.pde.api.tools.apiusescan.tests.ReferenceCountTests.testReferenceCountReportAll(ReferenceCountTests.java:56)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:416)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:249)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
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:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
at org.eclipse.core.launcher.Main.main(Main.java:34)

Except this time the test failure occurred on Windows
Comment 8 Ankur Sharma CLA 2011-02-16 05:17:33 EST
Failed for I20110215-0800

Incorrect number of references for the set 1 expected:<7> but was:<0>
junit.framework.AssertionFailedError: Incorrect number of references for the set 1 expected:<7> but was:<0>
at org.eclipse.pde.api.tools.apiusescan.tests.ReferenceCountTests.verifyReferenceCount(ReferenceCountTests.java:63)
at org.eclipse.pde.api.tools.apiusescan.tests.ReferenceCountTests.testReferenceCountReportOne(ReferenceCountTests.java:81)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:416)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:249)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
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:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 9 Dani Megert CLA 2011-02-16 05:26:48 EST
Please make the test stable or remove it.
Comment 10 Michael Rennie CLA 2011-02-17 12:51:20 EST
*** Bug 335853 has been marked as a duplicate of this bug. ***
Comment 11 Michael Rennie CLA 2011-02-17 13:51:14 EST
I have disabled the use scan tests until we re-write them - they are too
brittle to run each build.
Comment 12 Curtis Windatt CLA 2013-01-28 11:40:38 EST
These tests are still disabled in the main suite.
Comment 13 Eclipse Genie CLA 2019-09-15 19:08:14 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.