Hi Steve.

So, the problem is that POM descriptors declare:

    <!-- RandomizedTesting library system properties -->
    <tests.iters>1</tests.iters>

and then:

    <!-- RandomizedTesting library system properties -->
    <tests.iters>${tests.iters}</tests.iters>

This effectively overrides any annotations (@Repeat) and thus the
assertion failure. It'd be better if this property was empty by
default (as in the ant build). I'll fix the test too anyway.

Dawid

On Fri, Jun 29, 2012 at 11:41 PM, Dawid Weiss
<dawid.we...@cs.put.poznan.pl> wrote:
> I'll @Ignore it until I figure out what's happening.
>
> On Fri, Jun 29, 2012 at 11:13 PM, Dawid Weiss
> <dawid.we...@cs.put.poznan.pl> wrote:
>> This is odd, really. I'll take a look but not today.
>>
>> Dawid
>>
>> On Fri, Jun 29, 2012 at 5:44 PM, Steven A Rowe <sar...@syr.edu> wrote:
>>> Hmm, this is likely a Maven Surefire-only problem.
>>>
>>> I'm clueless about the interaction between Surefire your randomized runner, 
>>> Dawid - should this test be ignored under Surefire?  Under other test 
>>> runners too, maybe?  (IntelliJ, Eclipse)
>>>
>>> Steve
>>>
>>> -----Original Message-----
>>> From: Steven A Rowe [mailto:sar...@syr.edu]
>>> Sent: Friday, June 29, 2012 11:40 AM
>>> To: dev@lucene.apache.org
>>> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #14: POMs out of sync
>>>
>>> Dawid,
>>>
>>> You checked in changes to this test (TestMaxFailuresRule.java) at revision 
>>> 1355279.
>>>
>>> This Jenkins Maven build's checked out svn revision is 1355359.
>>>
>>> So it looks like there might be a problem with your commit?
>>>
>>>
>>> Steve
>>>
>>> -----Original Message-----
>>> From: Apache Jenkins Server [mailto:jenk...@builds.apache.org]
>>> Sent: Friday, June 29, 2012 11:26 AM
>>> To: dev@lucene.apache.org
>>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #14: POMs out of sync
>>>
>>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/14/
>>>
>>> 1 tests failed.
>>> FAILED:  org.apache.lucene.util.TestMaxFailuresRule.testMaxFailures
>>>
>>> Error Message:
>>> expected:<100> but was:<1>
>>>
>>> Stack Trace:
>>> java.lang.AssertionError: expected:<100> but was:<1>
>>>        at org.junit.Assert.fail(Assert.java:93)
>>>        at org.junit.Assert.failNotEquals(Assert.java:647)
>>>        at org.junit.Assert.assertEquals(Assert.java:128)
>>>        at org.junit.Assert.assertEquals(Assert.java:472)
>>>        at org.junit.Assert.assertEquals(Assert.java:456)
>>>        at 
>>> org.apache.lucene.util.TestMaxFailuresRule.testMaxFailures(TestMaxFailuresRule.java:64)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>        at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>        at java.lang.reflect.Method.invoke(Method.java:616)
>>>        at 
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
>>>        at 
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>>>        at 
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
>>>        at 
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>>>        at 
>>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>>>        at 
>>> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
>>>        at 
>>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:53)
>>>        at org.junit.rules.RunRules.evaluate(RunRules.java:18)
>>>        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
>>>        at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
>>>        at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
>>>        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
>>>        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
>>>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
>>>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
>>>        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
>>>        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
>>>        at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
>>>        at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
>>>        at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>        at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>        at java.lang.reflect.Method.invoke(Method.java:616)
>>>        at 
>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>>        at 
>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>        at 
>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>>        at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>>>        at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>>>
>>>
>>>
>>>
>>> Build Log:
>>> [...truncated 8705 lines...]
>>> Running org.apache.lucene.util.TestMaxFailuresRule
>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec 
>>> <<< FAILURE!
>>>
>>> [...truncated 474 lines...]
>>>
>>>

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

Reply via email to