You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Hoss Man (Jira)" <ji...@apache.org> on 2019/09/19 00:01:28 UTC
[jira] [Created] (SOLR-13777) contrib/ltr does not have test
logging configured correctly
Hoss Man created SOLR-13777:
-------------------------------
Summary: contrib/ltr does not have test logging configured correctly
Key: SOLR-13777
URL: https://issues.apache.org/jira/browse/SOLR-13777
Project: Solr
Issue Type: Test
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Hoss Man
i'm not 100% certain what magical properties/files are needed to get test logging setup consistently across all solr modules, but it doesn't seem to be in place for contrib/ltr.
Consider this trivial example...
{noformat}
hossman@slate:~/lucene/dev/solr/contrib/ltr [j11] [master] $ ant test -Dtestcase=TestManagedFeatureStore -Dtests.showSuccess=true
...
-test:
[junit4] <JUnit4> says 你好! Master seed: CEC8592E171B132F
[junit4] Executing 1 suite with 1 JVM.
[junit4]
[junit4] Started J0 PID(18975@slate).
[junit4] Suite: org.apache.solr.ltr.store.rest.TestManagedFeatureStore
[junit4] 2> ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
[junit4] OK 2.37s | TestManagedFeatureStore.testMissingFeatureReturnsNull
[junit4] OK 0.66s | TestManagedFeatureStore.testDefaultFeatureStoreName
[junit4] OK 0.48s | TestManagedFeatureStore.getInstanceTest
[junit4] OK 0.34s | TestManagedFeatureStore.testFeatureStoreAdd
[junit4] OK 0.35s | TestManagedFeatureStore.getInvalidInstanceTest
[junit4] OK 0.35s | TestManagedFeatureStore.testFeatureStoreGet
[junit4] Completed [1/1] in 5.71s, 6 tests
...
{noformat}
Notably this means that when tests in this module fail as part of jenkins builds, the only thing that gets logged is the final exception -- not any of the normal test scafolding (like what randomized SSL/clientAuth values were used) or logging leading up to that failure.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org