Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

First pass #76

Open
wants to merge 21 commits into
from

Conversation

Projects
None yet
3 participants

sbisbee commented Sep 7, 2010

Hey,

This is my first pass. I did a basic run through of tests on Debian and Ubuntu. Let me know what you think and I'll modify as needed.

Cheers,

Sam

Owner

rnewson commented Sep 14, 2010

CouchCamp has kept my attention diverted. Promise to look at this soon!

sbisbee commented Sep 22, 2010

I need to run some more tests on this latest batch of commits before you pull. Thought github would give me the choice of adding commits to this pull request - sorry.

sbisbee commented Dec 3, 2010

This was taken care of a month or two ago, wasn't it? Shall we close?

Owner

rnewson commented Dec 3, 2010

It's integrated on a branch but it's not in master yet, iirc. There are a couple of outstanding issues with it, notably that paths to things inside the scripts are hardcoded, yet the zip can be unpacked anywhere. I meant to find a way to fix that but haven't as yet.

I'm trying to make your work ready for integration into rnewsons master branch. I'm getting the following errors while trying to build your master branch (0a413b9).

mvn:
Tests run: 53, Failures: 0, Errors: 3, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /home/tim/couchdb-lucene/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58 seconds
[INFO] Finished at: Thu Dec 22 13:18:42 CET 2011
[INFO] Final Memory: 29M/71M
[INFO] ------------------------------------------------------------------------


T E S T S

Running com.github.rnewson.couchdb.lucene.CustomQueryParserTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.353 sec
Running com.github.rnewson.couchdb.lucene.couchdb.ViewTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.679 sec
Running com.github.rnewson.couchdb.lucene.TikaTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.95 sec
Running com.github.rnewson.couchdb.lucene.JsonTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.021 sec <<< FAILURE!
Running com.github.rnewson.couchdb.lucene.util.UtilsTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.017 sec <<< FAILURE!
Running com.github.rnewson.couchdb.lucene.LuceneTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.867 sec
Running com.github.rnewson.couchdb.lucene.ConfigTest
2011-12-22 13:41:09,961 INFO [Config] Index output goes to: /home/tim/couchdb-lucene/target/indexes
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.327 sec
Running com.github.rnewson.couchdb.lucene.util.AnalyzersTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.153 sec
Running com.github.rnewson.couchdb.lucene.DocumentConverterTest
2011-12-22 13:41:10,810 WARN [DocumentConverter] com.github.rnewson.couchdb.lucene.couchdb.CouchDocument@594ab51b caused exception during conversion.
org.mozilla.javascript.JavaScriptException: [object Object]
at org.mozilla.javascript.gen.c9._c0(unnamed script:0)
at org.mozilla.javascript.gen.c9.call(unnamed script)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
at org.mozilla.javascript.gen.c9.call(unnamed script)
at com.github.rnewson.couchdb.lucene.DocumentConverter.convert(DocumentConverter.java:82)
at com.github.rnewson.couchdb.lucene.DocumentConverterTest.testRuntimeException(DocumentConverterTest.java:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.679 sec
Running com.github.rnewson.couchdb.lucene.PathPartsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running com.github.rnewson.couchdb.lucene.couchdb.CouchDocumentTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
Running com.github.rnewson.couchdb.lucene.couchdb.DesignDocumentTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec

Results :

Tests in error:
testEscapedChars(com.github.rnewson.couchdb.lucene.JsonTest)
testSplitOnCommas(com.github.rnewson.couchdb.lucene.util.UtilsTest)
testSplitOnCommasWithEmbeddedCommas(com.github.rnewson.couchdb.lucene.util.UtilsTest)

Tests run: 53, Failures: 0, Errors: 3, Skipped: 0

I have added the error files in timkuijsten/couchdb-lucene@273d39a maybe it has something to do with the fact that Sun Java is not available anymore on Ubuntu Server. Though rnewson's master builds perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment