Bug 405695 - Failure in ExpressionTests.testSubTypeTiming
Summary: Failure in ExpressionTests.testSubTypeTiming
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.12   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.12 RC1   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL: http://download.eclipse.org/eclipse/d...
Whiteboard:
Keywords: test
: 545125 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-15 04:21 EDT by Dani Megert CLA
Modified: 2019-05-29 00:41 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2013-04-15 04:21:52 EDT
N20130414-2000.

cachedDelta: 22, instanceDelta: 44

junit.framework.AssertionFailedError: cachedDelta: 22, instanceDelta: 44
at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1047)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:655)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:310)
at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:197)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3974)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1108)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:992)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:137)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:602)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:140)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:62)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:212)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Dani Megert CLA 2015-08-17 06:25:36 EDT
Failed again in N20150816-2000.

cachedDelta: 43, instanceDelta: 73

junit.framework.AssertionFailedError: cachedDelta: 43, instanceDelta: 73
at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1054)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:692)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:319)
at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:197)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4004)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3680)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:157)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:140)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:62)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:212)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 2 Dani Megert CLA 2015-08-30 02:50:22 EDT
Again, this time on Mac OS X

http://download.eclipse.org/eclipse/downloads/drops4/N20150829-1500/testresults/html/org.eclipse.core.expressions.tests_macosx.cocoa.x86_64_8.0.html

cachedDelta: 64, instanceDelta: 88

junit.framework.AssertionFailedError: cachedDelta: 64, instanceDelta: 88
at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1054)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:692)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:319)
at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:197)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4004)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3680)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:157)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:140)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:62)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:212)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 3 Markus Keller CLA 2015-09-01 06:38:24 EDT
We're getting hit by performance improvements in the JREs. I've reduced the expected speedup from our caching from 2 to 1.8.

Fixed with http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=e0d65242b9183b4413c5aa014ba828c9d3f21e66 and parent commit.
Comment 4 Markus Keller CLA 2015-10-29 11:13:14 EDT
(In reply to David Williams from bug 480944 comment #10)
The test still fails every once in a while.

Reduced minimal expected speedup to 50%: http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=f00995867723146125abdd9d975e56f82837d2d3
Comment 5 Kalyan Prasad Tatavarthi CLA 2018-02-23 01:16:32 EST
Failed Again in build M20180221-1700

cachedDelta: 101, instanceDelta: 123 

junit.framework.AssertionFailedError: cachedDelta: 101, instanceDelta: 123
at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1073)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:749)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:350)
at org.eclipse.test.UITestApplication.lambda$0(UITestApplication.java:195)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4577)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4186)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:139)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:61)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:210)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 6 Kalyan Prasad Tatavarthi CLA 2018-02-23 01:24:13 EST
Failed Again in build M20180221-1700 on Linux using gtk3.
This is an intermittent failure.
I will reopen this bug if If i see the failure again.
Comment 7 Kalyan Prasad Tatavarthi CLA 2018-03-02 02:10:43 EST
Failed Again in the build M20180301-0715.
So reopening the bug.
Comment 8 Kalyan Prasad Tatavarthi CLA 2018-05-25 01:59:05 EDT
Thins test Fails in the build I20180524-0900
Comment 9 Dani Megert CLA 2018-07-31 12:28:58 EDT
Ping!
Comment 10 Dani Megert CLA 2018-08-06 09:52:48 EDT
Ping! Please resolve for M3.
Comment 11 Kalyan Prasad Tatavarthi CLA 2018-08-08 04:27:33 EDT
As this test passes on all platforms for the latest I-Builds 4.9M2-201808012000 , I20180806-0300. I am resolving it.
Comment 12 Dani Megert CLA 2019-03-06 08:34:07 EST
*** Bug 545125 has been marked as a duplicate of this bug. ***
Comment 13 Kalyan Prasad Tatavarthi CLA 2019-05-23 04:51:54 EDT
This test fails on linux in the junit tests intermittently. Failed in the build I20190522-1800

Please find the link : https://download.eclipse.org/eclipse/downloads/drops4/I20190522-1800/testresults/html/org.eclipse.core.expressions.tests_ep412I-unit-cen64-gtk3-java8_linux.gtk.x86_64_8.0.html

Please find stack trace below:

cachedDelta: 109, instanceDelta: 115

java.lang.AssertionError: cachedDelta: 109, instanceDelta: 115
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.eclipse.core.internal.expressions.tests.ExpressionTests.testSubTypeTiming(ExpressionTests.java:1135)
Comment 14 Andrey Loskutov CLA 2019-05-27 15:49:19 EDT
The test fails now every second build on Linux Java 8, seldom on Windows.
IMHO performance tests are inherently unstable, especially on shared infrastructure. The test itself could be probably just changed to expect that cached version is assumed to be faster, not using any exact speedup value. Even this could still fail. So I would set speedup to 1 and it it fails again, simply disable the test as meaningless - or automatically *repeat* measurement on fail.
Comment 15 Eclipse Genie CLA 2019-05-28 04:07:12 EDT
New Gerrit change created: https://git.eclipse.org/r/142901
Comment 17 Andrey Loskutov CLA 2019-05-29 00:41:51 EDT
Let assume it is fixed in https://download.eclipse.org/eclipse/downloads/drops4/I20190528-0915/testResults.php