You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Armin Waibel <ar...@apache.org> on 2005/12/22 21:17:26 UTC

[OJB 1.0.x] New test failures after CVS update

Hi all,

I updated my local CVS and now I get three new test failures (see 
below). Could this someone verify?

regards,
Armin


Testcase: testCustomAttributesDescriptorRepository took 0,218 sec
	FAILED
No attributes found
junit.framework.AssertionFailedError: No attributes found
	at 
org.apache.ojb.broker.metadata.CustomAttributesTest.testCustomAttributesDescriptorRepository(CustomAttributesTest.java:58)




Testcase: testObjectCacheDeclarations took 0,328 sec
	FAILED
null
junit.framework.AssertionFailedError
	at 
org.apache.ojb.broker.metadata.MetadataTest.testObjectCacheDeclarations(MetadataTest.java:374)



Testcase: testPerDatabaseCache took 0,156 sec
...
at 
org.apache.ojb.broker.metadata.ConnectionRepository.addDescriptor(ConnectionRepository.java:118)
	at 
org.apache.ojb.broker.metadata.MetadataManager.mergeConnectionRepository(MetadataManager.java:280)
	at 
org.apache.ojb.broker.metadata.MetadataManager.mergeConnectionRepository(MetadataManager.java:253)
	at 
org.apache.ojb.broker.cache.ObjectCacheTest.testPerDatabaseCache(ObjectCacheTest.java:364)

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Thomas Dudziak <to...@gmail.com>.
On 12/22/05, Armin Waibel <ar...@apache.org> wrote:

> This is really strange! I update my local branch again, remove all
> unkown files and run the "clean" task before "junit" - same result!
>
> Three new test failures. I don't think it's platform specific
>
> org.apache.ojb.broker.metadata.CustomAttributesTest.testCustomAttributesDescriptorRepository(CustomAttributesTest.java:58)
> org.apache.ojb.broker.metadata.MetadataTest.testObjectCacheDeclarations(MetadataTest.java:374)
> org.apache.ojb.broker.cache.ObjectCacheTest.testPerDatabaseCache(ObjectCacheTest.java:364)
>
> all test failures are metadata specific.
> Nobody else can reproduce these new failures when running the junit ant
> task?

Still can't reproduce it. Running (with Java 1.5):

ant -Dojb.testsToRun=org/apache/ojb/broker/metadata/CustomAttributesTest.java
junit-no-compile-no-prepare-selected

Buildfile: build.xml

junit-no-compile-no-prepare-selected:
    [junit] Running org.apache.ojb.broker.metadata.CustomAttributesTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 7,511 sec

BUILD SUCCESSFUL

Have you tried a fresh checkout ?

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Thomas Dudziak <to...@gmail.com>.
On 12/22/05, Antonio Gallardo <ag...@agssa.net> wrote:

> Can you post the unit log file? To see why exactly it is broken?
>
> I think it is really important to check all the different databases with
> the JVM before releasing. Perhaps we can setup a wiki page to check all
> of them. :-)
>
> I am planning to run this tests later today. I hope this helps.

The tests in question are not database specific, they deal only with
metadata as far as I can see.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Antonio Gallardo <ag...@agssa.net>.
Armin Waibel wrote:

> Hi Tom,
>
> Thomas Dudziak wrote:
>
>> On 12/22/05, Armin Waibel <ar...@apache.org> wrote:
>>
>>
>>> I updated my local CVS and now I get three new test failures (see
>>> below). Could this someone verify?
>>
>>
>>
>> Hmm, works for me (within Eclipse, against Derby if that matters).
>>
>
> This is really strange! I update my local branch again, remove all 
> unkown files and run the "clean" task before "junit" - same result!
>
> Three new test failures. I don't think it's platform specific
>
> org.apache.ojb.broker.metadata.CustomAttributesTest.testCustomAttributesDescriptorRepository(CustomAttributesTest.java:58) 
>
> org.apache.ojb.broker.metadata.MetadataTest.testObjectCacheDeclarations(MetadataTest.java:374) 
>
> org.apache.ojb.broker.cache.ObjectCacheTest.testPerDatabaseCache(ObjectCacheTest.java:364) 
>
>
> all test failures are metadata specific.
> Nobody else can reproduce these new failures when running the junit 
> ant task?
>
> regards,
> Armin
>
> junit-no-compile-no-prepare:
>     [junit] Running org.apache.ojb.broker.AllTests
>     [junit] Tests run: 663, Failures: 3, Errors: 2, Time elapsed: 
> 132,734 sec
>     [junit] Test org.apache.ojb.broker.AllTests FAILED

Hi Tom:

Can you post the unit log file? To see why exactly it is broken?

I think it is really important to check all the different databases with 
the JVM before releasing. Perhaps we can setup a wiki page to check all 
of them. :-)

I am planning to run this tests later today. I hope this helps.

Best Regards,

Antonio Gallardo.

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Thomas Dudziak <to...@gmail.com>.
On 12/22/05, Armin Waibel <ar...@apache.org> wrote:

> This is really strange! I update my local branch again, remove all
> unkown files and run the "clean" task before "junit" - same result!
>
> Three new test failures. I don't think it's platform specific

Running against hsqldb or derby, I get the same errors as you did when running

ant junit

But when running the tests separately:

ant -Dojb.testsToRun=org/apache/ojb/broker/metadata/CustomAttributesTest.java
junit
ant -Dojb.testsToRun=org/apache/ojb/broker/metadata/MetadataTest.java junit
ant -Dojb.testsToRun=org/apache/ojb/broker/cache/ObjectCacheTest.java junit

then all pass without problems.
Therefore, I think that one of the tests executed before them affects
them somehow, but I cannot really tell how (don't really know these
tests).

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Thomas Dudziak <to...@gmail.com>.
On 12/23/05, Armin Waibel <ar...@apache.org> wrote:

> yep, this fix the problem - thanks!
> You fixed it a few minutes before my new clean CVS check out was
> finished - I'll be damned ;-)

Ah, ehm, sorry about that. Next time I'll wait a few minutes so that
your checkout is finished ;-)

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Armin Waibel <ar...@apache.org>.
Hi,

Thomas Dudziak wrote:
> On 12/22/05, Armin Waibel <ar...@apache.org> wrote:
> 
> 
>>This is really strange! I update my local branch again, remove all
>>unkown files and run the "clean" task before "junit" - same result!
> 
> 
> I found the problem: the test execution order has changed somehow (but
> you shouldn't rely on that anyways). Now the
> RepositoryPersistorTest.testStoreReadRepository test is executed
> before the three test cases that fail, and this test overwrites the
> file Test_Repository.xml (at least on windows machines), which in turn
> causes the three other tests to fail.
> I'll change the RepositoryPersistorTest.testStoreReadRepository test
> accordingly.
>

yep, this fix the problem - thanks!
You fixed it a few minutes before my new clean CVS check out was 
finished - I'll be damned ;-)

regards,
Armin


> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Thomas Dudziak <to...@gmail.com>.
On 12/22/05, Armin Waibel <ar...@apache.org> wrote:

> This is really strange! I update my local branch again, remove all
> unkown files and run the "clean" task before "junit" - same result!

I found the problem: the test execution order has changed somehow (but
you shouldn't rely on that anyways). Now the
RepositoryPersistorTest.testStoreReadRepository test is executed
before the three test cases that fail, and this test overwrites the
file Test_Repository.xml (at least on windows machines), which in turn
causes the three other tests to fail.
I'll change the RepositoryPersistorTest.testStoreReadRepository test
accordingly.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Armin Waibel <ar...@apache.org>.
Hi Tom,

Thomas Dudziak wrote:
> On 12/22/05, Armin Waibel <ar...@apache.org> wrote:
> 
> 
>>I updated my local CVS and now I get three new test failures (see
>>below). Could this someone verify?
> 
> 
> Hmm, works for me (within Eclipse, against Derby if that matters).
> 

This is really strange! I update my local branch again, remove all 
unkown files and run the "clean" task before "junit" - same result!

Three new test failures. I don't think it's platform specific

org.apache.ojb.broker.metadata.CustomAttributesTest.testCustomAttributesDescriptorRepository(CustomAttributesTest.java:58)
org.apache.ojb.broker.metadata.MetadataTest.testObjectCacheDeclarations(MetadataTest.java:374)
org.apache.ojb.broker.cache.ObjectCacheTest.testPerDatabaseCache(ObjectCacheTest.java:364)

all test failures are metadata specific.
Nobody else can reproduce these new failures when running the junit ant 
task?

regards,
Armin

junit-no-compile-no-prepare:
     [junit] Running org.apache.ojb.broker.AllTests
     [junit] Tests run: 663, Failures: 3, Errors: 2, Time elapsed: 
132,734 sec
     [junit] Test org.apache.ojb.broker.AllTests FAILED
     [junit] Running org.apache.ojb.odmg.AllTests
     [junit] Tests run: 215, Failures: 0, Errors: 0, Time elapsed: 
42,657 sec
     [junit] Running org.apache.ojb.soda.AllTests
     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 6,656 sec
     [junit] Running org.apache.ojb.otm.AllTests
     [junit] Tests run: 80, Failures: 0, Errors: 0, Time elapsed: 32 sec


> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [OJB 1.0.x] New test failures after CVS update

Posted by Thomas Dudziak <to...@gmail.com>.
On 12/22/05, Armin Waibel <ar...@apache.org> wrote:

> I updated my local CVS and now I get three new test failures (see
> below). Could this someone verify?

Hmm, works for me (within Eclipse, against Derby if that matters).

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org