Try to speed up RuboCop on flags test
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
- In clean VM/container run the job without
--server
flagtime bundle exec rubocop --only Gitlab/MarkUsedFeatureFlags --cache false
- 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.
-
I have evaluated the MR acceptance checklist for this MR.