Community
Participate
Working Groups
Sometimes two Completion tests fail as identified below. Workaround: rerun Tycho launch. ?? is it always the same two: scr25027_1, scr25027_2 ?? what is the instability ?? should we just delete the two tests scr25027_1(org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest) Time elapsed: 0.094 sec <<< FAILURE! junit.framework.AssertionFailedError: Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = =(), displayString = =(c : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 2 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = <>(), displayString = <>(c : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 3 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = count(), displayString = count(object : T) : Integer, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 6 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = excludes(), displayString = excludes(object : T) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 9 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = excludesAll(), displayString = excludesAll(c2 : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 12 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = includes(), displayString = includes(object : T) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 9 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = includesAll(), displayString = includesAll(c2 : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 12 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = isEmpty(), displayString = isEmpty() : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 9 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = notEmpty(), displayString = notEmpty() : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 10 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = product(), displayString = product(c2 : Collection(T2)) : Set(Tuple(first : T, second : T2)), replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 8 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = sum(), displayString = sum() : Real, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 5 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = max(), displayString = max() : Real, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 5 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = min(), displayString = min() : Real, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 5 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = selectByKind(), displayString = selectByKind(typespec : OclType) : Collection(T2), replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 13 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = selectByType(), displayString = selectByType(typespec : OclType) : Collection(T2), replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 13 at junit.framework.Assert.fail(Assert.java:57) at junit.framework.Assert.assertTrue(Assert.java:22) at junit.framework.TestCase.assertTrue(TestCase.java:192) at org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.AbstractCompletionTest.testCompletion(AbstractCompletionTest.java:59) at org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.AbstractCompletionTest.runTest(AbstractCompletionTest.java:31) 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:252) at junit.framework.TestSuite.run(TestSuite.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:156) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:82) at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:95) at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:35) 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:4213) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820) 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.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31) at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:120) at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37) 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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) scr25027_2(org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest) Time elapsed: 0.109 sec <<< FAILURE! junit.framework.AssertionFailedError: Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = =(), displayString = =(c : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 2 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = <>(), displayString = <>(c : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 3 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = count(), displayString = count(object : T) : Integer, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 6 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = excludes(), displayString = excludes(object : T) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 9 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = excludesAll(), displayString = excludesAll(c2 : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 12 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = includes(), displayString = includes(object : T) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 9 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = includesAll(), displayString = includesAll(c2 : Collection(T)) : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 12 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = isEmpty(), displayString = isEmpty() : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 9 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = notEmpty(), displayString = notEmpty() : Boolean, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 10 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = product(), displayString = product(c2 : Collection(T2)) : Set(Tuple(first : T, second : T2)), replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 8 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = sum(), displayString = sum() : Real, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 5 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = max(), displayString = max() : Real, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 5 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = min(), displayString = min() : Real, replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 5 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = selectByKind(), displayString = selectByKind(typespec : OclType) : Collection(T2), replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 13 Expected proposal not found: QvtCompletionProposal[org.eclipse.m2m.qvt.oml.editor.ui.completion.category.default]: replacementString = selectByType(), displayString = selectByType(typespec : OclType) : Collection(T2), replacementOffsetDelta = 0, replacementLength = 0, cursorPosition = 13 at junit.framework.Assert.fail(Assert.java:57) at junit.framework.Assert.assertTrue(Assert.java:22) at junit.framework.TestCase.assertTrue(TestCase.java:192) at org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.AbstractCompletionTest.testCompletion(AbstractCompletionTest.java:59) at org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.AbstractCompletionTest.runTest(AbstractCompletionTest.java:31) 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:252) at junit.framework.TestSuite.run(TestSuite.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:156) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:82) at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:95) at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:35) 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:4213) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820) 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.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31) at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:120) at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37) 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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)
(In reply to Ed Willink from comment #0) > ?? is it always the same two: scr25027_1, scr25027_2 same two again. Failure occurred while rerunning after an earlier build failed with a could not delete build site (since ZIP open in WinZIP).
The org.eclipse.osgi.compatibility.state fragment seemed to affect OCL completion tests. See Bug 526252. Add it to the QVTo installation in the hope that it helps; it can't really do any damage.
(In reply to Ed Willink from comment #1) > (In reply to Ed Willink from comment #0) > > ?? is it always the same two: scr25027_1, scr25027_2 No different single failure: bugzilla3070_1 Occurred on first build after resolving Bug 536549 - a bad platform I-build. It appears that no proposals were found for bugzilla3070_1 although earlier traces suggest some were. Is it a timing issue ?
(In reply to Ed Willink from comment #1) > (In reply to Ed Willink from comment #0) > > ?? is it always the same two: scr25027_1, scr25027_2 > > same two again. Failure occurred while rerunning after an earlier build > failed with a could not delete build site (since ZIP open in WinZIP). Occurred on a Sunday timer build that had passed after an SCM trigger on the preceding Friday.
(In reply to Ed Willink from comment #4) > Occurred on a Sunday timer build that had passed after an SCM trigger on the > preceding Friday. Fine after a manual trigger. The 15 missing proposals closely correspond to those provided by OCLStandardLibraryUtil.createCollectionOperations wity the exception that size(), oclAsSet(), oclIsUndefined(), oclIsInvalid() are not reported as missing. size() is also a String operation. oclAsSet(), oclIsUndefined(), oclIsInvalid() are also OclAny operations. It is as if Collection is not a viable type, which might just occur if the ill-defined Collection-conforms-to-OclAny behaviour is intermittent.
(In reply to Ed Willink from comment #4) > > > ?? is it always the same two: scr25027_1, scr25027_2 No. Latest timer build failed on just bugzilla3070_1 (In reply to Ed Willink from comment #5) > It is as if Collection is not a viable type, which might just occur if the > ill-defined Collection-conforms-to-OclAny behaviour is intermittent. Same hypothesis seems to apply.
(In reply to Ed Willink from comment #6) > No. Latest timer build failed on just bugzilla3070_1 Latest GIT poll build failed on bugzilla3070_1 Rebuilds without problem.
org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest.bugzilla3070_1 had an intermittent failure today due to many (?20) missing completion proposals.
A slight variation occurred today. org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=23, size=19 at org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest.initializeProposalProvider(CompletionTest.java:149) at org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest.setUp(CompletionTest.java:101) This variation seems to be half way between this bug and Bug 525852, so they may actually be duplicates,
Just occurred again 2 fails: org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest.scr25027_1 org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest.scr25027_2 Confusingly a retry gave Bug 525852 instead. Another retry on branch tests and all ok. Another retry on master and 1 fail for org.eclipse.m2m.internal.tests.qvt.oml.ui.completion.CompletionTest.bugzilla3070_1 Another retry on master and all ok. 3 failures out of 5 is much higher than the normal 1 out of 10. We are now just after 2022-06M1 so the pruning of Orbit is a very faint possibility.