Re: mvn test failing
I just ran the tests on master, and get the following failures, this may be what Tarique means: TestFoldingMultitermExtrasQuery.beforeTests:36->SolrTestCaseJ4.initCore:552->SolrTestCaseJ4.initCore:678->SolrTestCaseJ4.createCore:688 » Runtime TestFoldingMultitermExtrasQuery.org.apache.solr.analysis.TestFoldingMultitermExtrasQuery » ThreadLeak TestICUCollationFieldOptions.beforeClass:33->SolrTestCaseJ4.initCore:552->SolrTestCaseJ4.initCore:678->SolrTestCaseJ4.createCore:688 » Runtime TestICUCollationFieldOptions.org.apache.solr.schema.TestICUCollationFieldOptions » ThreadLeak TestICUCollationFieldDocValues.beforeClass:39->SolrTestCaseJ4.initCore:552->SolrTestCaseJ4.initCore:678->SolrTestCaseJ4.createCore:688 » Runtime TestICUCollationFieldDocValues.org.apache.solr.schema.TestICUCollationFieldDocValues » ThreadLeak TestICUCollationField.beforeClass:42->SolrTestCaseJ4.initCore:552->SolrTestCaseJ4.initCore:678->SolrTestCaseJ4.createCore:688 » Runtime TestICUCollationField.org.apache.solr.schema.TestICUCollationField » ThreadLeak They work fine from ant strangely... Will try to dig a bit. On 31 October 2017 at 14:53, Daniel Collins wrote: > Another important question is which branch did you download? I assume > master as its the default, but remember that is a development branch, so it > is entirely possible to have some test issues on that. > > On 31 October 2017 at 13:44, Shawn Heisey wrote: > >> On 10/28/2017 11:48 PM, Tarique Anwer wrote: >> > I am new to Solr. >> > I am trying to build Solr from source code using Maven. >> > So I performed the following steps: >> > >> > 1. Download the source code zip from https://github.com/apache/luce >> ne-solr >> > 2. unzip & run from top level dir: >> > $ ant get-maven-poms >> > $ cd maven-build >> >> Maven is not the official build system. It is included as an alternate >> option, but doesn't get the same attention as the official system. >> >> The maven output gave you the location of more details about the tests >> that failed. Look there for more information. >> >> Or install/use ant, which is the official build system for Lucene and >> Solr, and gives more information about test failures as part of the >> build output. >> >> https://wiki.apache.org/solr/HowToContribute >> >> Sometimes Solr tests fail, even on released code. Such failures are >> investigated. Sometimes the test itself is faulty, sometimes it's the >> code that is being tested. Sometimes the test framework randomizes a >> combination of settings that doesn't actually work. >> >> Unless you need to have access to the source code for learning purposes, >> or because you need to engage in development related to Solr, download >> the binary release and don't worry about compiling it. >> >> Thanks, >> Shawn >> >> >
Re: mvn test failing
Another important question is which branch did you download? I assume master as its the default, but remember that is a development branch, so it is entirely possible to have some test issues on that. On 31 October 2017 at 13:44, Shawn Heisey wrote: > On 10/28/2017 11:48 PM, Tarique Anwer wrote: > > I am new to Solr. > > I am trying to build Solr from source code using Maven. > > So I performed the following steps: > > > > 1. Download the source code zip from https://github.com/apache/ > lucene-solr > > 2. unzip & run from top level dir: > > $ ant get-maven-poms > > $ cd maven-build > > Maven is not the official build system. It is included as an alternate > option, but doesn't get the same attention as the official system. > > The maven output gave you the location of more details about the tests > that failed. Look there for more information. > > Or install/use ant, which is the official build system for Lucene and > Solr, and gives more information about test failures as part of the > build output. > > https://wiki.apache.org/solr/HowToContribute > > Sometimes Solr tests fail, even on released code. Such failures are > investigated. Sometimes the test itself is faulty, sometimes it's the > code that is being tested. Sometimes the test framework randomizes a > combination of settings that doesn't actually work. > > Unless you need to have access to the source code for learning purposes, > or because you need to engage in development related to Solr, download > the binary release and don't worry about compiling it. > > Thanks, > Shawn > >
Re: mvn test failing
On 10/28/2017 11:48 PM, Tarique Anwer wrote: > I am new to Solr. > I am trying to build Solr from source code using Maven. > So I performed the following steps: > > 1. Download the source code zip from https://github.com/apache/lucene-solr > 2. unzip & run from top level dir: > $ ant get-maven-poms > $ cd maven-build Maven is not the official build system. It is included as an alternate option, but doesn't get the same attention as the official system. The maven output gave you the location of more details about the tests that failed. Look there for more information. Or install/use ant, which is the official build system for Lucene and Solr, and gives more information about test failures as part of the build output. https://wiki.apache.org/solr/HowToContribute Sometimes Solr tests fail, even on released code. Such failures are investigated. Sometimes the test itself is faulty, sometimes it's the code that is being tested. Sometimes the test framework randomizes a combination of settings that doesn't actually work. Unless you need to have access to the source code for learning purposes, or because you need to engage in development related to Solr, download the binary release and don't worry about compiling it. Thanks, Shawn
Re: mvn test failing
Hi Tariq, It’s difficult to tell what happened without seeing the logs from the failed test(s). (The commands you issued look fine.) -- Steve www.lucidworks.com > On Oct 29, 2017, at 1:48 AM, Tarique Anwer wrote: > > hi, > > I am new to Solr. > I am trying to build Solr from source code using Maven. > So I performed the following steps: > > 1. Download the source code zip from https://github.com/apache/lucene-solr > 2. unzip & run from top level dir: > $ ant get-maven-poms > $ cd maven-build > > 3. then build: > $ mvn -DskipTests install > > Which shows that build is successful. > > So I tried to run the tests afterwords: > $ mvn test > > But tests are failing: > > [INFO] Apache Solr Analysis Extras FAILURE [02:48 > min] > [INFO] Apache Solr Core tests . SKIPPED > [INFO] Apache Solr Core aggregator POM SKIPPED > [INFO] Apache Solr Solrj tests SKIPPED > [INFO] Apache Solr Solrj aggregator POM ... SKIPPED > [INFO] Apache Solr Analytics Package .. SKIPPED > [INFO] Apache Solr Clustering . SKIPPED > [INFO] Apache Solr DataImportHandler .. SKIPPED > [INFO] Apache Solr DataImportHandler Extras ... SKIPPED > [INFO] Apache Solr Content Extraction Library . SKIPPED > [INFO] Apache Solr Language Identifier SKIPPED > [INFO] Apache Solr Learning to Rank Package ... SKIPPED > [INFO] Apache Solr UIMA integration ... SKIPPED > [INFO] Apache Solr Velocity ... SKIPPED > [INFO] Apache Solr Contrib aggregator POM . SKIPPED > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 17:45 min > [INFO] Finished at: 2017-10-29T05:46:43Z > [INFO] Final Memory: 194M/1999M > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on > project solr-analysis-extras: There are test failures. > [ERROR] > [ERROR] Please refer to > /home/ec2-user/tariq/lucene-solr-master/maven-build/solr/contrib/analysis-extras/target/surefire-reports > for the individual test results. > [ERROR] -> [Help 1] > > > > Did I do something wrong? Or i missed some steps before build. > Any help is highly appreciated. > > > With Regards, > > Tariq