Heyo, I'm wondering if there is any additional doco and/or tricks to unit testing solr than this wiki page? http://wiki.apache.org/solr/TestingSolr
Some details about my troubles are below if anyone cares to read, but I'm not so much looking for specific responses to why individual tests are failing. I'm more trying to work out whether I'm on the right track or missing some key information... like do I need to turn on a ZK server for integration testing? Or do I need to accept failed unit tests as a baseline before applying our patch? I don't typically like that, but this is an enormous test suite and I'd be happy just to get a pass up to the same level that 4.7.2 had prior to release. Ta, Greg Details ====== I downloaded the tagged 4.7.2 release Yesterday to apply a patch our team wants to test, but even before touching the codebase at all I cannot get the unit tests to pass. I'm struggling to even get consistent results. The most useful two end points I reach are: [junit4] Tests with failures: [junit4] - org.apache.solr.cloud.CustomCollectionTest.testDistribSearch [junit4] - org.apache.solr.cloud.DistribCursorPagingTest.testDistribSearch [junit4] - org.apache.solr.cloud.DistribCursorPagingTest (suite) [junit4] ... [junit4] Execution time total: 2 hours 6 minutes 50 seconds [junit4] Tests summary: 365 suites, 1570 tests, 1 suite-level error, 2 errors, 187 ignored (12 assumptions) And another one (don't have the terminal output on hand unfortunately) in the cloudera morphline suite. It is the same error as this though and fails after around an hour: http://mail-archives.apache.org/mod_mbox/flume-dev/201310.mbox/%3ccac6yyrj2cv89hntdeel7t0qlq8zjbwjynbtcveucxlzdmyv...@mail.gmail.com%3E I've tried running those tests in isolation via IntelliJ and they all report as passing... the logs show exceptions about ZK session expiry for some (not all) but I assume those are trapped expected exceptions since JUnit is passing them? Given the response in the message I linked just above re: windows support I tried shifting the build up to a RHEL6 server this morning but I've tried two runs now and both failed with this odd error: [junit4] Tests with failures: [junit4] - org.apache.solr.hadoop.MorphlineMapperTest (suite) [junit4] ... [junit4] Execution time total: 42 seconds [junit4] Tests summary: 7 suites, 35 tests, 2 suite-level errors, 5 ignored I only say odd because they run for half an hour and then report 42 seconds. Thanks again if you've read all this.
