Can't clone Gitaly when running EE tests locally
When running any EE tests locally I'm now greeted by the following output:
WARNING: No GitLab Enterprise Edition license has been provided yet. Pushing code and creation of issues and merge requests has been disabled. Upload a license in the admin area to activate this functionality.
WARNING: Shared example group 'protected branches > access control > CE' has been previously defined at:
/home/yorickpeterse/Projects/gitlab/gitlab-ee/spec/support/protected_branches/access_control_ce_shared_examples.rb:1
...and you are now defining it at:
/home/yorickpeterse/Projects/gitlab/gitlab-ee/spec/support/shared_examples/features/protected_branches_access_control_ce_spec.rb:1
The new definition will overwrite the original one.
WARNING: Shared example group 'protected branches > access control > EE' has been previously defined at:
/home/yorickpeterse/Projects/gitlab/gitlab-ee/spec/support/protected_branches/access_control_ee_shared_examples.rb:1
...and you are now defining it at:
/home/yorickpeterse/Projects/gitlab/gitlab-ee/spec/support/shared_examples/features/protected_branches_access_control_ee_spec.rb:1
The new definition will overwrite the original one.
WARNING: No GitLab Enterprise Edition license has been provided yet. Pushing code and creation of issues and merge requests has been disabled. Upload a license in the admin area to activate this functionality.
Warning
You are running as user yorickpeterse, we hope you know what you are doing.
Things may work/fail for the wrong reasons.
For correct results you should run this as user git.
rake aborted!
Gitlab::TaskFailedError: error: pathspec 'v0.11.2' did not match any file(s) known to git.
/home/yorickpeterse/Projects/gitlab/gitlab-ee/lib/tasks/gitlab/task_helpers.rb:84:in `run_command!'
/home/yorickpeterse/Projects/gitlab/gitlab-ee/lib/tasks/gitlab/task_helpers.rb:165:in `checkout_version'
/home/yorickpeterse/Projects/gitlab/gitlab-ee/lib/tasks/gitlab/task_helpers.rb:155:in `checkout_or_clone_version'
/home/yorickpeterse/Projects/gitlab/gitlab-ee/lib/tasks/gitlab/gitaly.rake:15:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:gitaly:install
(See full trace by running task with --trace)
Finished in 21.3 seconds (files took 10.41 seconds to load)
0 examples, 0 failures
bundler: failed to load command: rspec (/home/yorickpeterse/.gem/ruby/2.3.3/bin/rspec)
RuntimeError: Can't clone gitaly
/home/yorickpeterse/Projects/gitlab/gitlab-ee/spec/support/test_env.rb:137:in `setup_gitaly'
/home/yorickpeterse/Projects/gitlab/gitlab-ee/spec/support/test_env.rb:74:in `init'
/home/yorickpeterse/Projects/gitlab/gitlab-ee/spec/spec_helper.rb:71:in `block (2 levels) in <top (required)>'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/example.rb:441:in `instance_exec'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/example.rb:441:in `instance_exec'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/hooks.rb:350:in `run'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/configuration.rb:1880:in `block in run_hooks_with'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/configuration.rb:1880:in `each'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/configuration.rb:1880:in `run_hooks_with'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/configuration.rb:1836:in `with_suite_hooks'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/runner.rb:112:in `block in run_specs'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/reporter.rb:77:in `report'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/runner.rb:111:in `run_specs'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/runner.rb:87:in `run'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/runner.rb:71:in `run'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/lib/rspec/core/runner.rb:45:in `invoke'
/home/yorickpeterse/.gem/ruby/2.3.3/gems/rspec-core-3.5.0/exe/rspec:4:in `<top (required)>'
/home/yorickpeterse/.gem/ruby/2.3.3/bin/rspec:22:in `load'
/home/yorickpeterse/.gem/ruby/2.3.3/bin/rspec:22:in `<top (required)>'
This is after I adjusted GITALY_SERVER_VERSION to use the latest tag, but using the one as specified on master
makes no difference.
The above was produced by just running:
bundle exec rspec spec/controllers/projects_controller_spec.rb
This only seems to occur on EE last I checked.