Bug 270769 - [JFace] [perfs] 1 failure while running Platform/UI performance tests
Summary: [JFace] [perfs] 1 failure while running Platform/UI performance tests
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Boris Bokowski CLA
QA Contact: Susan McCourt CLA
URL:
Whiteboard:
Keywords: performance, test
Depends on:
Blocks: 270824
  Show dependency tree
 
Reported: 2009-04-01 09:44 EDT by Frederic Fusier CLA
Modified: 2009-05-06 05:34 EDT (History)
3 users (show)

See Also:


Attachments
Patch (2.60 KB, patch)
2009-04-15 16:24 EDT, Oleg Besedin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2009-04-01 09:44:13 EDT
Verifying results for build I20090331-0901, I see one failure in Platform/UI
performance tests:

Policy.getComparatorTest	Failure	Method "Policy.getComparatorTest" not found

junit.framework.AssertionFailedError: Method "Policy.getComparatorTest" not found
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
at junit.extensions.TestSetup.run(TestSetup.java:25)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:354)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:206)
at org.eclipse.test.UITestApplication$3.run(UITestApplication.java:195)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3457)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3104)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2393)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2357)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2209)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:60)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:210)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
at org.eclipse.core.launcher.Main.main(Main.java:30)
Comment 1 Paul Webster CLA 2009-04-01 10:30:50 EDT
Is this a new failure?  AFAICT this is coming from:
addTest(new CollatorPerformanceTest("Policy.getComparatorTest"));
which has been checked in since Nov 26, 2008. (in HEAD and the perf_34x branch)

It is a complete Test with a name, "Policy.getComparatorTest", and I'm not sure why we would get a: Method "Policy.getComparatorTest" not found

PW
Comment 2 Frederic Fusier CLA 2009-04-01 10:36:38 EDT
(In reply to comment #1)
> Is this a new failure?  AFAICT this is coming from:
> addTest(new CollatorPerformanceTest("Policy.getComparatorTest"));
> which has been checked in since Nov 26, 2008. (in HEAD and the perf_34x branch)
> 
> It is a complete Test with a name, "Policy.getComparatorTest", and I'm not sure
> why we would get a: Method "Policy.getComparatorTest" not found
> 
> PW
> 
No, it happened since 3.5 perf results day 1 (e.g. see M4 results: http://download.eclipse.org/eclipse/downloads/drops/S-3.5M4-200812111908/performance/html/org.eclipse.ui.tests.performance_linuxgtkperf2.html)

Comment 3 Oleg Besedin CLA 2009-04-15 16:19:09 EDT
I think this test never worked as a part of the test suite. As Paul mentioned, it was added in November 2008. The M4 was done in December 2008. As would be expected, M4 included the change (originally submitted in bug 229782) and showed test failure.

The test name should not be "Policy.getComparatorTest", but rather "testCollator". See the TestCase Javadoc:

 * The dynamic way uses reflection to implement <code>runTest</code>. It dynamically finds
 * and invokes a method.
 * In this case the name of the test case has to correspond to the test method
 * to be run.
Comment 4 Oleg Besedin CLA 2009-04-15 16:24:15 EDT
Created attachment 131986 [details]
Patch

Changed test name, changed number of iterations to a more reasonable number.

Note the bug 229782 comment 6: the change probably needs to be put in the CVS Head, perf34x, perf33x, and perf32x streams.
Comment 5 Frederic Fusier CLA 2009-04-28 12:21:06 EDT
(In reply to comment #4)
> Created an attachment (id=131986) [details]
> Patch
> 
> Changed test name, changed number of iterations to a more reasonable number.
> 
> Note the bug 229782 comment 6: the change probably needs to be put in the CVS
> Head, perf34x, perf33x, and perf32x streams.
> 
Oleg, head and perf_34x will be enough. There's no longer perf tests in other streams... Is the patch going to be released before M7?
Comment 6 Susan McCourt CLA 2009-04-28 12:33:41 EDT
Oleg, are you handling this or were you wanting me to look at it first?
Comment 7 Boris Bokowski CLA 2009-04-29 15:36:44 EDT
Fixed in HEAD and perf34x. Will update the map file in the perf34x stream as well.
Comment 8 Frederic Fusier CLA 2009-05-06 05:34:56 EDT
Verified for M7 with I20090430-2300 results