unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Testing Unicorn on Rubinius
@ 2012-11-12 23:37 mike
  2012-11-13  0:18 ` Eric Wong
  0 siblings, 1 reply; 8+ messages in thread
From: mike @ 2012-11-12 23:37 UTC (permalink / raw)
  To: mongrel-unicorn

*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
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing Unicorn on Rubinius
  2012-11-12 23:37 mike
@ 2012-11-13  0:18 ` Eric Wong
  0 siblings, 0 replies; 8+ messages in thread
From: Eric Wong @ 2012-11-13  0:18 UTC (permalink / raw)
  To: unicorn list

mike <michael.p.thompson@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@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?
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Testing Unicorn on Rubinius
@ 2012-11-13  0:34 mike
  2012-11-13  0:56 ` Eric Wong
  2012-11-13  1:05 ` Eric Wong
  0 siblings, 2 replies; 8+ messages in thread
From: mike @ 2012-11-13  0:34 UTC (permalink / raw)
  To: mongrel-unicorn

Hey Eric,

I do have the isolate gem installed. In a number of gemsets as it
were. Here is a gem list:

mike@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@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@global/doc/isolate-3.2.2
/home/mike/.rvm/gems/rbx-2.0.testing@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@rubinius_testing/doc/isolate-3.2.2
/home/mike/.rvm/gems/rbx-2.0.testing@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
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing Unicorn on Rubinius
  2012-11-13  0:34 Testing Unicorn on Rubinius mike
@ 2012-11-13  0:56 ` Eric Wong
  2012-11-13  1:05 ` Eric Wong
  1 sibling, 0 replies; 8+ messages in thread
From: Eric Wong @ 2012-11-13  0:56 UTC (permalink / raw)
  To: unicorn list

mike <michael.p.thompson@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@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@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@global/doc/isolate-3.2.2
> /home/mike/.rvm/gems/rbx-2.0.testing@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@rubinius_testing/doc/isolate-3.2.2
> /home/mike/.rvm/gems/rbx-2.0.testing@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 ?
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing Unicorn on Rubinius
  2012-11-13  0:34 Testing Unicorn on Rubinius mike
  2012-11-13  0:56 ` Eric Wong
@ 2012-11-13  1:05 ` Eric Wong
  2012-11-13 19:43   ` mike
  2012-11-13 19:44   ` mike
  1 sibling, 2 replies; 8+ messages in thread
From: Eric Wong @ 2012-11-13  1:05 UTC (permalink / raw)
  To: unicorn list

mike <michael.p.thompson@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@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing Unicorn on Rubinius
  2012-11-13  1:05 ` Eric Wong
@ 2012-11-13 19:43   ` mike
  2012-11-13 19:44   ` mike
  1 sibling, 0 replies; 8+ messages in thread
From: mike @ 2012-11-13 19:43 UTC (permalink / raw)
  To: unicorn list, es

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@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@rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-unicorn
> Do not quote signatures (like this one) or top post when replying
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing Unicorn on Rubinius
  2012-11-13  1:05 ` Eric Wong
  2012-11-13 19:43   ` mike
@ 2012-11-13 19:44   ` mike
  2012-11-13 20:27     ` Eric Wong
  1 sibling, 1 reply; 8+ messages in thread
From: mike @ 2012-11-13 19:44 UTC (permalink / raw)
  To: unicorn list

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@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@rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-unicorn
> Do not quote signatures (like this one) or top post when replying
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Testing Unicorn on Rubinius
  2012-11-13 19:44   ` mike
@ 2012-11-13 20:27     ` Eric Wong
  0 siblings, 0 replies; 8+ messages in thread
From: Eric Wong @ 2012-11-13 20:27 UTC (permalink / raw)
  To: unicorn list

mike <michael.p.thompson@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.
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-13 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-13  0:34 Testing Unicorn on Rubinius mike
2012-11-13  0:56 ` Eric Wong
2012-11-13  1:05 ` Eric Wong
2012-11-13 19:43   ` mike
2012-11-13 19:44   ` mike
2012-11-13 20:27     ` Eric Wong
  -- strict thread matches above, loose matches on Subject: below --
2012-11-12 23:37 mike
2012-11-13  0:18 ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).