Skip to content

Draft: Speedup tests by parallelising dependency process spawning

Aboobacker MK requested to merge tachyons_speedup_test_load into master

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.

Edited by Aboobacker MK

Merge request reports