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

Bug 327643

Summary: Junit Test regression : KdmToUml2ConverterTest
Product: [Modeling] MoDisco Reporter: Fabien Giquel <fabien.giquel>
Component: TechnologiesAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: fabien.giquel: indigo+
Target Milestone: 0.9.0 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
two .uml files for comparison and .emfdiff generated
none
Another Hudson stack rare failure none

Description Fabien Giquel CLA 2010-10-13 06:33:13 EDT
There are some Random junit failures on Hudson on two tests :

AssertionFailedError -> KdmToUml2ConverterTest.java:119
AssertionFailedError -> KdmToUml2ConverterTest.java:200
Comment 1 Fabien Giquel CLA 2010-11-24 08:34:36 EST
Created attachment 183746 [details]
two .uml files for comparison and .emfdiff generated

I attached some models for which some hudson test failed (basicKdmToUmlConverter() method) :
- BasicConversion.uml.ref.uml : uml reference model extracted in junit workspace (save temporary forced in code)
- BasicConversion.uml : uml output model from ATL transfo
- BasicConversion.uml.emfdiff : result of comparison

-> both .uml and .uml.ref.uml files are identical. Differences described in .emfdiff do not exit.
Comment 2 Fabien Giquel CLA 2010-11-24 08:38:48 EST
Created attachment 183747 [details]
Another Hudson stack rare failure

Here is another issue which happende one time on hudson : emf compare encountered a concurrentModificationException when iterating on Resource.getAllContents(..)
Comment 3 Fabien Giquel CLA 2010-11-24 08:43:34 EST
Looking at the two results described in two last comments, i suspect some trouble with the Resource instance provided at the end of ATL transformation.

I commit some temporary kind of workaround (rev 3617) : reread the uml output resource from disk before using emf compare.
Comment 4 Fabien Giquel CLA 2010-12-08 04:08:31 EST
Workaround seems to work (several build on hduson wihtout problem).

I cannot fill a bug in ATL bugzilla (or EMF Compare) -> cannot give steps to reproduce the issue.
=> ask on M2M forum about that problem.
=> commit the workaround as a solution (rev 3623)
Comment 5 Hugo Bruneliere CLA 2011-01-11 05:02:31 EST
Bug fixed by a workaround.