Skip to content

Avoid slow File Lock checks when not used

James Edwards-Jones requested to merge jej/avoid-slow-file-lock-checks into master

What

Adds guard to prevent looking up every single new commit in git on every push

EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4548

Why

This was slow and leads to timeouts. Refactoring in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4091 meant that the guard was no longer skipping commit lookup

Acceptance criteria

Related

Helps mitigate https://gitlab.com/gitlab-org/gitlab-ce/issues/43281

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/43339

Edited by James Edwards-Jones

Merge request reports

Loading