Unnecessary bundler grups for Rubocop on Jenkins

Hello,

for some reason, this gem started to fail on Jenkins:

gem install linecache19 -v '0.5.12'
Building native extensions. This could take a while…
ERROR: Error installing linecache19:
ERROR: Failed to build gem native extension.

It looks it attempts to download and compile Ruby (!) which is indeed
time consuming and error-prone task. Looks like some miscompatibility
between the gem and old ruby version.

Anyway, it only happens in Smart Proxy Rubucop job AFAIK:

http://ci.theforeman.org/job/test_proxy_develop_pull_request/992/

I realized this is installing all the gem groups, including development
(this gem is actually dep of the debugger gem). This is absolutely not
needed for this kind of Rubocop test.

I changed the job configuration to only install "test" group and the
error is gone. I was expecting it to be faster, but it is not the case.

I was thinking doing the same for Foreman and Katello, but it looks like
Rubocop is part of the development group here. I guess we could move it
to test if there are no objections.

··· -- Later, Lukas #lzap Zapletal

The core Foreman jobs should all be excluding the development group
already. rubocop is a dependency of rubocop-checkstyle_formatter, which
is in the test group.

··· On 21/01/16 07:59, Lukas Zapletal wrote: > I realized this is installing all the gem groups, including development > (this gem is actually dep of the debugger gem). This is absolutely not > needed for this kind of Rubocop test. > > I changed the job configuration to only install "test" group and the > error is gone. I was expecting it to be faster, but it is not the case. > > I was thinking doing the same for Foreman and Katello, but it looks like > Rubocop is part of the development group here. I guess we could move it > to test if there are no objections.


Dominic Cleal
dominic@cleal.org