Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327643 - Junit Test regression : KdmToUml2ConverterTest
Summary: Junit Test regression : KdmToUml2ConverterTest
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 0.9.0 M4   Edit
Assignee: Fabien Giquel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 06:33 EDT by Fabien Giquel CLA
Modified: 2011-01-11 05:02 EST (History)
2 users (show)

See Also:
fabien.giquel: indigo+


Attachments
two .uml files for comparison and .emfdiff generated (20.71 KB, application/zip)
2010-11-24 08:34 EST, Fabien Giquel CLA
no flags Details
Another Hudson stack rare failure (1.64 KB, text/plain)
2010-11-24 08:38 EST, Fabien Giquel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.