Prevent mirror service from calling Gitaly too much
What does this MR do?
Add a new Gitlab::Git method to allow UpdateRemoteMirrorService to bypass Gitaly.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
UpdateRemoteMirrorService was calling Gitaly's CommitIsAncestor RPC
too often. By letting this class bypass Gitaly we unblock the delivery
of the CommitIsAncestor RPC. At a future stage we can migrate
UpdateRemoteMirrorService#execute
to Gitaly in its entirety using
gitaly-ruby.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together