Apache Lucene open-source search software
LUCENE-4879: Filter stack traces on console output.
Dawid Weiss914b26c36b14
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 2d462b3ace2..d2329950a4e 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -169,6 +169,12 @@ Documentationto use the new SortedSetDocValues backed facet implementation.(Shai Erera, Mike McCandless)+Build++* LUCENE-4879: Upgrade randomized testing to version 2.0.9:+ Filter stack traces on console output. (Dawid Weiss, Robert Muir)++======================= Lucene 4.2.1 =======================Bug Fixesdiff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 659554a0713..56d844d4a5d 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -106,6 +106,7 @@<property name="tests.asserts.gracious" value="false"/><property name="tests.verbose" value="false"/><property name="tests.infostream" value="${tests.verbose}"/>+ <property name="tests.filterstacks" value="true"/><condition property="tests.heapsize" value="768M"><isset property="run.clover"/>@@ -985,8 +986,25 @@maxClassNameColumns="${tests.maxClassNameColumns}"timestamps="${tests.timestamps}"- showNumFailures="${tests.showNumFailures}"- />+ showNumFailures="${tests.showNumFailures}">++ <!-- Filter stack traces. The default set of filters is similar to Ant's (reflection, assertions, junit's own stuff). -->+ <junit4:filtertrace defaults="true" enabled="${tests.filterstacks}">+ <!-- Lucene-specific stack frames (test rules mostly). -->+ <containsstring contains="at com.carrotsearch.randomizedtesting.RandomizedRunner" />+ <containsstring contains="at org.apache.lucene.util.AbstractBeforeAfterRule" />+ <containsstring contains="at com.carrotsearch.randomizedtesting.rules." />+ <containsstring contains="at org.apache.lucene.util.TestRule" />+ <containsstring contains="at com.carrotsearch.randomizedtesting.rules.StatementAdapter" />+ <containsstring contains="at com.carrotsearch.randomizedtesting.ThreadLeakControl" />++ <!-- Add custom filters if you like. Lines that match these will be removed. -->+ <!--+ <containsstring contains=".." />+ <containsregex pattern="^(\s+at )(org\.junit\.)" />+ -->+ </junit4:filtertrace>+ </junit4:report-text><!-- Emits full status for all tests, their relative order on slaves. --><junit4:report-text@@ -1183,6 +1201,9 @@ ant -Dtests.file.encoding=XXX ...# the test passes.ant -Dtests.leaveTemporary=true+# Do *not* filter stack traces emitted to the console.+ant -Dtests.filterstacks=false+# Output test files and reports.${tests-output}/tests-report.txt - full ASCII tests report${tests-output}/tests-failures.txt - failures only (if any)diff --git a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.javaindex 1c1d6ecba29..ce9af5cf9fc 100644--- a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java+++ b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java@@ -593,7 +593,7 @@ public class TestFSTs extends LuceneTestCase {// TODO: can FST be used to index all internal substrings,// mapping to term?- // java -cp ../build/codecs/classes/java:../test-framework/lib/randomizedtesting-runner-2.0.8.jar:../build/core/classes/test:../build/core/classes/test-framework:../build/core/classes/java:../build/test-framework/classes/java:../test-framework/lib/junit-4.10.jar org.apache.lucene.util.fst.TestFSTs /xold/tmp/allTerms3.txt out+ // java -cp ../build/codecs/classes/java:../test-framework/lib/randomizedtesting-runner-2.0.9.jar:../build/core/classes/test:../build/core/classes/test-framework:../build/core/classes/java:../build/test-framework/classes/java:../test-framework/lib/junit-4.10.jar org.apache.lucene.util.fst.TestFSTs /xold/tmp/allTerms3.txt outpublic static void main(String[] args) throws IOException {int prune = 0;int limit = Integer.MAX_VALUE;diff --git a/lucene/licenses/junit4-ant-2.0.8.jar.sha1 b/lucene/licenses/junit4-ant-2.0.8.jar.sha1deleted file mode 100644index df83cbe7c81..00000000000--- a/lucene/licenses/junit4-ant-2.0.8.jar.sha1+++ /dev/null@@ -1 +0,0 @@-60a3de36a65afc240162cf9fa0cab5a0209f5467diff --git a/lucene/licenses/junit4-ant-2.0.9.jar.sha1 b/lucene/licenses/junit4-ant-2.0.9.jar.sha1new file mode 100644index 00000000000..8d505180796--- /dev/null+++ b/lucene/licenses/junit4-ant-2.0.9.jar.sha1@@ -0,0 +1 @@+bba707f4b0933f782dd456c262dc36f4bac01f45diff --git a/lucene/licenses/randomizedtesting-runner-2.0.8.jar.sha1 b/lucene/licenses/randomizedtesting-runner-2.0.8.jar.sha1deleted file mode 100644index e7d300ed2d0..00000000000--- a/lucene/licenses/randomizedtesting-runner-2.0.8.jar.sha1+++ /dev/null@@ -1 +0,0 @@-5279738eb9e4e820aacbe8f7cb1120159592496bdiff --git a/lucene/licenses/randomizedtesting-runner-2.0.9.jar.sha1 b/lucene/licenses/randomizedtesting-runner-2.0.9.jar.sha1new file mode 100644index 00000000000..22d5067e062--- /dev/null+++ b/lucene/licenses/randomizedtesting-runner-2.0.9.jar.sha1@@ -0,0 +1 @@+4b8e918d278f56a18a6044660215290995889bfadiff --git a/lucene/test-framework/ivy.xml b/lucene/test-framework/ivy.xmlindex 2a931793fc9..e75db2307c3 100644--- a/lucene/test-framework/ivy.xml+++ b/lucene/test-framework/ivy.xml@@ -32,8 +32,8 @@<dependency org="org.apache.ant" name="ant" rev="1.8.2" transitive="false" /><dependency org="junit" name="junit" rev="4.10" transitive="false" conf="default->*;junit4-stdalone->*" />- <dependency org="com.carrotsearch.randomizedtesting" name="junit4-ant" rev="2.0.8" transitive="false" conf="default->*;junit4-stdalone->*" />- <dependency org="com.carrotsearch.randomizedtesting" name="randomizedtesting-runner" rev="2.0.8" transitive="false" conf="default->*;junit4-stdalone->*" />+ <dependency org="com.carrotsearch.randomizedtesting" name="junit4-ant" rev="2.0.9" transitive="false" conf="default->*;junit4-stdalone->*" />+ <dependency org="com.carrotsearch.randomizedtesting" name="randomizedtesting-runner" rev="2.0.9" transitive="false" conf="default->*;junit4-stdalone->*" /><exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/></dependencies>