diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-18 18:08:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-18 18:08:15 +0300 |
commit | e35f91f05bc00106dda3b9268c462db14c7f8ad6 (patch) | |
tree | 1f7f775565d9c8355819a9598f9d0262fb0ff26b /app/presenters | |
parent | 48650fe1bfc1e3d20ec3a5702ef4d64e9fe69912 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/ci/build_runner_presenter.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/presenters/ci/build_runner_presenter.rb b/app/presenters/ci/build_runner_presenter.rb index f63fd3c50c4..5e35bfc79ef 100644 --- a/app/presenters/ci/build_runner_presenter.rb +++ b/app/presenters/ci/build_runner_presenter.rb @@ -97,6 +97,13 @@ module Ci end def persistent_ref_exist? + ## + # Persistent refs for pipelines definitely exist from GitLab 12.4, + # hence, we don't need to check the ref existence before passing it to runners. + # Checking refs pressurizes gitaly node and should be avoided. + # Issue: https://gitlab.com/gitlab-com/gl-infra/production/-/issues/2143 + return true if Feature.enabled?(:ci_skip_persistent_ref_existence_check) + pipeline.persistent_ref.exist? end |