Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351475 - dev-ruby/stomp (new package)
Summary: dev-ruby/stomp (new package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://rubyforge.org/projects/stomp/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 20:02 UTC by Lance Albertson (RETIRED)
Modified: 2011-02-28 07:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stomp-1.1.6.ebuild (stomp-1.1.6.ebuild,414 bytes, text/plain)
2011-01-12 20:04 UTC, Lance Albertson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lance Albertson (RETIRED) gentoo-dev 2011-01-12 20:02:50 UTC
Ebuild for stomp ruby 1.1.6 package. This will be dep for mcollective [1] which I plan to add to portage once this package has been added by the Ruby herd.

Thanks!

[1] https://github.com/ramereth/ramereth-overlay/tree/master/app-admin/mcollective
Comment 1 Lance Albertson (RETIRED) gentoo-dev 2011-01-12 20:04:21 UTC
Created attachment 259648 [details]
stomp-1.1.6.ebuild
Comment 2 Hans de Graaff gentoo-dev Security 2011-01-13 07:11:38 UTC
It fails tests like so (+ many more). I guess this needs a sandboxed live stomp server?

  1) Error:
test_ack_api_works(TestClient):
Errno::ECONNREFUSED: Connection refused - connect(2)
    ./test/../lib/stomp/connection.rb:426:in `initialize'
    ./test/../lib/stomp/connection.rb:426:in `open'
    ./test/../lib/stomp/connection.rb:426:in `open_tcp_socket'
    ./test/../lib/stomp/connection.rb:471:in `open_socket'
    ./test/../lib/stomp/connection.rb:110:in `socket'
    ./test/../lib/stomp/connection.rb:103:in `synchronize'
    ./test/../lib/stomp/connection.rb:103:in `socket'
    ./test/../lib/stomp/connection.rb:83:in `initialize'
    ./test/../lib/stomp/client.rb:93:in `new'
    ./test/../lib/stomp/client.rb:93:in `initialize'
    ./test/test_client.rb:9:in `new'
    ./test/test_client.rb:9:in `setup'
Comment 3 Hans de Graaff gentoo-dev Security 2011-01-13 07:15:42 UTC
Also, the package contains specs and tests, but you only try to run the tests. Is there a specific reason for that?

The ebuild also needs a DOCDIR setting, currently the documentation is built but not installed.
Comment 4 Lance Albertson (RETIRED) gentoo-dev 2011-01-15 00:30:06 UTC
(In reply to comment #2)
> It fails tests like so (+ many more). I guess this needs a sandboxed live stomp
> server?

Yes I believe it does. How should I work around that?
Comment 5 Hans de Graaff gentoo-dev Security 2011-01-16 09:33:58 UTC
(In reply to comment #4)

> Yes I believe it does. How should I work around that?

In order of preference:

1. set up a controlled instance of a stomp server and run tests against that
2. detect if a stomp server is available and fail gracefully on those tests requiring them
3. don't run these tests at all

I don't know anything about stomp so I can't tell beforehand which one if most feasible.
Comment 6 Lance Albertson (RETIRED) gentoo-dev 2011-02-28 03:02:59 UTC
(In reply to comment #5)
> (In reply to comment #4)
> 
> > Yes I believe it does. How should I work around that?
> 
> In order of preference:
> 
> 1. set up a controlled instance of a stomp server and run tests against that
> 2. detect if a stomp server is available and fail gracefully on those tests
> requiring them
> 3. don't run these tests at all
> 
> I don't know anything about stomp so I can't tell beforehand which one if most
> feasible.
> 

I don't think it'll be feasible to have it figure out if there's a stomp server running and where its at. I'd prefer to just go with #3. Want me to add the logic so that works?

Thanks-
Comment 7 Hans de Graaff gentoo-dev Security 2011-02-28 07:00:57 UTC
I have now added stomp 1.1.7 to CVS. It turns out that there are specs that test the code internally and tests that test the connection with the stomp server, so we can at least test the internal stuff with specs.

Due to this I dropped jruby support since its specs don't pass.