lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: GData tests
Date Thu, 20 Sep 2007 18:49:16 GMT
I have had it pass sometimes and fail sometimes.  Seems like when I  
run it on zones it fails more often then when I do on my machine, but  
that isn't via rigorous testing on my part.

I can look into it if others haven't already.

-Grant

On Sep 20, 2007, at 5:04 AM, Michael McCandless wrote:

>
> The last 2 Lucene builds failed, due to this test in GData:
>
>     [junit] Testcase: testFormatDate 
> (org.apache.lucene.gdata.utils.TestDateFormater):	FAILED
>     [junit] null
>     [junit] junit.framework.AssertionFailedError
>     [junit] 	at  
> org.apache.lucene.gdata.utils.TestDateFormater.testFormatDate 
> (TestDateFormater.java:41)
>
> which is odd.  The test looks quite innocent:
>
>     public void testFormatDate() throws ParseException {
>         // this reg. --> bit weak but does the job
>             java.util.regex.Pattern pattern =   
> java.util.regex.Pattern.compile("[A-Z][a-z]{1,2}, [0-9]{1,2} [A-Z] 
> [a-z]{2} [0-9]{4} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} [A-Z]{2,4}");
>             Date date = new Date();
>             String formatedDate = DateFormater.formatDate 
> (date,DateFormater.HTTP_HEADER_DATE_FORMAT);
>             assertTrue(pattern.matcher(formatedDate).matches 
> ());   // THIS ASSERT FAILS
>             DateFormater.parseDate("Sun, 25 Jun 2006 13:51:23  
> +0000",DateFormater.HTTP_HEADER_DATE_FORMAT,DateFormater.HTTP_HEADER_D 
> ATE_FORMAT_TIME_OFFSET);
>             DateFormater.parseDate("Sun, 25 Jun 2006 13:51:23  
> CEST",DateFormater.HTTP_HEADER_DATE_FORMAT,DateFormater.HTTP_HEADER_DA 
> TE_FORMAT_TIME_OFFSET);
>             //TODO extend this
>     }
>
> (I added // THIS ASSERT FAILS on the line that fails).
>
> The test seems to be time varying: there are certain times of the year
> when it fails!  It passes for me on WinXP, OS X and Linux (Sun Java
> 1.5).  Maybe I'm just in the right time zone...
>
> Mike
>
> "Michael McCandless" <lucene@mikemccandless.com> wrote:
>>
>> I also see these same exceptions, and more, whenever I run the GData
>> tests. However the test passes in the end for me.  As far as I can
>> remember the GData tests have printed exceptions in their output,
>> yet passed.  I've never looked into whether this is actually OK.
>>
>> Michael, are you seeing the test fail at the end?
>>
>> Mike
>>
>> "Michael Busch" <buschmic@gmail.com> wrote:
>>> Grant Ingersoll wrote:
>>>> Are GData tests passing for people?  I notice a lot of  
>>>> exceptions in the
>>>> logs and it failed for me.
>>>>
>>>
>>> I'm seeing exceptions too when I run the GData tests. I'm running  
>>> on Win
>>> XP, SUN JRE 1.5.0.
>>>
>>> Two examples:
>>>
>>>  [junit] INFO: Release new StorageQuery
>>>     [junit] org.apache.lucene.gdata.storage.StorageException:  
>>> Entry not
>>> found
>>>     [junit]         at
>>> org.apache.lucene.gdata.storage.lucenestorage.StorageQuery.getEntryL 
>>> astModified(StorageQuery.java:480)
>>>     [junit]         at
>>> org.apache.lucene.gdata.storage.lucenestorage.TestStorageQuery.testG 
>>> etEntryLastModied(TestStorageQuery.java:241)
>>>     [junit]         at
>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     [junit]         at
>>>     sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>     [junit]         at
>>>     sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>> Source)
>>>     [junit]         at java.lang.reflect.Method.invoke(Unknown  
>>> Source)
>>>     [junit]         at
>>>     junit.framework.TestCase.runTest(TestCase.java:164)
>>>     [junit]         at
>>>     junit.framework.TestCase.runBare(TestCase.java:130)
>>>     [junit]         at
>>>     junit.framework.TestResult$1.protect(TestResult.java:110)
>>>     [junit]         at
>>>     junit.framework.TestResult.runProtected(TestResult.java:128)
>>>     [junit]         at
>>>     junit.framework.TestResult.run(TestResult.java:113)
>>>     [junit]         at junit.framework.TestCase.run(TestCase.java: 
>>> 120)
>>>     [junit]         at
>>>     junit.framework.TestSuite.runTest(TestSuite.java:228)
>>>     [junit]         at junit.framework.TestSuite.run 
>>> (TestSuite.java:223)
>>>     [junit]         at
>>> org.junit.internal.runners.OldTestClassRunner.run 
>>> (OldTestClassRunner.java:35)
>>>     [junit]         at
>>> junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
>>>     [junit]         at
>>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run 
>>> (JUnitTestRunner.java:421)
>>>     [junit]         at
>>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch( 
>>> JUnitTestRunner.java:912)
>>>     [junit]         at
>>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main 
>>> (JUnitTestRunner.java:766)
>>>
>>>
>>>
>>>
>>>
>>>  [junit] ------------- ---------------- ---------------
>>>     [junit] Testsuite:
>>> org.apache.lucene.gdata.storage.lucenestorage.recover.TestRevocerRea 
>>> der
>>>     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed:  
>>> 0.461 sec
>>>     [junit] ------------- Standard Error -----------------
>>>     [junit] Sep 20, 2007 12:00:02 AM
>>> org.apache.lucene.gdata.storage.lucenestorage.recover.RecoverReader
>>> recoverEntries
>>>     [junit] SEVERE: Skipping recover entry for metadata: some  
>>> corrupted
>>>     [junit]
>>> org.apache.lucene.gdata.storage.lucenestorage.recover.RecoverExcepti 
>>> on:
>>> Illegal metadata --- some corrupted
>>>     [junit]         at
>>> org.apache.lucene.gdata.storage.lucenestorage.recover.RecoverReader$ 
>>> RecoverStrategy.fillMetaData(RecoverReader.java:141)
>>>     [junit]         at
>>> org.apache.lucene.gdata.storage.lucenestorage.recover.RecoverReader$ 
>>> RecoverStrategy.recover(RecoverReader.java:109)
>>>     [junit]         at
>>> org.apache.lucene.gdata.storage.lucenestorage.recover.RecoverReader. 
>>> recoverEntries(RecoverReader.java:68)
>>>     [junit]         at
>>> org.apache.lucene.gdata.storage.lucenestorage.recover.TestRevocerRea 
>>> der.testRecoverReader(TestRevocerReader.java:91)
>>>     [junit]         at
>>>     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     [junit]         at
>>>     sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>     [junit]         at
>>>     sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>>> Source)
>>>     [junit]         at java.lang.reflect.Method.invoke(Unknown  
>>> Source)
>>>     [junit]         at
>>>     junit.framework.TestCase.runTest(TestCase.java:164)
>>>     [junit]         at
>>>     junit.framework.TestCase.runBare(TestCase.java:130)
>>>     [junit]         at
>>>     junit.framework.TestResult$1.protect(TestResult.java:110)
>>>     [junit]         at
>>>     junit.framework.TestResult.runProtected(TestResult.java:128)
>>>     [junit]         at
>>>     junit.framework.TestResult.run(TestResult.java:113)
>>>     [junit]         at junit.framework.TestCase.run(TestCase.java: 
>>> 120)
>>>     [junit]         at
>>>     junit.framework.TestSuite.runTest(TestSuite.java:228)
>>>     [junit]         at junit.framework.TestSuite.run 
>>> (TestSuite.java:223)
>>>     [junit]         at
>>> org.junit.internal.runners.OldTestClassRunner.run 
>>> (OldTestClassRunner.java:35)
>>>     [junit]         at
>>> junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
>>>     [junit]         at
>>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run 
>>> (JUnitTestRunner.java:421)
>>>     [junit]         at
>>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch( 
>>> JUnitTestRunner.java:912)
>>>     [junit]         at
>>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main 
>>> (JUnitTestRunner.java:766)
>>>     [junit] ------------- ---------------- ---------------
>>>
>>> -------------------------------------------------------------------- 
>>> -
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>



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


Mime
View raw message