[hibernate-dev] Unit test failures using the new metamodel

Hardy Ferentschik hardy at hibernate.org
Fri Aug 3 20:02:16 EDT 2012


On 3 Jan 2012, at 11:17 PM, John Verhaeg wrote:

> 
> On Aug 3, 2012, at 1:54 AM, Hardy Ferentschik wrote:
> 
>> Hi,
>> 
>>> I'm seeing some more failures today using -Dhibernate.test.new_metadata_mappings=true -Dhibernate.test.validatefailureexpected=true:
>>> - org.hibernate.test.annotations.lob.VersionedLobTest FAILED
>>> - org.hibernate.test.annotations.genericsinheritance.GenericsInheritanceTest FAILED
>>> - org.hibernate.test.criteria.ComplexJoinAliasTest FAILED
>>> 
>>> Are these expected to fail as well (rather than a regression)?
>> 
>> I could not tell you. Here is what I do. 
>> 
>> 1. Update the code
>> 2. Make sure it builds (in the default settings)
>> 3. Fix my stuff and add tests
>> 4. Rebase
>> 5. Make sure build works 
>> 6. Push
>> 
>> AFAICT there were no test failures when I checked in yesterday. I did not and will not keep lists of failing tests using the metamodel flag. 
> 
> Not sure what you mean about keeping lists.  Now that we have all the annotations in place, the only expectation is to run the build once using the default settings (which are now with both flags set to true) and once more with the new metadata flag turned off.  If both pass w/o errors, check in.  No lists required.

Do we really need to run both? It takes ages to run all tests. It is not easier to tag a stable version using the old configuration and then work with two checkouts side by side. IMO this would also allow us to be a little more aggressive with some changes. How long is it really feasible to have both code path working at the same time w/o keeping a lot of legacy code around. Personally I prefer to have a working reference checkout.

--Hardy


More information about the hibernate-dev mailing list