[katello-devel] Experience contributing a new feature as a user

Hugh Brock hbrock at redhat.com
Wed Aug 15 15:45:18 UTC 2012


On Wed, Aug 15, 2012 at 04:39:03PM +0200, Ivan Nečas wrote:
> On 08/15/2012 03:37 PM, Og Maciel wrote:
> >Hey Ivan, thanks for the reply. I am actually running Fedora (and RHEL 6.3) and have tried a mix of yum and gem install commands to get to a point where I can try to run a simple rspec test... Though having a script that does what you mentioned, which is, turn a katello system that was installed and configured into a devel environment would help me right now, imvho it does not solve what may be the bigger issue here: why do I need to install the application in order to run a test? In the rails world all you need is a test db as you don't actually want to touch the real db.
> >
> >Also, why can't we just use bundle install like most rails apps? Sure, you don't have to get all the other moving parts with this command, such as pulp, candlepin, etc, but at least get enough dependencies so that one can run tests against it?
> >
> >As a contributing user I'd like to checkout the source code, run bundle install, and be able to write and run rpsec tests :)
> you would get the same error (with missing ruby-devel) with bundle
> install as well. In this case, there is no difference between
> `bundle install` and `gem install`. Therefore the RPMs are the
> preferred way to do things. And if we had all the devel pacakges in
> the "Katello Devel" comps. It would by just as easy as installing
> it. It just doesn't help the people without yum.
> 
> pchalupa is working on a better solution for `bundle install` issue
> (he has motivation: runs on Mac OS :) The biggest issue right not is
> that it's not very clear, how the gem repo is generated (we are
> considering to move it go github pages). It also needs a patch in
> bundler that will prefer system gems instead of the remote ones. But
> we are addressing this.

You guys are aware of Jay Guiditta's work on exactly this issue, right?
We're currently using a patched Bundler for Aeolus that uses standard
gems by default, but will switch to system (rpm-installed) gems if you
set the appropriate flag.

--H

-- 
== Hugh Brock, hbrock at redhat.com                                   ==
== Engineering Manager, Cloud BU                                   ==
== Aeolus Project: Manage virtual infrastructure across clouds.    ==
== http://aeolusproject.org                                        ==

"I know that you believe you understand what you think I said, but I’m
not sure you realize that what you heard is not what I meant."
--Robert McCloskey




More information about the katello-devel mailing list