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
95f0684d
Commit
95f0684d
authored
Apr 06, 2022
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update large gh import spec test data json
parent
dc182687
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
qa/qa/specs/features/api/1_manage/import_large_github_repo_spec.rb
...cs/features/api/1_manage/import_large_github_repo_spec.rb
+12
-7
No files found.
qa/qa/specs/features/api/1_manage/import_large_github_repo_spec.rb
View file @
95f0684d
...
...
@@ -21,11 +21,11 @@ module QA
end
end
let
(
:github_repo
)
{
ENV
[
'QA_LARGE_
GH_
IMPORT_REPO'
]
||
'rspec/rspec-core'
}
let
(
:import_max_duration
)
{
ENV
[
'QA_LARGE_
GH_IMPORT_DURATION'
]
?
ENV
[
'QA_LARGE_GH
_IMPORT_DURATION'
].
to_i
:
7200
}
let
(
:github_repo
)
{
ENV
[
'QA_LARGE_IMPORT_REPO'
]
||
'rspec/rspec-core'
}
let
(
:import_max_duration
)
{
ENV
[
'QA_LARGE_
IMPORT_DURATION'
]
?
ENV
[
'QA_LARGE
_IMPORT_DURATION'
].
to_i
:
7200
}
let
(
:github_client
)
do
Octokit
::
Client
.
new
(
access_token:
ENV
[
'QA_LARGE_
GH_
IMPORT_GH_TOKEN'
]
||
Runtime
::
Env
.
github_access_token
,
access_token:
ENV
[
'QA_LARGE_IMPORT_GH_TOKEN'
]
||
Runtime
::
Env
.
github_access_token
,
auto_paginate:
true
)
end
...
...
@@ -106,6 +106,7 @@ module QA
end
end
# rubocop:disable RSpec/InstanceVariable
after
do
|
example
|
user
.
remove_via_api!
unless
example
.
exception
next
unless
defined?
(
@import_time
)
...
...
@@ -114,20 +115,23 @@ module QA
save_json
(
"data"
,
{
importer: :github
,
import_time:
@import_time
,
reported_stats:
@stats
,
github:
{
source:
{
name:
"GitHub"
,
project_name:
github_repo
,
branches:
gh_branches
.
length
,
commits:
gh_commits
.
length
,
labels:
gh_labels
.
length
,
milestones:
gh_milestones
.
length
,
p
rs:
gh_prs
.
length
,
p
r_comments:
gh_prs
.
sum
{
|
_k
,
v
|
v
[
:comments
].
length
},
m
rs:
gh_prs
.
length
,
m
r_comments:
gh_prs
.
sum
{
|
_k
,
v
|
v
[
:comments
].
length
},
issues:
gh_issues
.
length
,
issue_comments:
gh_issues
.
sum
{
|
_k
,
v
|
v
[
:comments
].
length
}
},
gitlab:
{
target:
{
name:
"GitLab"
,
project_name:
imported_project
.
path_with_namespace
,
branches:
gl_branches
.
length
,
commits:
gl_commits
.
length
,
...
...
@@ -145,6 +149,7 @@ module QA
}
)
end
# rubocop:enable RSpec/InstanceVariable
it
(
'imports large Github repo via api'
,
...
...
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