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

Ivan Nečas inecas at redhat.com
Wed Aug 15 14:39:03 UTC 2012


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.

-- 
Ivan




More information about the katello-devel mailing list