You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by us...@apache.org on 2021/12/08 18:46:39 UTC

[solr] branch main updated (aa8c976 -> 7f7a6f6)

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git.


    from aa8c976  SOLR-15838: Update Solr to use released Lucene 9.0.0 (#449)
     new 28b0c2a  LUCENE-9660: add tests.neverUpToDate=true option which, by default, makes test tasks always execute. (#410)
     new 7f7a6f6  LUCENE-9660: correct help/tests.txt.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 gradle/testing/defaults-tests.gradle |  8 ++++++++
 help/tests.txt                       | 12 ++++++------
 2 files changed, 14 insertions(+), 6 deletions(-)

[solr] 01/02: LUCENE-9660: add tests.neverUpToDate=true option which, by default, makes test tasks always execute. (#410)

Posted by us...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 28b0c2ad04c6a09101c8a67ca9e876419a608ed7
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Mon Oct 25 14:51:11 2021 +0200

    LUCENE-9660: add tests.neverUpToDate=true option which, by default, makes test tasks always execute. (#410)
---
 gradle/testing/defaults-tests.gradle | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gradle/testing/defaults-tests.gradle b/gradle/testing/defaults-tests.gradle
index 6178c79..f2da557 100644
--- a/gradle/testing/defaults-tests.gradle
+++ b/gradle/testing/defaults-tests.gradle
@@ -49,6 +49,9 @@ allprojects {
           [propName: 'tests.jvmargs',
            value: { -> propertyOrEnvOrDefault("tests.jvmargs", "TEST_JVM_ARGS", "-XX:TieredStopAtLevel=1") },
            description: "Arguments passed to each forked JVM."],
+          // Other settings.
+          [propName: 'tests.neverUpToDate', value: true,
+           description: "Make test tasks always fail the up-to-date checks (rerun) even if the inputs have not changed."],
       ]
 
       // Resolves test option's value.
@@ -90,6 +93,11 @@ allprojects {
         testOutputsDir = file("${reports.junitXml.destination}/outputs")
       }
 
+      // LUCENE-9660: Make it possible to always rerun tests, even if they're incrementally up-to-date.
+      if (resolvedTestOption("tests.neverUpToDate").toBoolean()) {
+        outputs.upToDateWhen { false }
+      }
+
       maxParallelForks = resolvedTestOption("tests.jvms") as Integer
       if (verboseMode && maxParallelForks != 1) {
         logger.lifecycle("tests.jvm forced to 1 in verbose mode.")

[solr] 02/02: LUCENE-9660: correct help/tests.txt.

Posted by us...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 7f7a6f68a45c26b080f443034b528db73312db51
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Tue Oct 26 08:45:58 2021 +0200

    LUCENE-9660: correct help/tests.txt.
    
    # Conflicts:
    #	help/tests.txt
---
 help/tests.txt | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/help/tests.txt b/help/tests.txt
index 2cbc847..7022688 100644
--- a/help/tests.txt
+++ b/help/tests.txt
@@ -90,14 +90,14 @@ within the same JVM; it also works in IDEs):
 gradlew -p solr/core test --tests TestDemo -Ptests.iters=5
 
 Tests tasks will be (by default) re-executed on each invocation because
-we pick a random global tests.seed. If you run the same tests twice
-with the same seed, the test task will be skipped (as it is up-to-date
-with respect to source code):
+we pick a random global tests.seed and because we want them to (force
+the test task to run). If you want to make the 'tests' task obey up-to-date
+gradle rules, fix the seed and turn off up to date trigger:
 
-gradlew -p solr/core test -Ptests.seed=deadbeef
+gradlew -p solr/core test -Ptests.seed=deadbeef -Ptests.neverUpToDate=false
 
-to force re-execution of tests, even for the same master seed, apply
-cleanTest task:
+These properties can be set in your local gradle.properties. To force re-execution 
+of tests, even for the same master seed, apply cleanTest task:
 
 gradlew -p solr/core cleanTest test -Ptests.seed=deadbeef