Draft: Speedup tests by parallelising dependency process spawning
What does this MR do and why?
Speedup tests by parallelising dependency process spawning
Before:
❯ bundle exec rspec spec/lib/gitlab/usage_data_spec.rb:36
Run options: include {:focus=>true, :locations=>{"./spec/lib/gitlab/usage_data_spec.rb"=>[36]}}
Test environment set up in 6.046458 second
After:
❯ bundle exec rspec spec/lib/gitlab/usage_data_spec.rb:36
Run options: include {:focus=>true, :locations=>{"./spec/lib/gitlab/usage_data_spec.rb"=>[36]}}
Test environment set up in 3.773355 seconds
How to set up and validate locally
Run an rspec test locally with and without this change. Check if setup time is improved
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.
Edited by Aboobacker MK