*Re-sendingagain from mutt in Plain text to ensure I am not auto-rejected* Hello, My name is Mike and I helping Brain (@brixen) with Rubinius testing (or at least trying very valiantly). At them moment I am having trouble getting my environment set up in such a way, as to run the: make -j4 test command. I am having issues resolving my environment and load paths against what the unicorn project is looking for. I was curious if there were any examples of environments or setups for testing Unicorn. I have read the README files located in the project, and attempted setting my "RUBYLIB" variable in the local.mk . If someone could get me started/pointed in the right direction, I would really like to help out with Rubinius, and maybe even Unicorn in the future. Here is a gist of my output: https://gist.github.com/4062317 System is a Debian Wheezy X86_64 uname -a string: Linux sm-mike-thinkpad 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64 GNU/Linux Thank you very much for any and all efforts to get me going, -Mike Thompson
mike <michael.p.thompson at gmail.com> wrote:> (or at least trying very valiantly). At them moment I am having > trouble getting my environment set up in such a way, as to run the: > > make -j4 test > > command. I am having issues resolving my environment and load paths > against what the unicorn project is looking for. I was curious if > there were any examples of environments or setups for testing Unicorn. > I have read the README files located in the project, and attempted > setting my "RUBYLIB" variable in the local.mk . If someone could get > me started/pointed in the right direction, I would really like to help > out with Rubinius, and maybe even Unicorn in the future. Here is a > gist of my output:Everything should work if the "isolate" RubyGem is installed. I admit I haven''t tested under Rubinius in a while, but I have made efforts in the past to ensure Rubinius worked. (nobody seemed interested and it took too much space/time to build on my machine)> https://gist.github.com/4062317> mike at sm-mike-thinkpad:~/workspace/rubinius_testing/unicorn-4.4.0$ RUBYLIB=/home/mike/.rvm/gems/rbx-2.0.testing/ make -j4 test > * test/unit/test_configurator.rb > * test/unit/test_droplet.rb > * test/unit/test_http_parser_ng.rb > * test/unit/test_http_parser.rb > : An exception occurred running test/unit/test_droplet.rb > : no such file to load -- rack (LoadError)That should''ve picked up and run Isolate for you. Can you ensure isolate is installed, first?
Hey Eric, I do have the isolate gem installed. In a number of gemsets as it were. Here is a gem list: mike at sm-mike-thinkpad:~/workspace/rubinius_testing/unicorn-4.4.0$ gem list *** LOCAL GEMS *** bundler (1.2.1) isolate (3.2.2) rack (1.4.1) rake (0.9.2.2) rubygems-bundler (1.1.0) rvm (1.11.3.5) Here is a "find" for isolate running against my .rvm directory: mike at sm-mike-thinkpad:~/workspace/rubinius_testing/unicorn-4.4.0$ find /home/mike/.rvm/ -name isolate-3.2.2 /home/mike/.rvm/gems/rbx-2.0.testing at global/doc/isolate-3.2.2 /home/mike/.rvm/gems/rbx-2.0.testing at global/gems/isolate-3.2.2 /home/mike/.rvm/gems/rbx-2.0.testing/doc/isolate-3.2.2 /home/mike/.rvm/gems/rbx-2.0.testing/gems/isolate-3.2.2 /home/mike/.rvm/gems/rbx-2.0.testing at rubinius_testing/doc/isolate-3.2.2 /home/mike/.rvm/gems/rbx-2.0.testing at rubinius_testing/gems/isolate-3.2.2 and lastly, here is the setting I have for the "RUBYLIB" variable in my local.mk: RUBYLIB=/home/mike/.rvm/gems/rbx-2.0.testing/ (FYI: this is injected on line 8 of your sample local.mk that ships with the project) If I run irb, I cannot require ''isolate'' without requiring ''rubygems'' even with it in all these places. I assume there is some kind of path / inclusion issue I am facing here and I don''t quite know how to go about getting around it. Perhaps I have RUBYLIB set wrong, or I need to try to approach this completely differently and not from rvm at all. Thank you so much for all your efforts in trying to help me get going on this, they are very appreciated. Also please let me know if there is a log output, setting/configuration file or something else that having access to/knowledge of would help. Thanks again, -Mike Thompson
mike <michael.p.thompson at gmail.com> wrote:> Hey Eric, > > I do have the isolate gem installed. In a number of gemsets as it > were. Here is a gem list: > > mike at sm-mike-thinkpad:~/workspace/rubinius_testing/unicorn-4.4.0$ gem list > > *** LOCAL GEMS *** > > bundler (1.2.1) > isolate (3.2.2) > rack (1.4.1) > rake (0.9.2.2) > rubygems-bundler (1.1.0) > rvm (1.11.3.5) > > Here is a "find" for isolate running against my .rvm directory: > > mike at sm-mike-thinkpad:~/workspace/rubinius_testing/unicorn-4.4.0$ find /home/mike/.rvm/ -name isolate-3.2.2 > /home/mike/.rvm/gems/rbx-2.0.testing at global/doc/isolate-3.2.2 > /home/mike/.rvm/gems/rbx-2.0.testing at global/gems/isolate-3.2.2 > /home/mike/.rvm/gems/rbx-2.0.testing/doc/isolate-3.2.2 > /home/mike/.rvm/gems/rbx-2.0.testing/gems/isolate-3.2.2 > /home/mike/.rvm/gems/rbx-2.0.testing at rubinius_testing/doc/isolate-3.2.2 > /home/mike/.rvm/gems/rbx-2.0.testing at rubinius_testing/gems/isolate-3.2.2 > > and lastly, here is the setting I have for the "RUBYLIB" variable in my local.mk: > > RUBYLIB=/home/mike/.rvm/gems/rbx-2.0.testing/ > > (FYI: this is injected on line 8 of your sample local.mk that ships with the project)I don''t think you need to mess with RUBYLIB at all. I''m not sure local.mk is necessary if you have rvm, either..., or if you''re only testing with a single installation of Ruby.> If I run irb, I cannot require ''isolate'' without requiring ''rubygems'' even with it in all these places. I assume there is some kind of path / inclusion issue I am facing here and I don''t quite know how to go about getting around it. Perhaps I have RUBYLIB set wrong, or I need to try to approach this completely differently and not from rvm at all.I''ve never used rvm for development, either, I just set PATH appropriately. Maybe rvm is doing something funky with the shebang in script/isolate_for_tests ?
mike <michael.p.thompson at gmail.com> wrote:> If I run irb, I cannot require ''isolate'' without requiring ''rubygems'' > even with it in all these places.Maybe using RUBYOPT=-rubygems will help (assuming Rubinius behaves like MRI 1.8 wrt rubygems).
I was able to (I think) get the test suite running using bundler. It fails right now with a few different error but I am pushing through. Thanks a ton for your time and responding so quickly. Also for pointing out the RUBYOPT thing. -Mike Thompson On Tue, Nov 13, 2012 at 01:05:20AM +0000, Eric Wong wrote:> mike <michael.p.thompson at gmail.com> wrote: > > If I run irb, I cannot require ''isolate'' without requiring ''rubygems'' > > even with it in all these places. > > Maybe using RUBYOPT=-rubygems will help (assuming Rubinius behaves > like MRI 1.8 wrt rubygems). > _______________________________________________ > Unicorn mailing list - mongrel-unicorn at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-unicorn > Do not quote signatures (like this one) or top post when replying
I was able to (I think) get the test suite running using bundler. It fails right now with a few different error but I am pushing through. Thanks a ton for your time and responding so quickly. Also for pointing out the RUBYOPT thing. -Mike Thompson On Tue, Nov 13, 2012 at 01:05:20AM +0000, Eric Wong wrote:> mike <michael.p.thompson at gmail.com> wrote: > > If I run irb, I cannot require ''isolate'' without requiring ''rubygems'' > > even with it in all these places. > > Maybe using RUBYOPT=-rubygems will help (assuming Rubinius behaves > like MRI 1.8 wrt rubygems). > _______________________________________________ > Unicorn mailing list - mongrel-unicorn at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-unicorn > Do not quote signatures (like this one) or top post when replying
mike <michael.p.thompson at gmail.com> wrote:> I was able to (I think) get the test suite running using bundler. It > fails right now with a few different error but I am pushing through. > Thanks a ton for your time and responding so quickly. Also for > pointing out the RUBYOPT thing.Cool, in case you do hit errors, I just pushed out a change to master on git://bogomips.org/unicorn.git which gets rid of the horrible assert_nothing_raised {} calls to make debugging easier.