Users reported a warning during Discourse rebuilds about RuboCop’s Performance Cops being deprecated and moved to the rubocop-performance gem. Initially, there was confusion about whether this was expected, since RuboCop was thought to be limited to development/test environments Falco. However, pfaffman confirmed seeing the message in production rebuilds, and cpradio shared a screenshot confirming the issue. tgxworld investigated and discovered that test gems were accidentally being installed in production environments — a long-standing bug. The issue was promptly fixed in two commits: discourse_docker and docker_manager. A new base image will be released soon to resolve the issue for users upon rebuild. pfaffman expressed surprise at having uncovered a real bug and asked where to monitor for future base image updates requiring command-line upgrades — a question left open for community or staff response.
Hey, @tgxworld, I’m guessing that this is on your radar, but rebuilds include this:
Post-install message from rubocop:
Performance Cops will be removed from RuboCop 0.68. Use rubocop-performance gem instead.
Put this in your Gemfile.
gem 'rubocop-performance'
Where are you seeing the message? I looked through the code paths where we run bundle install and those paths are correctly including --without test --without development.