I’m convinced something is awry with the test environment - it passes just fine
in other Jenkins runs. The response given back indicates that the classpath
doesn’t include the contrib writer being used (and thus it falls back to
wt=xml).
Uwe - any insight into what could be happening here? I don’t consider this a
release blocker, so let’s not sweat it since it seems to me this is entirely a
test environment issue.
Erik
> On Sep 11, 2015, at 8:05 PM, Erik Hatcher <[email protected]> wrote:
>
> Darn it. I’m trying to replicate this but `ant test
> -Dtestcase=VelocityResponseWriterTest -Dtests.method=testLocaleFeature
> -Dtests.seed=BD65E384F01BE907 -Dtests.multiplier=3 -Dtests.slow=true
> -Dtests.locale=ar_QA -Dtests.timezone=Asia/Vientiane -Dtests.asserts=true
> -Dtests.file.encoding=UTF-8` does not fail for me. The actual (“but was”)
> value shows an XML response which means that the writer was not available -
> there’s other tests that use the same writer so I’m puzzled.
>
> Digging further…
>
>
>
>
>
>> On Sep 11, 2015, at 7:53 PM, Policeman Jenkins Server <[email protected]>
>> wrote:
>>
>> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.3-Linux/140/
>> Java: 32bit/jdk1.8.0_60 -client -XX:+UseSerialGC
>>
>> 1 tests failed.
>> FAILED:
>> org.apache.solr.velocity.VelocityResponseWriterTest.testLocaleFeature
>>
>> Error Message:
>> expected:<[Colour]> but was:<[<?xml version="1.0" encoding="UTF-8"?>
>> <response> <lst name="responseHeader"><int name="status">0</int><int
>> name="QTime">0</int><lst name="params"><str name="q">*:*</str><str
>> name="v.template">t</str><str
>> name="v.template.t">$resource.get("color","resources","en_UK")</str><str
>> name="wt">velocityWithCustomTools</str></lst></lst><result name="response"
>> numFound="0" start="0"></result> </response> ]>
>>
>> Stack Trace:
>> org.junit.ComparisonFailure: expected:<[Colour]> but was:<[<?xml
>> version="1.0" encoding="UTF-8"?>
>> <response>
>> <lst name="responseHeader"><int name="status">0</int><int
>> name="QTime">0</int><lst name="params"><str name="q">*:*</str><str
>> name="v.template">t</str><str
>> name="v.template.t">$resource.get("color","resources","en_UK")</str><str
>> name="wt">velocityWithCustomTools</str></lst></lst><result name="response"
>> numFound="0" start="0"></result>
>> </response>
>> ]>
>> at
>> __randomizedtesting.SeedInfo.seed([BD65E384F01BE907:E91EA6BF2DF5C664]:0)
>> at org.junit.Assert.assertEquals(Assert.java:125)
>> at org.junit.Assert.assertEquals(Assert.java:147)
>> at
>> org.apache.solr.velocity.VelocityResponseWriterTest.testLocaleFeature(VelocityResponseWriterTest.java:130)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1627)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:836)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:872)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:886)
>> at
>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
>> at
>> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
>> at
>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>> at
>> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
>> at
>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
>> at
>> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
>> at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>> at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
>> at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:798)
>> at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:458)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:845)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:747)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:781)
>> at
>> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:792)
>> at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>> at
>> com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule$1.evaluate(SystemPropertiesRestoreRule.java:57)
>> at
>> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
>> at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>> at
>> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
>> at
>> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>> at
>> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
>> at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>> at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>> at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>> at
>> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:54)
>> at
>> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
>> at
>> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:65)
>> at
>> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
>> at
>> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
>> at
>> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:365)
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>>
>>
>> Build Log:
>> [...truncated 20556 lines...]
>> [junit4] Suite: org.apache.solr.velocity.VelocityResponseWriterTest
>> [junit4] 2> Creating dataDir:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/solr/build/contrib/solr-velocity/test/J0/temp/solr.velocity.VelocityResponseWriterTest_BD65E384F01BE907-001/init-core-data-001
>> [junit4] 2> log4j:WARN No appenders could be found for logger
>> (org.apache.solr.SolrTestCaseJ4).
>> [junit4] 2> log4j:WARN Please initialize the log4j system properly.
>> [junit4] 2> log4j:WARN See
>> http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
>> [junit4] 1>
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/solr/contrib/velocity/src/test-files/velocity/solr
>> [junit4] 2> NOTE: reproduce with: ant test
>> -Dtestcase=VelocityResponseWriterTest -Dtests.method=testLocaleFeature
>> -Dtests.seed=BD65E384F01BE907 -Dtests.multiplier=3 -Dtests.slow=true
>> -Dtests.locale=ar_QA -Dtests.timezone=Asia/Vientiane -Dtests.asserts=true
>> -Dtests.file.encoding=UTF-8
>> [junit4] FAILURE 0.05s | VelocityResponseWriterTest.testLocaleFeature <<<
>> [junit4] > Throwable #1: org.junit.ComparisonFailure:
>> expected:<[Colour]> but was:<[<?xml version="1.0" encoding="UTF-8"?>
>> [junit4] > <response>
>> [junit4] > <lst name="responseHeader"><int name="status">0</int><int
>> name="QTime">0</int><lst name="params"><str name="q">*:*</str><str
>> name="v.template">t</str><str
>> name="v.template.t">$resource.get("color","resources","en_UK")</str><str
>> name="wt">velocityWithCustomTools</str></lst></lst><result name="response"
>> numFound="0" start="0"></result>
>> [junit4] > </response>
>> [junit4] > ]>
>> [junit4] > at
>> __randomizedtesting.SeedInfo.seed([BD65E384F01BE907:E91EA6BF2DF5C664]:0)
>> [junit4] > at
>> org.apache.solr.velocity.VelocityResponseWriterTest.testLocaleFeature(VelocityResponseWriterTest.java:130)
>> [junit4] > at java.lang.Thread.run(Thread.java:745)
>> [junit4] 2> NOTE: leaving temporary files on disk at:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/solr/build/contrib/solr-velocity/test/J0/temp/solr.velocity.VelocityResponseWriterTest_BD65E384F01BE907-001
>> [junit4] 2> NOTE: test params are:
>> codec=DummyCompressingStoredFields(storedFieldsFormat=CompressingStoredFieldsFormat(compressionMode=DUMMY,
>> chunkSize=8, maxDocsPerChunk=3, blockSize=139),
>> termVectorsFormat=CompressingTermVectorsFormat(compressionMode=DUMMY,
>> chunkSize=8, blockSize=139)), sim=DefaultSimilarity, locale=ar_QA,
>> timezone=Asia/Vientiane
>> [junit4] 2> NOTE: Linux 3.19.0-26-generic i386/Oracle Corporation
>> 1.8.0_60 (32-bit)/cpus=12,threads=1,free=8077920,total=32845824
>> [junit4] 2> NOTE: All tests run in this JVM: [VelocityResponseWriterTest]
>> [junit4] Completed [1/1] in 2.20s, 12 tests, 1 failure <<< FAILURES!
>>
>> [...truncated 9 lines...]
>> BUILD FAILED
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/build.xml:726: The following
>> error occurred while executing this line:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/build.xml:670: The following
>> error occurred while executing this line:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/build.xml:59: The following
>> error occurred while executing this line:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/solr/build.xml:250: The
>> following error occurred while executing this line:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/solr/common-build.xml:467: The
>> following error occurred while executing this line:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/solr/common-build.xml:524: The
>> following error occurred while executing this line:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/lucene/common-build.xml:1449:
>> The following error occurred while executing this line:
>> /home/jenkins/workspace/Lucene-Solr-5.3-Linux/lucene/common-build.xml:1003:
>> There were test failures: 1 suite, 12 tests, 1 failure
>>
>> Total time: 57 minutes 29 seconds
>> Build step 'Invoke Ant' marked build as failure
>> Archiving artifacts
>> [WARNINGS] Skipping publisher since build result is FAILURE
>> Recording test results
>> Email was triggered for: Failure - Any
>> Sending email for trigger: Failure - Any
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]