Skip to content

Try to speed up RuboCop on flags test

Anatoli Babenia requested to merge abitrolly/gitlab:rubocop-server into master

What does this MR do and why?

feature-flags-usage takes 10 minutes https://gitlab.com/abitrolly/gitlab/-/jobs/3307970297

Using --server flag might speed it up https://metaredux.com/posts/2022/07/26/rubocop-serves-much-faster.html

How to set up and validate locally

  1. In clean VM/container run the job without --server flag
    time bundle exec rubocop --only Gitlab/MarkUsedFeatureFlags --cache false
  2. And compare it with running with --server
    time bundle exec rubocop --only Gitlab/MarkUsedFeatureFlags --cache false --server

But it is more important to measure the performance in a pipeline.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading