gitlab-org--gitlab-foss/spec/lib/gitlab/gitaly_client
Stan Hu db759c5d9c Allow ref name caching CommitService#find_commit
For a given merge request, it's quite common to see duplicate FindCommit
Gitaly requests because the Gitaly CommitService caches the request by
the commit SHA, not by the ref name. However, most of the duplicate
requests use the ref name, so the cache is never actually used in
practice. This leads to unnecessary requests that slow performance.

This commit allows certain callers to bypass the ref name to
OID conversion in the cache. We don't do this by default because it's
possible the tip of the branch changes during the commit, which
would cause the caller to get stale data.

This commit also forces the Ci::Pipeline to use the full ref name
so that caching can work for merge requests.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57083
2019-03-27 14:46:39 -05:00
..
blob_service_spec.rb
blobs_stitcher_spec.rb Fixing image lfs bug and also displaying text lfs 2018-12-27 16:51:07 +01:00
cleanup_service_spec.rb
commit_service_spec.rb Allow ref name caching CommitService#find_commit 2019-03-27 14:46:39 -05:00
conflict_files_stitcher_spec.rb
conflicts_service_spec.rb
diff_spec.rb
diff_stitcher_spec.rb
health_check_service_spec.rb
notification_service_spec.rb
object_pool_service_spec.rb Allow public forks to be deduplicated 2018-12-07 19:18:37 +01:00
operation_service_spec.rb Allow custom hooks errors to appear in GitLab UI 2019-03-26 13:05:40 +13:00
ref_service_spec.rb GitalyClient spec: Remove the diff between CE/EE 2019-03-26 17:17:57 +01:00
remote_service_spec.rb Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
repository_service_spec.rb
storage_service_spec.rb
storage_settings_spec.rb Bring back Rugged implementation of find_commit 2019-03-01 08:45:51 -08:00
util_spec.rb Rename gl_project_name -> gl_project_path 2019-02-05 21:33:10 -08:00
wiki_service_spec.rb