Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot 2024-11-25 00:26:16 +00:00
parent 7966322a89
commit b7e6e9545f
8 changed files with 13 additions and 12 deletions

View File

@ -25,6 +25,12 @@ const initSentry = () => {
environment: gon.sentry_environment,
autoSessionTracking: true,
ignoreErrors: [
// Network errors create noise in Sentry and can't be fixed, ignore them.
/Network Error/i,
/NetworkError/i,
],
// Browser tracing configuration
enableTracing: true,
tracePropagationTargets: [/^\//], // only trace internal requests

View File

@ -44,7 +44,7 @@ module QA
repository.uri = project.repository_http_location.uri
repository.use_default_credentials
repository.clone
repository.configure_identity('GitLab QA', 'root@gitlab.com')
repository.use_default_identity
1.upto(queue_size_target) do |i|
repository.checkout("branch#{i}", new_branch: true)
repository.commit_file("file#{i}", SecureRandom.random_bytes(10000000), "Add file#{i}")

View File

@ -18,7 +18,7 @@ module QA
repository.act do
init_repository
configure_identity('GitLab QA', 'root@gitlab.com')
use_default_identity
commit_file(filename, 'Test file content', default_branch_commit_message)
push_changes

View File

@ -37,7 +37,7 @@ module QA
repository.init_repository
repository.uri = "#{Runtime::Scenario.gitlab_address}/#{group.full_path}/#{project_name}"
repository.use_default_credentials
repository.configure_identity('GitLab QA', 'root@gitlab.com')
repository.use_default_identity
repository.checkout('trunk', new_branch: true)
repository.commit_file('README.md', 'Created via the CLI', 'initial commit via CLI')
repository.push_changes('trunk')

View File

@ -13,7 +13,7 @@ module QA
repository.act do
clone
configure_identity('GitLab QA', 'root@gitlab.com')
use_default_identity
checkout(default_branch, new_branch: true)
commit_file('test.rb', 'class Test; end', 'Add Test class')
commit_file('README.md', '# Test', 'Add Readme')

View File

@ -17,13 +17,10 @@ module QA
# Use Git to clone the project, push a file to it, and then check the
# supported Git protocol
Git::Repository.perform do |repository|
username = 'GitLab QA'
email = 'root@gitlab.com'
repository.uri = project.repository_http_location.uri
repository.use_default_credentials
repository.clone
repository.configure_identity(username, email)
repository.use_default_identity
repository.default_branch = project.default_branch
repository.checkout(project.default_branch, new_branch: true)

View File

@ -36,15 +36,12 @@ module QA
# Use Git to clone the project, push a file to it, and then check the
# supported Git protocol
Git::Repository.perform do |repository|
username = 'GitLab QA'
email = 'root@gitlab.com'
repository.uri = project.repository_ssh_location.uri
begin
repository.use_ssh_key(ssh_key)
repository.clone
repository.configure_identity(username, email)
repository.use_default_identity
repository.default_branch = project.default_branch
repository.checkout(project.default_branch, new_branch: true)

View File

@ -67,6 +67,7 @@ describe('SentryConfig', () => {
allowUrls: [mockGitlabUrl, 'webpack-internal://'],
environment: mockEnvironment,
autoSessionTracking: true,
ignoreErrors: [/Network Error/i, /NetworkError/i],
enableTracing: true,
tracePropagationTargets: [/^\//],
tracesSampleRate: mockSentryClientsideTracesSampleRate,