Skip to content

Draft: Fix running specs with `fork_project(...,repository: true, using_service: true)` locally

Nick Thomas requested to merge fix-branch-hook-specs-locally into master

What does this MR do?

Running fork_project(..., repository: true, using_service: true) asks Gitaly to fetch changes from the parent repository into the child repository. This succeeds in CI, but fails when running the specs locally.

There are only two sets of specs that require this behaviour. This MR looks to get them both passing locally.

bin/rspec spec/services/projects/fork_service_spec.rb:94 spec/services/git/branch_hooks_service_spec.rb:432

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Nick Thomas

Merge request reports