Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b1aa104b
Commit
b1aa104b
authored
Mar 23, 2020
by
Sanad Liaquat
Committed by
Ramya Authappan
Mar 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create many files on master and
move create_many_issues out of threaded run
parent
9c426ff6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
qa/qa/tools/generate_perf_testdata.rb
qa/qa/tools/generate_perf_testdata.rb
+5
-4
No files found.
qa/qa/tools/generate_perf_testdata.rb
View file @
b1aa104b
...
...
@@ -33,9 +33,9 @@ module QA
create_many_branches
create_many_new_files
create_mr_with_many_commits
create_many_issues
methods_arr
=
[
method
(
:create_many_issues
),
method
(
:create_many_labels
),
method
(
:create_many_todos
),
method
(
:create_many_merge_requests
),
...
...
@@ -104,6 +104,7 @@ module QA
def
create_many_new_files
create_a_new_file_api_req
(
"hello.txt"
,
"master"
,
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"hello"
,
"my new content"
)
30
.
times
do
|
i
|
create_a_new_file_api_req
(
"hello
#{
i
}
.txt"
,
"master"
,
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"hello"
,
"my new content"
)
create_a_new_file_api_req
(
"hello
#{
i
}
.txt"
,
"branch
#{
i
}
"
,
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"hello"
,
"my new content"
)
end
...
...
@@ -137,7 +138,7 @@ module QA
16
.
times
do
|
i
|
faker_line_arr
=
Faker
::
Lorem
.
sentences
(
1500
)
content
=
faker_line_arr
.
join
(
"
\n\r
"
)
create_a_new_file_api_req
(
"hello
#{
i
}
.txt"
,
"master"
,
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"Add hello
#{
i
}
.txt"
,
content
)
create_a_new_file_api_req
(
"hello
#{
i
+
100
}
.txt"
,
"master"
,
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"Add hello
#{
i
+
100
}
.txt"
,
content
)
content_arr
[
i
]
=
faker_line_arr
end
...
...
@@ -147,7 +148,7 @@ module QA
missed_line_array
=
content_arr
[
i
].
each_slice
(
2
).
map
(
&
:first
)
content
=
missed_line_array
.
join
(
"
\n\r
Im new!:D
\n\r
"
)
update_file_api_req
(
"hello
#{
i
}
.txt"
,
"performance"
,
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"Update hello
#{
i
}
.txt"
,
content
)
update_file_api_req
(
"hello
#{
i
+
100
}
.txt"
,
"performance"
,
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"Update hello
#{
i
+
100
}
.txt"
,
content
)
end
create_mr_response
=
create_a_merge_request_api_req
(
"
#{
@group_name
}
%2F
#{
@project_name
}
"
,
"performance"
,
"master"
,
"Large_MR"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment