From e0225aea1beb741601b888d4f505abd97f0f67a6 Mon Sep 17 00:00:00 2001 From: Tiago Botelho Date: Thu, 25 Oct 2018 10:36:40 +0100 Subject: 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 --- lib/gitlab/git_access.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/git_access.rb') diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 1da466cbfd6..802fa65dd63 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -27,13 +27,13 @@ module Gitlab cannot_push_to_read_only: "You can't push code to a read-only GitLab instance." }.freeze + INTERNAL_TIMEOUT = 50.seconds.freeze LOG_HEADER = <<~MESSAGE Push operation timed out Timing information for debugging purposes: MESSAGE - INTERNAL_TIMEOUT = 50.seconds.freeze DOWNLOAD_COMMANDS = %w{git-upload-pack git-upload-archive}.freeze PUSH_COMMANDS = %w{git-receive-pack}.freeze ALL_COMMANDS = DOWNLOAD_COMMANDS + PUSH_COMMANDS -- cgit v1.2.1