-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Followup to Solr integration -- installation steps #832
Comments
I did not find the duplicate |
ah, i already removed it and tested it, thanks -- maybe it resulted during On Thu, Sep 22, 2016 at 3:37 PM, Sebastian Silva notifications@github.com
|
In development mode, I'm getting:
I think this could be due to having started a second Solr instance for development, on top of the one I'm running for testing. This could be a common gotcha which we could build into the rake tasks... |
Yes -- that seems to have been the error -- and I had to shut both solr instances down and start up the right one before it worked. |
Ok seeing the discussion here the icedtea-7-plugin isn't required. But I am getting the same error as Jeff mentioned in the previous comment. |
Ah thanks Jeff! Sorry I didn't follow this before. I was having the same problem. Tests are running smoothly now. I think we should add this to the readme. |
@jywarren Should I remove the icedtea-7-plugin from the Dockerfile and Readme and update the readme with the test case as well? |
Yes please! |
Removed icedtea-7-plugin and updated the readme in #846 |
Thanks!!!! On Tue, Sep 27, 2016 at 10:08 AM, Ananya Maiti notifications@github.com
|
@jywarren A lot of new contributors have come up in recently and they are facing problems in working up with the cloud9 installation. I can work on the cloud9 installation issues and building the rake tasks if you insist Jeff! |
@jywarren I was thinking if could somehow start and stop the solr server along with the rails server it would be great. Basically what we have to do is find a way to run a rake task while starting a stopping the rails server. |
@jywarren I am a bit stuck on this. Is there any way to find whether the solr server is already running? We have to put a condition to start the solr server in the test environment only if it is not already running. Otherwise rake is aborted due to the already running solr server. Similarly we need to stop the solr server in development only if it is running. |
Hmm, i'm not sure -- doing some searches for "detect solr running" -- but perhaps while you work on this, I could -- in parallel -- see if it's possible to skip Solr dependent tests and have a |
Unit tests may be omitted: http://stackoverflow.com/questions/2927405/how-to-skip-certain-tests-with-testunit#2940755 Looking for same with functional tests. |
This is saying that you could just ping the solr service via wget, for example... This is saying that you can check |
Alternatively, we could actually move the Solr tests in
|
Notes:
|
Whoa, i think setting |
Got some more help here: http://flavio.castelli.name/2010/05/28/rails_execute_single_test/ Opened #861 which moves solr-dependent tests into a managed |
@icarito - is it possible to cache the java install, as that's failing in TravisCI pretty often. Although perhaps we should add priority to the plan to separate the Solr components into a separate docker instance, or use a pre-loaded one or something? I'm not familiar with how that works but could add it to this to-do list. |
Solr is now a requirement to run tests, which may increase barriers for newcomers. I'd like to take some steps to make this process easier:
apt-get install openjdk-7-jre openjdk-7-jdk icedtea-7-plugin
rake sunspot:solr:start
intorake test
task until we separate it outrake test:solr
taskThe text was updated successfully, but these errors were encountered: