eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[ia] Inexplicable test failure #1964

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 532704 | | Status | NEW | | Importance | P3 normal | | Reported | Mar 21, 2018 08:25 EDT | | Modified | Mar 21, 2018 08:36 EDT | | Reporter | Ed Willink |

Description

While steadily re-activating tests under Tycho as part of Bug 529797 an IA test suddenly appeared. Ridiculous since the IA tests had all run successfully with only fractionally different Pivot Xtext tests.

Is this truly magic or is there a subtle ordering dependence?

Logging as a bug in case it reappears/persists.

?? EContentAdapter has been improving to avoid StackOverflows ??

testMultiValuedFeatureAddMany (org.eclipse.ocl.examples.impactanalyzer.tests.derivedPropertyHandling.DerivedPropertyAdapterTest) Time elapsed: 0 sec <<< ERROR!\ org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=117, size=117\ at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:601)\ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:221)\ at org.eclipse.emf.common.util.AbstractEList.remove(AbstractEList.java:456)\ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:214)\ at org.eclipse.emf.ecore.util.EContentAdapter.removeAdapter(EContentAdapter.java:444)\ at org.eclipse.ocl.examples.eventmanager.framework.EventAdapter.removeAdapter(EventAdapter.java:68)\ at org.eclipse.emf.ecore.util.EContentAdapter.removeAdapter(EContentAdapter.java:439)\ at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:388)\ at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:335)\ at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:310)\ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.didRemove(BasicNotifierImpl.java:150)\ at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:615)\ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:221)\ at org.eclipse.emf.common.util.AbstractEList.remove(AbstractEList.java:456)\ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:214)\ at org.eclipse.emf.ecore.util.EContentAdapter.removeAdapter(EContentAdapter.java:444)\ at org.eclipse.ocl.examples.eventmanager.framework.EventAdapter.removeAdapter(EventAdapter.java:68)\ at org.eclipse.emf.ecore.util.EContentAdapter.removeAdapter(EContentAdapter.java:439)\ at org.eclipse.emf.ecore.util.EContentAdapter.handleContainment(EContentAdapter.java:185)\ at org.eclipse.emf.ecore.util.EContentAdapter.selfAdapt(EContentAdapter.java:82)\ at org.eclipse.emf.ecore.util.EContentAdapter.notifyChanged(EContentAdapter.java:66)\ at org.eclipse.ocl.examples.eventmanager.framework.EventAdapter.notifyChanged(EventAdapter.java:75)\ at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)\ at org.eclipse.emf.common.notify.impl.NotificationImpl.dispatch(NotificationImpl.java:1027)\ at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:299)\ at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:304)\ at org.eclipse.ocl.examples.impactanalyzer.testutils.BaseDepartmentTestWithOCL.buildModel(BaseDepartmentTestWithOCL.java:570)\ at org.eclipse.ocl.examples.impactanalyzer.testutils.BaseDepartmentTestWithOCL.beforeTestMethod(BaseDepartmentTestWithOCL.java:494)\ at org.eclipse.ocl.examples.impactanalyzer.testutils.BaseDepartmentTestWithOCL.setUp(BaseDepartmentTestWithOCL.java:483)\ at org.eclipse.ocl.examples.impactanalyzer.tests.derivedPropertyHandling.DerivedPropertyAdapterTest.setUp(DerivedPropertyAdapterTest.java:44)

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Mar 21, 2018 08:36

(In reply to Ed Willink from comment #0)

Ridiculous since the IA tests had all run successfully with only fractionally different Pivot Xtext tests.

Is this truly magic or is there a subtle ordering dependence?

Did not repeat on a rerun.

(A new EMF nightly appeared this morning, but even after allowing for timezone discrepancies, it should have been stable for a couple of hours before the inexplicable failure.)