Skip setup of gitlab-shell, gitaly, ... for specs that don't need it.
It is sometimes annoyign to have to wait for this, even for specs that don't need any of these external dependencies.
The way we could solve this by having a spec_helper
that doesn't do all of those which we could require in specs that don't depend on anything.
I think these are the steps in TestEnv.init
that take the longest right now:
# Setup GitLab shell for test instance
setup_gitlab_shell
setup_gitaly
# Create repository for FactoryBot.create(:project)
setup_factory_repo
# Create repository for FactoryBot.create(:forked_project_with_submodules)
setup_forked_repo
So I think it might be a win to be able to skip those for some specs.
/cc @jamedjo