Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
		
							parent
							
								
									7966322a89
								
							
						
					
					
						commit
						b7e6e9545f
					
				| 
						 | 
					@ -25,6 +25,12 @@ const initSentry = () => {
 | 
				
			||||||
    environment: gon.sentry_environment,
 | 
					    environment: gon.sentry_environment,
 | 
				
			||||||
    autoSessionTracking: true,
 | 
					    autoSessionTracking: true,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    ignoreErrors: [
 | 
				
			||||||
 | 
					      // Network errors create noise in Sentry and can't be fixed, ignore them.
 | 
				
			||||||
 | 
					      /Network Error/i,
 | 
				
			||||||
 | 
					      /NetworkError/i,
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Browser tracing configuration
 | 
					    // Browser tracing configuration
 | 
				
			||||||
    enableTracing: true,
 | 
					    enableTracing: true,
 | 
				
			||||||
    tracePropagationTargets: [/^\//], // only trace internal requests
 | 
					    tracePropagationTargets: [/^\//], // only trace internal requests
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -44,7 +44,7 @@ module QA
 | 
				
			||||||
          repository.uri = project.repository_http_location.uri
 | 
					          repository.uri = project.repository_http_location.uri
 | 
				
			||||||
          repository.use_default_credentials
 | 
					          repository.use_default_credentials
 | 
				
			||||||
          repository.clone
 | 
					          repository.clone
 | 
				
			||||||
          repository.configure_identity('GitLab QA', 'root@gitlab.com')
 | 
					          repository.use_default_identity
 | 
				
			||||||
          1.upto(queue_size_target) do |i|
 | 
					          1.upto(queue_size_target) do |i|
 | 
				
			||||||
            repository.checkout("branch#{i}", new_branch: true)
 | 
					            repository.checkout("branch#{i}", new_branch: true)
 | 
				
			||||||
            repository.commit_file("file#{i}", SecureRandom.random_bytes(10000000), "Add file#{i}")
 | 
					            repository.commit_file("file#{i}", SecureRandom.random_bytes(10000000), "Add file#{i}")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,7 @@ module QA
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          repository.act do
 | 
					          repository.act do
 | 
				
			||||||
            init_repository
 | 
					            init_repository
 | 
				
			||||||
            configure_identity('GitLab QA', 'root@gitlab.com')
 | 
					            use_default_identity
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            commit_file(filename, 'Test file content', default_branch_commit_message)
 | 
					            commit_file(filename, 'Test file content', default_branch_commit_message)
 | 
				
			||||||
            push_changes
 | 
					            push_changes
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,7 +37,7 @@ module QA
 | 
				
			||||||
          repository.init_repository
 | 
					          repository.init_repository
 | 
				
			||||||
          repository.uri = "#{Runtime::Scenario.gitlab_address}/#{group.full_path}/#{project_name}"
 | 
					          repository.uri = "#{Runtime::Scenario.gitlab_address}/#{group.full_path}/#{project_name}"
 | 
				
			||||||
          repository.use_default_credentials
 | 
					          repository.use_default_credentials
 | 
				
			||||||
          repository.configure_identity('GitLab QA', 'root@gitlab.com')
 | 
					          repository.use_default_identity
 | 
				
			||||||
          repository.checkout('trunk', new_branch: true)
 | 
					          repository.checkout('trunk', new_branch: true)
 | 
				
			||||||
          repository.commit_file('README.md', 'Created via the CLI', 'initial commit via CLI')
 | 
					          repository.commit_file('README.md', 'Created via the CLI', 'initial commit via CLI')
 | 
				
			||||||
          repository.push_changes('trunk')
 | 
					          repository.push_changes('trunk')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,7 @@ module QA
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          repository.act do
 | 
					          repository.act do
 | 
				
			||||||
            clone
 | 
					            clone
 | 
				
			||||||
            configure_identity('GitLab QA', 'root@gitlab.com')
 | 
					            use_default_identity
 | 
				
			||||||
            checkout(default_branch, new_branch: true)
 | 
					            checkout(default_branch, new_branch: true)
 | 
				
			||||||
            commit_file('test.rb', 'class Test; end', 'Add Test class')
 | 
					            commit_file('test.rb', 'class Test; end', 'Add Test class')
 | 
				
			||||||
            commit_file('README.md', '# Test', 'Add Readme')
 | 
					            commit_file('README.md', '# Test', 'Add Readme')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,13 +17,10 @@ module QA
 | 
				
			||||||
        # Use Git to clone the project, push a file to it, and then check the
 | 
					        # Use Git to clone the project, push a file to it, and then check the
 | 
				
			||||||
        # supported Git protocol
 | 
					        # supported Git protocol
 | 
				
			||||||
        Git::Repository.perform do |repository|
 | 
					        Git::Repository.perform do |repository|
 | 
				
			||||||
          username = 'GitLab QA'
 | 
					 | 
				
			||||||
          email = 'root@gitlab.com'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          repository.uri = project.repository_http_location.uri
 | 
					          repository.uri = project.repository_http_location.uri
 | 
				
			||||||
          repository.use_default_credentials
 | 
					          repository.use_default_credentials
 | 
				
			||||||
          repository.clone
 | 
					          repository.clone
 | 
				
			||||||
          repository.configure_identity(username, email)
 | 
					          repository.use_default_identity
 | 
				
			||||||
          repository.default_branch = project.default_branch
 | 
					          repository.default_branch = project.default_branch
 | 
				
			||||||
          repository.checkout(project.default_branch, new_branch: true)
 | 
					          repository.checkout(project.default_branch, new_branch: true)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,15 +36,12 @@ module QA
 | 
				
			||||||
        # Use Git to clone the project, push a file to it, and then check the
 | 
					        # Use Git to clone the project, push a file to it, and then check the
 | 
				
			||||||
        # supported Git protocol
 | 
					        # supported Git protocol
 | 
				
			||||||
        Git::Repository.perform do |repository|
 | 
					        Git::Repository.perform do |repository|
 | 
				
			||||||
          username = 'GitLab QA'
 | 
					 | 
				
			||||||
          email = 'root@gitlab.com'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
          repository.uri = project.repository_ssh_location.uri
 | 
					          repository.uri = project.repository_ssh_location.uri
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          begin
 | 
					          begin
 | 
				
			||||||
            repository.use_ssh_key(ssh_key)
 | 
					            repository.use_ssh_key(ssh_key)
 | 
				
			||||||
            repository.clone
 | 
					            repository.clone
 | 
				
			||||||
            repository.configure_identity(username, email)
 | 
					            repository.use_default_identity
 | 
				
			||||||
            repository.default_branch = project.default_branch
 | 
					            repository.default_branch = project.default_branch
 | 
				
			||||||
            repository.checkout(project.default_branch, new_branch: true)
 | 
					            repository.checkout(project.default_branch, new_branch: true)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -67,6 +67,7 @@ describe('SentryConfig', () => {
 | 
				
			||||||
            allowUrls: [mockGitlabUrl, 'webpack-internal://'],
 | 
					            allowUrls: [mockGitlabUrl, 'webpack-internal://'],
 | 
				
			||||||
            environment: mockEnvironment,
 | 
					            environment: mockEnvironment,
 | 
				
			||||||
            autoSessionTracking: true,
 | 
					            autoSessionTracking: true,
 | 
				
			||||||
 | 
					            ignoreErrors: [/Network Error/i, /NetworkError/i],
 | 
				
			||||||
            enableTracing: true,
 | 
					            enableTracing: true,
 | 
				
			||||||
            tracePropagationTargets: [/^\//],
 | 
					            tracePropagationTargets: [/^\//],
 | 
				
			||||||
            tracesSampleRate: mockSentryClientsideTracesSampleRate,
 | 
					            tracesSampleRate: mockSentryClientsideTracesSampleRate,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue