You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Grant Ingersoll (Created) (JIRA)" <ji...@apache.org> on 2011/12/02 19:09:41 UTC

[jira] [Created] (LUCENE-3615) Make it easier to run Test2BTerms

Make it easier to run Test2BTerms
---------------------------------

                 Key: LUCENE-3615
                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
             Project: Lucene - Java
          Issue Type: Improvement
            Reporter: Grant Ingersoll
            Assignee: Grant Ingersoll
            Priority: Minor


Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.

There are a couple of options to fix this:
# Add a main() so it can be invoked via the command line outside of the test framework
# Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Grant Ingersoll (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-3615:
------------------------------------

    Attachment: LUCENE-3615.patch

minor import fix, ready to go.
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch, LUCENE-3615.patch, LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Hoss Man (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161946#comment-13161946 ] 

Hoss Man commented on LUCENE-3615:
----------------------------------

This reminds me of something i kept wanting to talk to Dawid about after his random testing talk at eurocon but didn't get a chance and then promptly forgot about.

rather then having "@Weekly" or "@Slow" (or even "@Nightly") annotations, we should just use an "@Weight(Integer)" annotation indicating how "heavy" a test is (tests w/o an @Weight annotation would be treated as if they had an "@Weight(1)" annotation).  The options for running tests would then let you specify the min/max weight for the tests you want to run, and instead of a "boolean isNightly()" there could be an "int maxTestWeight()" method that would factor into methods like "rarely()" and "usually()"

So most tests would have no annotation, tests that currently use @Nightly would get @Weight(10) (or 5, or 100, or whatever) and tests like 2BTerms might get @Weight(10000).

while the default "ant test" might use {{-Dtest.weight.min=1 -Dtest.weight.max=10}} so developers and the jenkins post-commit build would run "most" tests, the "test only" jenkins build might be run with {{-Dtest.weight.min=1 -Dtest.weight.max=1}} to only run the really fast test in a rapid fire, and a nightly jenkins run could use {{-Dtest.weight.min=1 -Dtest.weight.max=100}} and a weekly (or monthly, or whatever) run might use {{-Dtest.weight.min=100 -Dtest.weight.max=100000}} (ie: skip the quick tests and just run the heavy shit)
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Grant Ingersoll (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-3615:
------------------------------------

    Attachment: LUCENE-3615.patch

Here's a first go at this.  Added @Weekly and @Slow.  Added the corresponding properties to common-build.xml.  Added ability to control test heapsize to common-build.  Marked Test2BTerms as @Weekly and @Slow.  Also makred it to not use poor codecs.  Refactored the test runner a bit to share common code when removing annotated tests.

Still testing whether this works, but thought I would put it up for feedback from those who have big machines.
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161937#comment-13161937 ] 

Robert Muir commented on LUCENE-3615:
-------------------------------------

patch looks good to me.

only one question about the patch, should Test2BTerms be both weekly and slow? 
Isn't it enough to just be slow? (then its only run if you ask for it).

Separately I think weekly is useful and we can configure hudson to set this on sundays or something.

the only other change i noticed was just purely cosmetic :)

{noformat}
// please don't reorganize these into a wildcard!
-import static org.apache.lucene.util.LuceneTestCase.TEST_ITER;
-import static org.apache.lucene.util.LuceneTestCase.TEST_ITER_MIN;
-import static org.apache.lucene.util.LuceneTestCase.TEST_METHOD;
-import static org.apache.lucene.util.LuceneTestCase.TEST_SEED;
-import static org.apache.lucene.util.LuceneTestCase.TEST_NIGHTLY;
-import static org.apache.lucene.util.LuceneTestCase.VERBOSE;
+import static org.apache.lucene.util.LuceneTestCase.*;
{noformat}
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162396#comment-13162396 ] 

Grant Ingersoll commented on LUCENE-3615:
-----------------------------------------

Ran this last night:
{quote}
Testsuite: org.apache.lucene.index.Test2BTerms
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 12,475.641 sec
{quote}

So, roughly 3.5 hours.  Not at all unreasonable to run on a weekly basis.
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3615.patch, LUCENE-3615.patch, LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162024#comment-13162024 ] 

Robert Muir commented on LUCENE-3615:
-------------------------------------

{quote}
rather then having "@Weekly" or "@Slow" (or even "@Nightly") annotations, we should just use an "@Weight(Integer)" annotation indicating how "heavy" a test is
{quote}

But I'm not sure I agree with this. Most tests have completely different runtime based on what configurations they get. Sometimes, rarely, we apply totally crazy parameters that make them go "nuts". Because of this we amortize the cost of checking expensive corner cases (like termIndexInterval=1, horrible params that cause a lot of merging, etc) across the different tests. I think this is good, it really finds corner case bugs. So if we had this weight annotation, i have no clue what we would assign it to anything.

Because you take a test that does a lot of skipping/conjunctions, and if it gets memorycodec it might be take a terribly long time (since memorycodec doesn't support skipping), but otherwise it doesnt really care about termsindexinterval. On the other hand you take a test that is torturing the terms dictionary, and it doesnt care if you give it memorycodec or a shitty skipinterval, but you give it a crazy termsindexinterval and it spends a lot of time next'ing thru terms, etc.

Because of this, all of the tests behave in totally different ways that you cant really assign a weight to, e.g. take a look at the history of test times 
for this test:

https://builds.apache.org/view/G-L/view/Lucene/job/Lucene-Solr-tests-only-trunk/11631/testReport/org.apache.lucene.search/TestRegexpRandom2/history/
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Hoss Man (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162986#comment-13162986 ] 

Hoss Man commented on LUCENE-3615:
----------------------------------

bq. Because of this, all of the tests behave in totally different ways that you cant really assign a weight to, e.g. take a look at the history of test times for this test:

"Weight" may be the wrong term... i wasn't suggesting that it would be any sort of quantitative, comparable metric of how long the test would take -- my point was just that having a numeric annotation where bigger means "this test does more stuff" would allow people to run more or less tests as they see fit with simple configuration, regardless of whether their idea of a test to be run "Nightly" jives directly with the @Nightly annotation (maybe i want to only run @Nightly tests on weekends?)

As things stand, we have regular tests, and then we have @Nightly tests, and then we have @Slow tests ... hypothetically: if we add a new test later that's not nearly as bad as Test2BTerms, so we still want it to run as part of a "full test run" but is bad enough that we don't want to jenkins to do it was part of our  "@Nightly" run, we  have to consider some intermediate "@SortOfSlow" attribute ... hence my suggestion that instead of adding more special case annotations (and more build params for deciding when to exececute what), we just use an arbitrary  range of numbers and two simple "min" and "max" build params to pick the tests to run.

...anyway ... it was just an idea.




                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3615.patch, LUCENE-3615.patch, LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Uwe Schindler (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161941#comment-13161941 ] 

Uwe Schindler commented on LUCENE-3615:
---------------------------------------

+1, patch looks good!
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162188#comment-13162188 ] 

Grant Ingersoll commented on LUCENE-3615:
-----------------------------------------

bq. // please don't reorganize these into a wildcard!

Hmm, I thought I disabled that in IntelliJ.
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Grant Ingersoll (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated LUCENE-3615:
------------------------------------

    Attachment: LUCENE-3615.patch

Fixes as suggested by Robert.  I'll likely commit at some point later today or tomorrow unless Hoss wants to discuss the weight thing more, in which case I'm happy to hold off.
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch, LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Resolved] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Grant Ingersoll (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll resolved LUCENE-3615.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
    Lucene Fields:   (was: New)
    
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3615.patch, LUCENE-3615.patch, LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162186#comment-13162186 ] 

Grant Ingersoll commented on LUCENE-3615:
-----------------------------------------

I think in theory the weight thing sounds good, but in practice I think it would be hard to figure out the proper weights.
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-3615.patch
>
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3615) Make it easier to run Test2BTerms

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161771#comment-13161771 ] 

Robert Muir commented on LUCENE-3615:
-------------------------------------

we probably need to make sure the ram we give to junit in common-build.xml is parameterized too ( i think we hardcode 512MB )

at least so you could say ant test -Dtests.ram=8GB -Drunreallyslowtests or whatever
                
> Make it easier to run Test2BTerms
> ---------------------------------
>
>                 Key: LUCENE-3615
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3615
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>
> Currently, Test2BTerms has an @Ignore annotation which means that the only way to run it as a test is to edit the file.
> There are a couple of options to fix this:
> # Add a main() so it can be invoked via the command line outside of the test framework
> # Add some new annotations that mark it as slow or weekly or something like that and have the test target ignore @slow (or whatever) by default, but can also turn it on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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