[logback-dev] TimeBasedFileNamingAndTriggeringPolicyBaseTest fails

Ralph Goers rgoers at apache.org
Tue Mar 6 23:30:54 CET 2012


Yes, the SMTPAppender test now passes. ReconfigureOnChangeTest fails sometimes and sometimes the build now completes successfully.

Thanks,
Ralph

On Mar 6, 2012, at 12:11 PM, ceki wrote:

> 
> Fixing LBCLASSIC-221 fixes SMTPAppender_GreenTest. Failures of ReconfigureOnChangeTest are probably related to MacOS. (It's a pretty lame excuse but that's the best I've got at the moment.)
> 
> --
> Ceki
> http://twitter.com/#!/ceki
> 
> 
> On 06.03.2012 00:22, Ralph Goers wrote:
>> My machine wasn't busy.  As said in a prior email I just purchased a new MacBook Pro with a 2.5 GHz Intel Core i7.  I ran the build again against logback-class (twice) and this time got a different error. I then ran the full build and also got this new error.
>> 
>> -------------------------------------------------------------------------------
>> Test set: ch.qos.logback.classic.net.SMTPAppender_GreenTest
>> -------------------------------------------------------------------------------
>> Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.421 sec<<<  FAILURE!
>> smoke(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.309 secLBCLASSIC_104(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.115 sechtml(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.15 sechtmlLong(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.381 sectestCustomEvaluator(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.116 sectestCustomBufferSize(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.115 sectestMultipleTo(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.113 secbufferShouldBeResetBetweenMessages(ch.qos.logback.classic.net.SMTPAppender_GreenTest)  Time elapsed: 0.121 sec<<<  FAILURE!
>> java.lang.AssertionError
>>         at org.junit.Assert.fail(Assert.java:92)
>>         at org.junit.Assert.assertTrue(Assert.java:43)
>>         at org.junit.Assert.assertFalse(Assert.java:68)
>>         at org.junit.Assert.assertFalse(Assert.java:79)
>>         at ch.qos.logback.classic.net.SMTPAppender_GreenTest.bufferShouldBeResetBetweenMessages(SMTPAppender_GreenTest.java:297)
>> 
>> On Mar 5, 2012, at 2:07 PM, ceki wrote:
>> 
>>> 
>>> "current duration 6.76 exceeded expected 2.18862" indicates that either your machine is busy or the test fails for your OS. The performance tests have revealed themselves to be very fragile.
>>> 
>>> On 05.03.2012 19:42, Ralph Goers wrote:
>>>> Yes, that error seems to be fixed. Now logback-classic is failing with
>>>> 
>>>> -------------------------------------------------------------------------------
>>>> Test set: ch.qos.logback.classic.turbo.ReconfigureOnChangeTest
>>>> -------------------------------------------------------------------------------
>>>> Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 10.493 sec<<<   FAILURE!
>>>> scan1(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 1.23 secscanWithFileInclusion(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 0.931 secscanWithResourceInclusion(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 1.034 secincludeScanViaInputStreamSuppliedConfigFile(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 1.013 secfallbackToSafe(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 2.031 secfallbackToSafeWithIncludedFile(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 1.935 secgscan1(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 1.047 secscan_lbclassic154(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 1.016 secdirectPerfTest(ch.qos.logback.classic.turbo.ReconfigureOnChangeTest)  Time elapsed: 0.219 sec<<<   FAILURE!
>>>> junit.framework.AssertionFailedError: current duration 6.76 exceeded expected 2.18862 (adjusted reference), 18 (raw reference)
>>>>         at org.slf4j.helpers.BogoPerf.assertDuration(BogoPerf.java:121)
>>>>         at ch.qos.logback.classic.turbo.ReconfigureOnChangeTest.directPerfTest(ReconfigureOnChangeTest.java:301)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>>>         at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
>>>>         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> _______________________________________________
> logback-dev mailing list
> logback-dev at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-dev



More information about the logback-dev mailing list