foreman_remote_execution icon indicating copy to clipboard operation
foreman_remote_execution copied to clipboard

Make theforeman-rubocop dev dep

Open ofedoren opened this issue 1 year ago • 3 comments

ofedoren avatar Aug 21 '24 14:08 ofedoren

Well, theforeman-rubocop caused few issues for me: 1. It through dependencies requires latest concurrent-ruby, which causes problems with dynflow, which requires a specific version, thus making bundle install to fail under certain circumstances (noticed that during dev setup via forklift) 2. It depends on rather later rubocop, which causes issues for Ruby LSP plugin for VS Code :/ Currently all the rubocop stuff makes me hate it rather utilize...

Since rubocop is mostly used only in test environment, I'd love to exclude it from bundle install by default, but rather with some flag, like with groups. Now I think I should update PR to move it under :test group? But I'm not sure if it then will be installed in GHA though...

ofedoren avatar Sep 03 '24 10:09 ofedoren

Well, theforeman-rubocop caused few issues for me: 1. It through dependencies requires latest concurrent-ruby, which causes problems with dynflow, which requires a specific version, thus making bundle install to fail under certain circumstances (noticed that during dev setup via forklift) 2. It depends on rather later rubocop, which causes issues for Ruby LSP plugin for VS Code :/ Currently all the rubocop stuff makes me hate it rather utilize...

I often have this feeling with Ruby gems. Specifically with concurrent-ruby I wonder how much of our usage could be replaced with Ruby 3's fibers but that's beyond the scope of this PR.

Now I think I should update PR to move it under :test group? But I'm not sure if it then will be installed in GHA though...

I often like to do this, except making it a :rubocop group. That way you can (but we don't do this today) run RuboCop in one job and the CI suite in another with minimal dependencies.

ekohl avatar Sep 03 '24 11:09 ekohl

I often like to do this, except making it a :rubocop group.

@ofedoren how about this ^?

adamruzicka avatar Nov 05 '24 14:11 adamruzicka

Not sure if it's still relevant, but updated.

ofedoren avatar May 28 '25 12:05 ofedoren

Leaving for @adamruzicka since he had comments before

ekohl avatar Jun 07 '25 07:06 ekohl

Thank you @ofedoren !

adamruzicka avatar Jun 09 '25 07:06 adamruzicka