diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-25 10:36:40 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-25 10:52:03 +0100 |
commit | e0225aea1beb741601b888d4f505abd97f0f67a6 (patch) | |
tree | 818562012bb78cdbd73413b01558adef1bdfcc09 /lib/gitlab/checks/change_access.rb | |
parent | cb5f4d0cad520629aecaa838ddf1e84d7265ff49 (diff) | |
download | gitlab-ce-e0225aea1beb741601b888d4f505abd97f0f67a6.tar.gz |
Iterating through commit list times out
Validating each commit on ChangeAccess times out if
it already took too long to complete.
Improves the TimedLogger specs to not make use of a stubbed
class anymore
Diffstat (limited to 'lib/gitlab/checks/change_access.rb')
-rw-r--r-- | lib/gitlab/checks/change_access.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/checks/change_access.rb b/lib/gitlab/checks/change_access.rb index 7036ae9191d..28ec6beb7e0 100644 --- a/lib/gitlab/checks/change_access.rb +++ b/lib/gitlab/checks/change_access.rb @@ -159,6 +159,8 @@ module Gitlab # n+1: https://gitlab.com/gitlab-org/gitlab-ee/issues/3593 ::Gitlab::GitalyClient.allow_n_plus_1_calls do commits.each do |commit| + logger.check_timeout_reached + commit_check.validate(commit, validations_for_commit(commit)) end end |