Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !7311

Closed
Created 10 years ago by Administrator@rootOwner
  • Report abuse
Report abuse

Tweak to support really big merge requests

  • Overview 17
  • Commits 2
  • Changes 4

Created by: ayr-ton

Related to:

https://gitlab.com/gitlab-org/gitlab-ce/issues/295#note_160691

Fix based on Matthieu Vachon suggestion.

Loading
Loading

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: TeatroIO

    I've prepared a stage. Click to open.

    By Administrator on 2014-07-15T18:30:24 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    lib/gitlab/satellite/action.rb
    1 1 module Gitlab
    2 2 module Satellite
    3 3 class Action
    4 DEFAULT_OPTIONS = { git_timeout: 30.seconds }
    4 DEFAULT_OPTIONS = { git_timeout: Gitlab.config.satellites.timeout.seconds }
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: dzaporozhets

      It mean if something bad happens - satellite will be blocked for 600 seconds (10mins). Nobody will be able to edit files or create merge requests. Another problem is that web server unicorn timeout still 30 seconds. So changing only this value does not help.

      If satellite cant collect diff in 30 seconds then it is something huge there. What sense to create MR for such big changes if you wont be able to review it anyway?

      Thank you for PR but I dont think it makes sense to apply this patch

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    lib/gitlab/satellite/action.rb
    1 1 module Gitlab
    2 2 module Satellite
    3 3 class Action
    4 DEFAULT_OPTIONS = { git_timeout: 30.seconds }
    4 DEFAULT_OPTIONS = { git_timeout: Gitlab.config.satellites.timeout.seconds }
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: ayr-ton

      @randx And if we put the timeout to come from gitlab.yml, from git timeout? It makes sense? If yes, I will ammend this option for come from gitlab.yml.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: ayr-ton

    @thiagozanetti If the merge request is too big, is needed to increase the timeout. The problem is, if we change the timeout in gitlab.yml, it doesn't change the timeout for satellites, that is what we use for store merge requests.

    By Administrator on 2014-07-16T11:20:25 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    lib/gitlab/satellite/action.rb
    1 1 module Gitlab
    2 2 module Satellite
    3 3 class Action
    4 DEFAULT_OPTIONS = { git_timeout: 30.seconds }
    4 DEFAULT_OPTIONS = { git_timeout: Gitlab.config.satellites.timeout.seconds }
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: ayr-ton

      I will also add an unit test for verify if it is being fetched from gitlab.yml.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    lib/gitlab/satellite/action.rb
    1 1 module Gitlab
    2 2 module Satellite
    3 3 class Action
    4 DEFAULT_OPTIONS = { git_timeout: 30.seconds }
    4 DEFAULT_OPTIONS = { git_timeout: Gitlab.config.satellites.timeout.seconds }
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: dzaporozhets

      The problem is timeout for git != timeout for satellite.

      Satellite:

      • lock satellite
      • clone or fetch repo
      • cleanup and prepare remotes/branches
      • do git call (one or several)
      • cleanup and release lock

      As you see git call is only part of satellite. Having same value for satellite and git does not makes sense.

      You can create separate config value for satellite timeout in this section if you want. But default value should be still 30 seconds because for most users bigger value does not makes sense.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    spec/lib/gitlab/satellite/action_spec.rb
    Unable to load the diff
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    spec/lib/gitlab/satellite/action_spec.rb
    Unable to load the diff
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Use 2 (not 4) spaces for indentation.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    lib/gitlab/satellite/action.rb
    1 1 module Gitlab
    2 2 module Satellite
    3 3 class Action
    4 DEFAULT_OPTIONS = { git_timeout: 30.seconds }
    4 DEFAULT_OPTIONS = { git_timeout: Gitlab.config.satellites.timeout.seconds }
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Line is too long. [81/80]

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    spec/lib/gitlab/satellite/action_spec.rb
    Unable to load the diff
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    lib/gitlab/satellite/action.rb
    1 1 module Gitlab
    2 2 module Satellite
    3 3 class Action
    4 DEFAULT_OPTIONS = { git_timeout: 30.seconds }
    4 DEFAULT_OPTIONS = { git_timeout: Gitlab.config.satellites.timeout.seconds }
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: ayr-ton

      @randx The old commit with 600 as default timeout hardcoded was removed. Now a new commit, with unit tests, fetching the conf from Gitlab.config.satellites.timeout was made. The default setting is 30.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    spec/lib/gitlab/satellite/action_spec.rb
    Unable to load the diff
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: ayr-ton

      @randx I preffer to not change this because all the file is using single quotes. I can provide a new pull request with this refactor in the future.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    spec/lib/gitlab/satellite/action_spec.rb
    5 5 let(:user) { create(:user) }
    6 6
    7 7 describe '#prepare_satellite!' do
    8 it 'should be able to fetch timeout from conf' do
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    spec/lib/gitlab/satellite/action_spec.rb
    5 5 let(:user) { create(:user) }
    6 6
    7 7 describe '#prepare_satellite!' do
    8 it 'should be able to fetch timeout from conf' do
    9 Gitlab.config.satellites.timeout = 30
    10 DEFAULT_OPTIONS['git_timeout'].should == 30.seconds
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    lib/gitlab/satellite/action.rb
    1 1 module Gitlab
    2 2 module Satellite
    3 3 class Action
    4 DEFAULT_OPTIONS = { git_timeout: 30.seconds }
    4 DEFAULT_OPTIONS = { git_timeout: Gitlab.config.satellites.timeout.seconds }
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Line is too long. [81/80]

      By Administrator on 2014-07-21T15:54:47 (imported from GitLab project)

  • Administrator
    Administrator @root started a thread on commit 4490ac1a 10 years ago
    config/initializers/1_settings.rb
    141 141
    142 142 Settings['satellites'] ||= Settingslogic.new({})
    143 143 Settings.satellites['path'] = File.expand_path(Settings.satellites['path'] || "tmp/repo_satellites/", Rails.root)
    144 Settings.satellites['timeout'] ||= 30
    • Administrator
      Administrator @root · 10 years ago
      Owner

      Created by: houndci-bot

      Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

      By Administrator on 2014-07-21T15:54:56 (imported from GitLab project)

  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: dzaporozhets

    @ayr-ton sorry but we don't accept new features to stable branches. I merged PR for master but I must decline this one :(

    By Administrator on 2014-07-23T16:19:14 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
1
1 participant
user avatar
Reference: gpt/large_projects/gitlabhq1!7311
Source branch: github/fork/ayr-ton/6-9-stable

    0 pending comments

Menu

Projects Groups Snippets
Help