You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Shai Erera <se...@gmail.com> on 2013/05/10 07:20:25 UTC

Make tests.failfast default to true

Hi

Can we default tests.failfast to true? I don't know how common it is to run
with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to see
all N tests finish.

At any rate, if someone wishes to, he can always specify
-Dtests.failfast=false. It now depends what is the default behavior we want
to have.

Any thoughts?

Shai

Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
Thanks Dawid!

Shai


On Sun, May 12, 2013 at 10:03 PM, Dawid Weiss
<da...@cs.put.poznan.pl>wrote:

> > While we could make LTC default maxFailures to 1 if tests.iters are >1, I
> > don't think that it's worth it. I'll just type -Dtests.failfast=true.
>
> The default isn't without a reason -- when you run with tests.iters
> with a fixed (method) seed and have multiple failures  (but different
> from the number of runs) this means your test is seed-independent (it
> depends on factors other than just the seed). Yours is just one
> scenario out of many :)
>
> > Anyway, since then I was able to run luceneutil/repeatLuceneTest.py which
> > does the combination of tests.iters and tests.dups (which is what I
> wished
> > -Dtests.dups, or -Dtests.beast would do). So far it's been working great.
>
> Great to hear that. I will fix that issue you came across anyway --
> this is a bug so thanks for reporting.
>
> Dawid
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: Make tests.failfast default to true

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
> While we could make LTC default maxFailures to 1 if tests.iters are >1, I
> don't think that it's worth it. I'll just type -Dtests.failfast=true.

The default isn't without a reason -- when you run with tests.iters
with a fixed (method) seed and have multiple failures  (but different
from the number of runs) this means your test is seed-independent (it
depends on factors other than just the seed). Yours is just one
scenario out of many :)

> Anyway, since then I was able to run luceneutil/repeatLuceneTest.py which
> does the combination of tests.iters and tests.dups (which is what I wished
> -Dtests.dups, or -Dtests.beast would do). So far it's been working great.

Great to hear that. I will fix that issue you came across anyway --
this is a bug so thanks for reporting.

Dawid

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


Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
Thanks Dawid. It's not critical to change this setting and i don't want to
override it by default when running tests, only if I use tests.iters.
While we could make LTC default maxFailures to 1 if tests.iters are >1, I
don't think that it's worth it. I'll just type -Dtests.failfast=true.

Anyway, since then I was able to run luceneutil/repeatLuceneTest.py which
does the combination of tests.iters and tests.dups (which is what I wished
-Dtests.dups, or -Dtests.beast would do). So far it's been working great.


Shai


On Sun, May 12, 2013 at 9:15 PM, Dawid Weiss
<da...@cs.put.poznan.pl>wrote:

> > OnI think that in general the code that initializes
> ignoreAfterMaxFailures should take tests.iters into account?
> > I.e. what's the point of running a test with maxfailures=5 or
> failfast=true without iters?
>
> I looked at the code. The thing is one of these options (failfast?) is
> I think a "legacy" thing; maxfailures takes precedence over this
> property. When you look at the LTC this is indeed the case
>
>     if (failFast) {
>       if (maxFailures == Integer.MAX_VALUE) {
>         maxFailures = 1;
>       } else {
>         Logger.getLogger(LuceneTestCase.class.getSimpleName()).warning(
>             "Property '" + SYSPROP_MAXFAILURES + "'=" + maxFailures +
> ", 'failfast' is" +
>             " ignored.");
>       }
>     }
>
> So if failfast is specified it effectively means the same as
> specifying maxFailures=1, otherwise a warning is printed about
> incompatible combination of options. I think we should keep this
> behavior -- people may be used to this.
>
> The implementation of maxfailures is JVM-local and indeed is meant
> primarily to early-exit (ignore) any tests after the first N failures.
> This includes the scenario with multiple test repetitions but was
> designed for the general case, not this particular use case. The
> default behavior in ANT's JUnit (and in maven too) is to execute all
> tests, not to stop on the first error. Again, I think we should keep
> this behavior consistent. If you wish to alter it locally on a
> persistent basis then how about if you create your own setup in:
>
> <property file="${user.home}/lucene.build.properties"/>
>
> As for tests failing when failfast is set to true -- this is indeed a
> bug in tests (they shouldn't be sensitive to this but they are). I
> filed this issue to fix this:
>
> https://issues.apache.org/jira/browse/LUCENE-4997
>
> Dawid
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: Make tests.failfast default to true

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
> OnI think that in general the code that initializes ignoreAfterMaxFailures should take tests.iters into account?
> I.e. what's the point of running a test with maxfailures=5 or failfast=true without iters?

I looked at the code. The thing is one of these options (failfast?) is
I think a "legacy" thing; maxfailures takes precedence over this
property. When you look at the LTC this is indeed the case

    if (failFast) {
      if (maxFailures == Integer.MAX_VALUE) {
        maxFailures = 1;
      } else {
        Logger.getLogger(LuceneTestCase.class.getSimpleName()).warning(
            "Property '" + SYSPROP_MAXFAILURES + "'=" + maxFailures +
", 'failfast' is" +
            " ignored.");
      }
    }

So if failfast is specified it effectively means the same as
specifying maxFailures=1, otherwise a warning is printed about
incompatible combination of options. I think we should keep this
behavior -- people may be used to this.

The implementation of maxfailures is JVM-local and indeed is meant
primarily to early-exit (ignore) any tests after the first N failures.
This includes the scenario with multiple test repetitions but was
designed for the general case, not this particular use case. The
default behavior in ANT's JUnit (and in maven too) is to execute all
tests, not to stop on the first error. Again, I think we should keep
this behavior consistent. If you wish to alter it locally on a
persistent basis then how about if you create your own setup in:

<property file="${user.home}/lucene.build.properties"/>

As for tests failing when failfast is set to true -- this is indeed a
bug in tests (they shouldn't be sensitive to this but they are). I
filed this issue to fix this:

https://issues.apache.org/jira/browse/LUCENE-4997

Dawid

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


Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
Oh, I didn't know that. Thought it affects only iters. In that case it may
be wrong to change the default?

Shai
On May 11, 2013 4:39 PM, "Dawid Weiss" <da...@cs.put.poznan.pl> wrote:

>
> Can you create an issue and attach a patch? failFast is not only for
> reiterations -- its primary purpose is, as far as I remember, to skip all
> tests executing on this JVM after the first (or n-th in general) failure
> was hit. I'd have to take a global look at this in order to constructively
> tell you how to globally change the default.
>
> Dawid
>
> On Sat, May 11, 2013 at 3:07 PM, Shai Erera <se...@gmail.com> wrote:
>
>> Hmm ... thought it would be a simple fix such as changing
>>
>> boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, false);
>>
>> to
>>
>> boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, true);
>>
>> But after I do that, tests like TestSystemPropertiesInvariantRule (and
>> few others) fail, on some unexpected failures.
>> I think that in general the code that initializes ignoreAfterMaxFailures
>> should take tests.iters into account?
>> I.e. what's the point of running a test with maxfailures=5 or
>> failfast=true without iters?
>>
>> After I do this, all tests are happy:
>>
>> Index:
>> lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
>> ===================================================================
>> ---
>> lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
>> (revision 1481311)
>> +++
>> lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
>> (working copy)
>> @@ -358,12 +358,13 @@
>>    /**
>>     * Ignore tests after hitting a designated number of initial failures.
>>     */
>> -  final static TestRuleIgnoreAfterMaxFailures ignoreAfterMaxFailures;
>> +  final static TestRuleIgnoreAfterMaxFailures ignoreAfterMaxFailures;
>>    static {
>>      int maxFailures = systemPropertyAsInt(SYSPROP_MAXFAILURES,
>> Integer.MAX_VALUE);
>> -    boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, false);
>> -
>> -    if (failFast) {
>> +    boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, true);
>> +    int iters = systemPropertyAsInt("tests.iters", 1);
>> +
>> +    if (iters > 1 && failFast) {
>>        if (maxFailures == Integer.MAX_VALUE) {
>>          maxFailures = 1;
>>        } else {
>>
>> What do you think? Maybe we should also print a warning about using these
>> props without iters?
>>
>> Shai
>>
>>
>> On Fri, May 10, 2013 at 10:45 PM, Dawid Weiss <
>> dawid.weiss@cs.put.poznan.pl> wrote:
>>
>>> > Dawid promised me he will one day find the time to do it! :)
>>>
>>> I have it pretty high on my list of things to do in my spare time. The
>>> problem is twofold -- I have very few spare cycles at the moment and the
>>> problem is actually more complicated than it seems on the surface. I do
>>> have some ideas though.
>>>
>>> Maybe if you have a shellscript that's generic enough, it's worth
>>>> putting under dev-tools?
>>>>
>>>
>>> The simplest string would be something that just calls ant test
>>> -Dtests.seed=`...` repeatedly with a different seed and checks for the
>>> output status. This is doable even in bash, as in:
>>>
>>> for i in `seq 1 100`; do
>>>   seed=`printf "%X%X" $RANDOM $RANDOM`
>>>   echo "Iteration $i, seed: $seed"
>>>   # ant -Dtests.seed=$seed
>>>   # check if $? indicates a failure and abort if so.
>>> done
>>>
>>> D.
>>>
>>
>>
>

Re: Make tests.failfast default to true

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
Can you create an issue and attach a patch? failFast is not only for
reiterations -- its primary purpose is, as far as I remember, to skip all
tests executing on this JVM after the first (or n-th in general) failure
was hit. I'd have to take a global look at this in order to constructively
tell you how to globally change the default.

Dawid

On Sat, May 11, 2013 at 3:07 PM, Shai Erera <se...@gmail.com> wrote:

> Hmm ... thought it would be a simple fix such as changing
>
> boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, false);
>
> to
>
> boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, true);
>
> But after I do that, tests like TestSystemPropertiesInvariantRule (and few
> others) fail, on some unexpected failures.
> I think that in general the code that initializes ignoreAfterMaxFailures
> should take tests.iters into account?
> I.e. what's the point of running a test with maxfailures=5 or
> failfast=true without iters?
>
> After I do this, all tests are happy:
>
> Index:
> lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
> ===================================================================
> ---
> lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
> (revision 1481311)
> +++
> lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
> (working copy)
> @@ -358,12 +358,13 @@
>    /**
>     * Ignore tests after hitting a designated number of initial failures.
>     */
> -  final static TestRuleIgnoreAfterMaxFailures ignoreAfterMaxFailures;
> +  final static TestRuleIgnoreAfterMaxFailures ignoreAfterMaxFailures;
>    static {
>      int maxFailures = systemPropertyAsInt(SYSPROP_MAXFAILURES,
> Integer.MAX_VALUE);
> -    boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, false);
> -
> -    if (failFast) {
> +    boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, true);
> +    int iters = systemPropertyAsInt("tests.iters", 1);
> +
> +    if (iters > 1 && failFast) {
>        if (maxFailures == Integer.MAX_VALUE) {
>          maxFailures = 1;
>        } else {
>
> What do you think? Maybe we should also print a warning about using these
> props without iters?
>
> Shai
>
>
> On Fri, May 10, 2013 at 10:45 PM, Dawid Weiss <
> dawid.weiss@cs.put.poznan.pl> wrote:
>
>> > Dawid promised me he will one day find the time to do it! :)
>>
>> I have it pretty high on my list of things to do in my spare time. The
>> problem is twofold -- I have very few spare cycles at the moment and the
>> problem is actually more complicated than it seems on the surface. I do
>> have some ideas though.
>>
>> Maybe if you have a shellscript that's generic enough, it's worth putting
>>> under dev-tools?
>>>
>>
>> The simplest string would be something that just calls ant test
>> -Dtests.seed=`...` repeatedly with a different seed and checks for the
>> output status. This is doable even in bash, as in:
>>
>> for i in `seq 1 100`; do
>>   seed=`printf "%X%X" $RANDOM $RANDOM`
>>   echo "Iteration $i, seed: $seed"
>>   # ant -Dtests.seed=$seed
>>   # check if $? indicates a failure and abort if so.
>> done
>>
>> D.
>>
>
>

Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
Hmm ... thought it would be a simple fix such as changing

boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, false);

to

boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, true);

But after I do that, tests like TestSystemPropertiesInvariantRule (and few
others) fail, on some unexpected failures.
I think that in general the code that initializes ignoreAfterMaxFailures
should take tests.iters into account?
I.e. what's the point of running a test with maxfailures=5 or failfast=true
without iters?

After I do this, all tests are happy:

Index:
lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
===================================================================
---
lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
(revision 1481311)
+++
lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
(working copy)
@@ -358,12 +358,13 @@
   /**
    * Ignore tests after hitting a designated number of initial failures.
    */
-  final static TestRuleIgnoreAfterMaxFailures ignoreAfterMaxFailures;
+  final static TestRuleIgnoreAfterMaxFailures ignoreAfterMaxFailures;
   static {
     int maxFailures = systemPropertyAsInt(SYSPROP_MAXFAILURES,
Integer.MAX_VALUE);
-    boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, false);
-
-    if (failFast) {
+    boolean failFast = systemPropertyAsBoolean(SYSPROP_FAILFAST, true);
+    int iters = systemPropertyAsInt("tests.iters", 1);
+
+    if (iters > 1 && failFast) {
       if (maxFailures == Integer.MAX_VALUE) {
         maxFailures = 1;
       } else {

What do you think? Maybe we should also print a warning about using these
props without iters?

Shai


On Fri, May 10, 2013 at 10:45 PM, Dawid Weiss
<da...@cs.put.poznan.pl>wrote:

> > Dawid promised me he will one day find the time to do it! :)
>
> I have it pretty high on my list of things to do in my spare time. The
> problem is twofold -- I have very few spare cycles at the moment and the
> problem is actually more complicated than it seems on the surface. I do
> have some ideas though.
>
> Maybe if you have a shellscript that's generic enough, it's worth putting
>> under dev-tools?
>>
>
> The simplest string would be something that just calls ant test
> -Dtests.seed=`...` repeatedly with a different seed and checks for the
> output status. This is doable even in bash, as in:
>
> for i in `seq 1 100`; do
>   seed=`printf "%X%X" $RANDOM $RANDOM`
>   echo "Iteration $i, seed: $seed"
>   # ant -Dtests.seed=$seed
>   # check if $? indicates a failure and abort if so.
> done
>
> D.
>

Re: Make tests.failfast default to true

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
> Dawid promised me he will one day find the time to do it! :)

I have it pretty high on my list of things to do in my spare time. The
problem is twofold -- I have very few spare cycles at the moment and the
problem is actually more complicated than it seems on the surface. I do
have some ideas though.

Maybe if you have a shellscript that's generic enough, it's worth putting
> under dev-tools?
>

The simplest string would be something that just calls ant test
-Dtests.seed=`...` repeatedly with a different seed and checks for the
output status. This is doable even in bash, as in:

for i in `seq 1 100`; do
  seed=`printf "%X%X" $RANDOM $RANDOM`
  echo "Iteration $i, seed: $seed"
  # ant -Dtests.seed=$seed
  # check if $? indicates a failure and abort if so.
done

D.

Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
Me too! :)

I was hoping tests.dups would do it. Dawid promised me he will one day find
the time to do it! :)

In the meanwhile, Mike pointed me to repeatLuceneTest.py under luceneutil.
I've yet been successful to run it, but I think it's just a matter of
configuration.

Maybe if you have a shellscript that's generic enough, it's worth putting
under dev-tools?

Shai


On Fri, May 10, 2013 at 6:06 PM, Robert Muir <rc...@gmail.com> wrote:

> I'm still hoping for the elusive tests.beast or whatever that gives each
> run a whole different seed and acts like the shellscripts that run 'ant
> test -Dtestcase' over and over :)
>
>
> On Fri, May 10, 2013 at 10:59 AM, Shai Erera <se...@gmail.com> wrote:
>
>> Thanks for the tip. If it's just me, I won't make the change. I just find
>> it annoying to have to type it everytime, and think that this is probably
>> what you intend to achieve when running w/ tests.iters -- search for a seed
>> that trips the tests.
>>
>> If there are no objections, I'll make the trivial change later.
>>
>> Shai
>>
>>
>> On Fri, May 10, 2013 at 5:55 PM, Robert Muir <rc...@gmail.com> wrote:
>>
>>> I dont have any strong opinion really, i just want to mention on the
>>> side you can also change your 'personal defaults' by editing
>>> build.properties in your home directory too.
>>>
>>>
>>> On Fri, May 10, 2013 at 9:27 AM, Shai Erera <se...@gmail.com> wrote:
>>>
>>>> Because I think it makes more sense as a default? Usually when I run
>>>> with tests.iters, I just search for a seed that fails. When I find it, I go
>>>> fix the bug and run again.
>>>>
>>>> But that's just me. That's why I asked if others think it makes sense
>>>> as a default too. There is no functionality change, just different default.
>>>>
>>>> Shai
>>>> On May 10, 2013 3:33 PM, "Robert Muir" <rc...@gmail.com> wrote:
>>>>
>>>>> why change it?
>>>>>
>>>>> On Fri, May 10, 2013 at 1:20 AM, Shai Erera <se...@gmail.com> wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> Can we default tests.failfast to true? I don't know how common it is
>>>>>> to run with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to
>>>>>> see all N tests finish.
>>>>>>
>>>>>> At any rate, if someone wishes to, he can always specify
>>>>>> -Dtests.failfast=false. It now depends what is the default behavior we want
>>>>>> to have.
>>>>>>
>>>>>> Any thoughts?
>>>>>>
>>>>>> Shai
>>>>>>
>>>>>
>>>>>
>>>
>>
>

Re: Make tests.failfast default to true

Posted by Robert Muir <rc...@gmail.com>.
I'm still hoping for the elusive tests.beast or whatever that gives each
run a whole different seed and acts like the shellscripts that run 'ant
test -Dtestcase' over and over :)

On Fri, May 10, 2013 at 10:59 AM, Shai Erera <se...@gmail.com> wrote:

> Thanks for the tip. If it's just me, I won't make the change. I just find
> it annoying to have to type it everytime, and think that this is probably
> what you intend to achieve when running w/ tests.iters -- search for a seed
> that trips the tests.
>
> If there are no objections, I'll make the trivial change later.
>
> Shai
>
>
> On Fri, May 10, 2013 at 5:55 PM, Robert Muir <rc...@gmail.com> wrote:
>
>> I dont have any strong opinion really, i just want to mention on the side
>> you can also change your 'personal defaults' by editing build.properties in
>> your home directory too.
>>
>>
>> On Fri, May 10, 2013 at 9:27 AM, Shai Erera <se...@gmail.com> wrote:
>>
>>> Because I think it makes more sense as a default? Usually when I run
>>> with tests.iters, I just search for a seed that fails. When I find it, I go
>>> fix the bug and run again.
>>>
>>> But that's just me. That's why I asked if others think it makes sense as
>>> a default too. There is no functionality change, just different default.
>>>
>>> Shai
>>> On May 10, 2013 3:33 PM, "Robert Muir" <rc...@gmail.com> wrote:
>>>
>>>> why change it?
>>>>
>>>> On Fri, May 10, 2013 at 1:20 AM, Shai Erera <se...@gmail.com> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> Can we default tests.failfast to true? I don't know how common it is
>>>>> to run with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to
>>>>> see all N tests finish.
>>>>>
>>>>> At any rate, if someone wishes to, he can always specify
>>>>> -Dtests.failfast=false. It now depends what is the default behavior we want
>>>>> to have.
>>>>>
>>>>> Any thoughts?
>>>>>
>>>>> Shai
>>>>>
>>>>
>>>>
>>
>

Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
Thanks for the tip. If it's just me, I won't make the change. I just find
it annoying to have to type it everytime, and think that this is probably
what you intend to achieve when running w/ tests.iters -- search for a seed
that trips the tests.

If there are no objections, I'll make the trivial change later.

Shai


On Fri, May 10, 2013 at 5:55 PM, Robert Muir <rc...@gmail.com> wrote:

> I dont have any strong opinion really, i just want to mention on the side
> you can also change your 'personal defaults' by editing build.properties in
> your home directory too.
>
>
> On Fri, May 10, 2013 at 9:27 AM, Shai Erera <se...@gmail.com> wrote:
>
>> Because I think it makes more sense as a default? Usually when I run with
>> tests.iters, I just search for a seed that fails. When I find it, I go fix
>> the bug and run again.
>>
>> But that's just me. That's why I asked if others think it makes sense as
>> a default too. There is no functionality change, just different default.
>>
>> Shai
>> On May 10, 2013 3:33 PM, "Robert Muir" <rc...@gmail.com> wrote:
>>
>>> why change it?
>>>
>>> On Fri, May 10, 2013 at 1:20 AM, Shai Erera <se...@gmail.com> wrote:
>>>
>>>> Hi
>>>>
>>>> Can we default tests.failfast to true? I don't know how common it is to
>>>> run with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to
>>>> see all N tests finish.
>>>>
>>>> At any rate, if someone wishes to, he can always specify
>>>> -Dtests.failfast=false. It now depends what is the default behavior we want
>>>> to have.
>>>>
>>>> Any thoughts?
>>>>
>>>> Shai
>>>>
>>>
>>>
>

Re: Make tests.failfast default to true

Posted by Robert Muir <rc...@gmail.com>.
I dont have any strong opinion really, i just want to mention on the side
you can also change your 'personal defaults' by editing build.properties in
your home directory too.

On Fri, May 10, 2013 at 9:27 AM, Shai Erera <se...@gmail.com> wrote:

> Because I think it makes more sense as a default? Usually when I run with
> tests.iters, I just search for a seed that fails. When I find it, I go fix
> the bug and run again.
>
> But that's just me. That's why I asked if others think it makes sense as a
> default too. There is no functionality change, just different default.
>
> Shai
> On May 10, 2013 3:33 PM, "Robert Muir" <rc...@gmail.com> wrote:
>
>> why change it?
>>
>> On Fri, May 10, 2013 at 1:20 AM, Shai Erera <se...@gmail.com> wrote:
>>
>>> Hi
>>>
>>> Can we default tests.failfast to true? I don't know how common it is to
>>> run with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to
>>> see all N tests finish.
>>>
>>> At any rate, if someone wishes to, he can always specify
>>> -Dtests.failfast=false. It now depends what is the default behavior we want
>>> to have.
>>>
>>> Any thoughts?
>>>
>>> Shai
>>>
>>
>>

Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
Because I think it makes more sense as a default? Usually when I run with
tests.iters, I just search for a seed that fails. When I find it, I go fix
the bug and run again.

But that's just me. That's why I asked if others think it makes sense as a
default too. There is no functionality change, just different default.

Shai
On May 10, 2013 3:33 PM, "Robert Muir" <rc...@gmail.com> wrote:

> why change it?
>
> On Fri, May 10, 2013 at 1:20 AM, Shai Erera <se...@gmail.com> wrote:
>
>> Hi
>>
>> Can we default tests.failfast to true? I don't know how common it is to
>> run with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to
>> see all N tests finish.
>>
>> At any rate, if someone wishes to, he can always specify
>> -Dtests.failfast=false. It now depends what is the default behavior we want
>> to have.
>>
>> Any thoughts?
>>
>> Shai
>>
>
>

Re: Make tests.failfast default to true

Posted by Robert Muir <rc...@gmail.com>.
why change it?

On Fri, May 10, 2013 at 1:20 AM, Shai Erera <se...@gmail.com> wrote:

> Hi
>
> Can we default tests.failfast to true? I don't know how common it is to
> run with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to
> see all N tests finish.
>
> At any rate, if someone wishes to, he can always specify
> -Dtests.failfast=false. It now depends what is the default behavior we want
> to have.
>
> Any thoughts?
>
> Shai
>

Re: Make tests.failfast default to true

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
I don't have any strong opinion, to be honest so if nobody vetoes this
change, go ahead.

Dawid

On Fri, May 10, 2013 at 8:27 AM, Shai Erera <se...@gmail.com> wrote:
> I thought to make the change in LuceneTestCase.
>
> Shai
>
>
> On Fri, May 10, 2013 at 8:56 AM, Dawid Weiss <da...@cs.put.poznan.pl>
> wrote:
>>
>> I don't care much. If you do though, you can specify your own override
>> in any of these locations?
>>
>>   <property file="${user.home}/lucene.build.properties"/>
>>   <property file="${user.home}/build.properties"/>
>>   <property file="${basedir}/build.properties"/>
>>   <property file="${common.dir}/build.properties"/>
>>
>> Or is this something you'd like to promote to the top level?
>>
>> Dawid
>>
>> On Fri, May 10, 2013 at 7:20 AM, Shai Erera <se...@gmail.com> wrote:
>> > Hi
>> >
>> > Can we default tests.failfast to true? I don't know how common it is to
>> > run
>> > with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to see
>> > all
>> > N tests finish.
>> >
>> > At any rate, if someone wishes to, he can always specify
>> > -Dtests.failfast=false. It now depends what is the default behavior we
>> > want
>> > to have.
>> >
>> > Any thoughts?
>> >
>> > Shai
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>

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


Re: Make tests.failfast default to true

Posted by Shai Erera <se...@gmail.com>.
I thought to make the change in LuceneTestCase.

Shai


On Fri, May 10, 2013 at 8:56 AM, Dawid Weiss
<da...@cs.put.poznan.pl>wrote:

> I don't care much. If you do though, you can specify your own override
> in any of these locations?
>
>   <property file="${user.home}/lucene.build.properties"/>
>   <property file="${user.home}/build.properties"/>
>   <property file="${basedir}/build.properties"/>
>   <property file="${common.dir}/build.properties"/>
>
> Or is this something you'd like to promote to the top level?
>
> Dawid
>
> On Fri, May 10, 2013 at 7:20 AM, Shai Erera <se...@gmail.com> wrote:
> > Hi
> >
> > Can we default tests.failfast to true? I don't know how common it is to
> run
> > with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to see
> all
> > N tests finish.
> >
> > At any rate, if someone wishes to, he can always specify
> > -Dtests.failfast=false. It now depends what is the default behavior we
> want
> > to have.
> >
> > Any thoughts?
> >
> > Shai
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: Make tests.failfast default to true

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
I don't care much. If you do though, you can specify your own override
in any of these locations?

  <property file="${user.home}/lucene.build.properties"/>
  <property file="${user.home}/build.properties"/>
  <property file="${basedir}/build.properties"/>
  <property file="${common.dir}/build.properties"/>

Or is this something you'd like to promote to the top level?

Dawid

On Fri, May 10, 2013 at 7:20 AM, Shai Erera <se...@gmail.com> wrote:
> Hi
>
> Can we default tests.failfast to true? I don't know how common it is to run
> with -Dtests.iters=N, not specify -Dtests.maxfailures AND wanting to see all
> N tests finish.
>
> At any rate, if someone wishes to, he can always specify
> -Dtests.failfast=false. It now depends what is the default behavior we want
> to have.
>
> Any thoughts?
>
> Shai

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