gitlab-qa 7.36.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +15 -23
- data/Gemfile.lock +3 -2
- data/docs/run_qa_against_gdk.md +5 -0
- data/gitlab-qa.gemspec +1 -0
- data/lib/gitlab/qa/report/{junit_test_results.rb → j_unit_test_results.rb} +0 -0
- data/lib/gitlab/qa/runtime/env.rb +1 -1
- data/lib/gitlab/qa/test_logger.rb +1 -1
- data/lib/gitlab/qa/version.rb +1 -1
- data/lib/gitlab/qa.rb +49 -143
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0982270bb1256eb950e30c84028a70fca0663c744fff1bf00cb1937f89936f43'
|
4
|
+
data.tar.gz: c2051a27b8027df5d47359a6b27a54338e25bfc37471dae2fe600087e118b392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c11dd80b24b285fcd8b93c94c0fabac93be215576eb307804c485ad9a5dbba4a7b6cd9f6b016f13082ba4c146f8189a2e7f6bf9b41ef85172a735696e2e558af
|
7
|
+
data.tar.gz: 0cf57dcfa1f30e37f2acc66015ed03c0d2e3d2bd65284f7be92d71b1028fadbceb9f72feaa7a4dad29905d7554a9f985885b6d95ca096944c1a955ffa0ac244d
|
data/.rubocop_todo.yml
CHANGED
@@ -1,22 +1,21 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2022-06-21 18:16:41 UTC using RuboCop version 0.93.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 199
|
10
10
|
# Cop supports --auto-correct.
|
11
11
|
CodeReuse/ActiveRecord:
|
12
12
|
Enabled: false
|
13
13
|
|
14
|
-
# Offense count:
|
14
|
+
# Offense count: 1
|
15
15
|
# Cop supports --auto-correct.
|
16
16
|
Cop/LineBreakAroundConditionalBlock:
|
17
17
|
Exclude:
|
18
18
|
- 'lib/gitlab/qa/release.rb'
|
19
|
-
- 'lib/gitlab/qa/runtime/env.rb'
|
20
19
|
|
21
20
|
# Offense count: 1
|
22
21
|
# Configuration parameters: Include.
|
@@ -44,10 +43,10 @@ Lint/RedundantCopDisableDirective:
|
|
44
43
|
- 'lib/gitlab/qa/component/staging.rb'
|
45
44
|
- 'lib/gitlab/qa/runtime/scenario.rb'
|
46
45
|
|
47
|
-
# Offense count:
|
46
|
+
# Offense count: 21
|
48
47
|
# Configuration parameters: IgnoredMethods.
|
49
48
|
Metrics/AbcSize:
|
50
|
-
Max:
|
49
|
+
Max: 60
|
51
50
|
IgnoredMethods:
|
52
51
|
- perform
|
53
52
|
|
@@ -58,24 +57,11 @@ Naming/RescuedExceptionsVariableName:
|
|
58
57
|
Exclude:
|
59
58
|
- 'lib/gitlab/qa/component/staging.rb'
|
60
59
|
|
61
|
-
# Offense count: 1
|
62
|
-
# Cop supports --auto-correct.
|
63
|
-
Performance/RegexpMatch:
|
64
|
-
Exclude:
|
65
|
-
- 'lib/gitlab/qa/component/gitlab.rb'
|
66
|
-
|
67
|
-
# Offense count: 1
|
68
|
-
# Cop supports --auto-correct.
|
69
|
-
# Configuration parameters: AutoCorrect.
|
70
|
-
Performance/StringInclude:
|
71
|
-
Exclude:
|
72
|
-
- 'lib/gitlab/qa/component/gitlab.rb'
|
73
|
-
|
74
60
|
# Offense count: 3
|
75
61
|
# Cop supports --auto-correct.
|
76
62
|
RSpec/EmptyLineAfterLetBlock:
|
77
63
|
Exclude:
|
78
|
-
- 'spec/gitlab/qa/support/
|
64
|
+
- 'spec/gitlab/qa/support/dev_ee_qa_image_spec.rb'
|
79
65
|
|
80
66
|
# Offense count: 4
|
81
67
|
# Cop supports --auto-correct.
|
@@ -84,6 +70,12 @@ RSpec/ExampleWording:
|
|
84
70
|
Exclude:
|
85
71
|
- 'spec/gitlab/qa/component/gitlab_spec.rb'
|
86
72
|
|
73
|
+
# Offense count: 1
|
74
|
+
# Configuration parameters: CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
75
|
+
RSpec/FilePath:
|
76
|
+
Exclude:
|
77
|
+
- 'spec/gitlab/qa/support/dev_ee_qa_image_spec.rb'
|
78
|
+
|
87
79
|
# Offense count: 2
|
88
80
|
RSpec/LeakyConstantDeclaration:
|
89
81
|
Exclude:
|
@@ -107,7 +99,7 @@ Style/HashTransformation:
|
|
107
99
|
Exclude:
|
108
100
|
- 'lib/gitlab/qa/docker/volumes.rb'
|
109
101
|
|
110
|
-
# Offense count:
|
102
|
+
# Offense count: 8
|
111
103
|
# Cop supports --auto-correct.
|
112
104
|
Style/IfUnlessModifier:
|
113
105
|
Exclude:
|
@@ -147,9 +139,9 @@ Style/StringConcatenation:
|
|
147
139
|
Exclude:
|
148
140
|
- 'lib/gitlab/qa/reporter.rb'
|
149
141
|
|
150
|
-
# Offense count:
|
142
|
+
# Offense count: 191
|
151
143
|
# Cop supports --auto-correct.
|
152
144
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
153
145
|
# URISchemes: http, https
|
154
146
|
Layout/LineLength:
|
155
|
-
Max:
|
147
|
+
Max: 189
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gitlab-qa (
|
4
|
+
gitlab-qa (8.0.0)
|
5
5
|
activesupport (~> 6.1)
|
6
6
|
gitlab (~> 4.18.0)
|
7
7
|
http (~> 5.0)
|
8
8
|
nokogiri (~> 1.10)
|
9
9
|
rainbow (~> 3.0.0)
|
10
10
|
table_print (= 1.5.7)
|
11
|
+
zeitwerk (~> 2.4)
|
11
12
|
|
12
13
|
GEM
|
13
14
|
remote: https://rubygems.org/
|
@@ -245,4 +246,4 @@ DEPENDENCIES
|
|
245
246
|
webmock (= 3.7.0)
|
246
247
|
|
247
248
|
BUNDLED WITH
|
248
|
-
2.
|
249
|
+
2.3.9
|
data/docs/run_qa_against_gdk.md
CHANGED
@@ -120,6 +120,11 @@ This is required because chrome-webdriver makes use of `/dev/shm` shared memory.
|
|
120
120
|
~3GB but unless you allocate 5GB or more some magic numbers may not enable a bigger `/dev/shm` in the
|
121
121
|
'host' VM that "native" docker runs on.
|
122
122
|
|
123
|
+
By default, Docker runs a container with a /dev/shm shared memory space 64MB.
|
124
|
+
This is typically too small for Chrome and will cause Chrome to crash when rendering large pages and fail the tests.
|
125
|
+
To fix, run the container with docker run `--shm-size=1gb` to increase the size of `/dev/shm`.
|
126
|
+
Since Chrome 65, this is no longer necessary. Instead, launch the browser with the `CHROME_DISABLE_DEV_SHM=true`.
|
127
|
+
|
123
128
|
Please note that while it's possible to run multi-node tests like Geo Primary and Secondary, you can't
|
124
129
|
access the machines from your host machine, as they are all exposed as `0.0.0.0:port`, and because
|
125
130
|
of that they don't match the configured VHOSTs in your GitLab installation, so the redirect login
|
data/gitlab-qa.gemspec
CHANGED
File without changes
|
data/lib/gitlab/qa/version.rb
CHANGED
data/lib/gitlab/qa.rb
CHANGED
@@ -1,151 +1,57 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'rainbow/refinement'
|
4
|
+
require 'zeitwerk'
|
4
5
|
|
5
6
|
module Gitlab
|
6
7
|
module QA
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
module Omnibus
|
57
|
-
autoload :Image, 'gitlab/qa/scenario/test/omnibus/image'
|
58
|
-
autoload :Update, 'gitlab/qa/scenario/test/omnibus/update'
|
59
|
-
autoload :Upgrade, 'gitlab/qa/scenario/test/omnibus/upgrade'
|
60
|
-
end
|
61
|
-
|
62
|
-
module Integration
|
63
|
-
autoload :Geo, 'gitlab/qa/scenario/test/integration/geo'
|
64
|
-
autoload :LDAP, 'gitlab/qa/scenario/test/integration/ldap'
|
65
|
-
autoload :LDAPNoTLS, 'gitlab/qa/scenario/test/integration/ldap_no_tls'
|
66
|
-
autoload :LDAPNoServer, 'gitlab/qa/scenario/test/integration/ldap_no_server'
|
67
|
-
autoload :LDAPTLS, 'gitlab/qa/scenario/test/integration/ldap_tls'
|
68
|
-
autoload :SAML, 'gitlab/qa/scenario/test/integration/saml'
|
69
|
-
autoload :GroupSAML, 'gitlab/qa/scenario/test/integration/group_saml'
|
70
|
-
autoload :InstanceSAML, 'gitlab/qa/scenario/test/integration/instance_saml'
|
71
|
-
autoload :Mattermost, 'gitlab/qa/scenario/test/integration/mattermost'
|
72
|
-
autoload :Kubernetes, 'gitlab/qa/scenario/test/integration/kubernetes'
|
73
|
-
autoload :Praefect, 'gitlab/qa/scenario/test/integration/praefect'
|
74
|
-
autoload :Elasticsearch, 'gitlab/qa/scenario/test/integration/elasticsearch'
|
75
|
-
autoload :SMTP, 'gitlab/qa/scenario/test/integration/smtp'
|
76
|
-
autoload :GitalyCluster, 'gitlab/qa/scenario/test/integration/gitaly_cluster'
|
77
|
-
autoload :Jira, 'gitlab/qa/scenario/test/integration/jira'
|
78
|
-
autoload :SSHTunnel, 'gitlab/qa/scenario/test/integration/ssh_tunnel'
|
79
|
-
autoload :MTLS, 'gitlab/qa/scenario/test/integration/mtls'
|
80
|
-
autoload :ClientSSL, 'gitlab/qa/scenario/test/integration/client_ssl'
|
81
|
-
autoload :Registry, 'gitlab/qa/scenario/test/integration/registry'
|
82
|
-
autoload :RegistryTLS, 'gitlab/qa/scenario/test/integration/registry_tls'
|
83
|
-
autoload :ServicePingDisabled, 'gitlab/qa/scenario/test/integration/service_ping_disabled'
|
84
|
-
autoload :Integrations, 'gitlab/qa/scenario/test/integration/integrations'
|
85
|
-
autoload :RegistryWithCDN, 'gitlab/qa/scenario/test/integration/registry_with_cdn'
|
86
|
-
end
|
87
|
-
|
88
|
-
module Sanity
|
89
|
-
autoload :Version, 'gitlab/qa/scenario/test/sanity/version'
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
module Component
|
95
|
-
autoload :Base, 'gitlab/qa/component/base'
|
96
|
-
autoload :Gitlab, 'gitlab/qa/component/gitlab'
|
97
|
-
autoload :InternetTunnel, 'gitlab/qa/component/internet_tunnel'
|
98
|
-
autoload :LDAP, 'gitlab/qa/component/ldap'
|
99
|
-
autoload :SAML, 'gitlab/qa/component/saml'
|
100
|
-
autoload :Specs, 'gitlab/qa/component/specs'
|
101
|
-
autoload :Staging, 'gitlab/qa/component/staging'
|
102
|
-
autoload :StagingRef, 'gitlab/qa/component/staging_ref'
|
103
|
-
autoload :Production, 'gitlab/qa/component/production'
|
104
|
-
autoload :Minio, 'gitlab/qa/component/minio'
|
105
|
-
autoload :Preprod, 'gitlab/qa/component/preprod'
|
106
|
-
autoload :Release, 'gitlab/qa/component/release'
|
107
|
-
autoload :Elasticsearch, 'gitlab/qa/component/elasticsearch'
|
108
|
-
autoload :MailHog, 'gitlab/qa/component/mail_hog'
|
109
|
-
autoload :Jira, 'gitlab/qa/component/jira'
|
110
|
-
autoload :PostgreSQL, 'gitlab/qa/component/postgresql'
|
111
|
-
autoload :Telegraf, 'gitlab/qa/component/telegraf'
|
112
|
-
end
|
113
|
-
|
114
|
-
module Support
|
115
|
-
autoload :GetRequest, 'gitlab/qa/support/get_request'
|
116
|
-
autoload :HttpRequest, 'gitlab/qa/support/http_request'
|
117
|
-
autoload :DevEEQAImage, 'gitlab/qa/support/dev_ee_qa_image'
|
118
|
-
autoload :InvalidResponseError, 'gitlab/qa/support/invalid_response_error'
|
119
|
-
end
|
120
|
-
|
121
|
-
module Docker
|
122
|
-
autoload :Command, 'gitlab/qa/docker/command'
|
123
|
-
autoload :Engine, 'gitlab/qa/docker/engine'
|
124
|
-
autoload :Shellout, 'gitlab/qa/docker/shellout'
|
125
|
-
autoload :Volumes, 'gitlab/qa/docker/volumes'
|
126
|
-
end
|
127
|
-
|
128
|
-
module Report
|
129
|
-
autoload :GitlabIssueClient, 'gitlab/qa/report/gitlab_issue_client'
|
130
|
-
autoload :GitlabIssueDryClient, 'gitlab/qa/report/gitlab_issue_dry_client'
|
131
|
-
autoload :BaseTestResults, 'gitlab/qa/report/base_test_results'
|
132
|
-
autoload :RelateFailureIssue, 'gitlab/qa/report/relate_failure_issue'
|
133
|
-
autoload :JsonTestResults, 'gitlab/qa/report/json_test_results'
|
134
|
-
autoload :JUnitTestResults, 'gitlab/qa/report/junit_test_results'
|
135
|
-
autoload :PrepareStageReports, 'gitlab/qa/report/prepare_stage_reports'
|
136
|
-
autoload :ReportAsIssue, 'gitlab/qa/report/report_as_issue'
|
137
|
-
autoload :ReportResults, 'gitlab/qa/report/report_results'
|
138
|
-
autoload :ResultsInIssues, 'gitlab/qa/report/results_in_issues'
|
139
|
-
autoload :ResultsInTestCases, 'gitlab/qa/report/results_in_testcases'
|
140
|
-
autoload :ResultsReporterShared, 'gitlab/qa/report/results_reporter_shared'
|
141
|
-
autoload :GenerateTestSession, 'gitlab/qa/report/generate_test_session'
|
142
|
-
autoload :SummaryTable, 'gitlab/qa/report/summary_table'
|
143
|
-
autoload :TestResult, 'gitlab/qa/report/test_result'
|
144
|
-
autoload :UpdateScreenshotPath, 'gitlab/qa/report/update_screenshot_path'
|
145
|
-
end
|
146
|
-
|
147
|
-
module Slack
|
148
|
-
autoload :PostToSlack, 'gitlab/qa/slack/post_to_slack'
|
149
|
-
end
|
8
|
+
loader = Zeitwerk::Loader.new
|
9
|
+
loader.push_dir("#{__dir__}/qa", namespace: Gitlab::QA)
|
10
|
+
|
11
|
+
loader.inflector.inflect(
|
12
|
+
'dev_ee_qa_image' => 'DevEEQAImage',
|
13
|
+
'results_in_testcases' => 'ResultsInTestCases',
|
14
|
+
'postgresql' => 'PostgreSQL',
|
15
|
+
'registry_with_cdn' => 'RegistryWithCDN',
|
16
|
+
'smtp' => 'SMTP',
|
17
|
+
'mtls' => 'MTLS',
|
18
|
+
'saml' => 'SAML',
|
19
|
+
'ce' => 'CE',
|
20
|
+
'ee' => 'EE',
|
21
|
+
'api' => 'API',
|
22
|
+
'ssh' => 'SSH',
|
23
|
+
'ssh_key' => 'SSHKey',
|
24
|
+
'ssh_keys' => 'SSHKeys',
|
25
|
+
'ecdsa' => 'ECDSA',
|
26
|
+
'ed25519' => 'ED25519',
|
27
|
+
'rsa' => 'RSA',
|
28
|
+
'ldap' => 'LDAP',
|
29
|
+
'ldap_tls' => 'LDAPTLS',
|
30
|
+
'ldap_no_tls' => 'LDAPNoTLS',
|
31
|
+
'ldap_no_server' => 'LDAPNoServer',
|
32
|
+
'rspec' => 'RSpec',
|
33
|
+
'web_ide' => 'WebIDE',
|
34
|
+
'ci_cd' => 'CiCd',
|
35
|
+
'project_imported_from_url' => 'ProjectImportedFromURL',
|
36
|
+
'repo_by_url' => 'RepoByURL',
|
37
|
+
'oauth' => 'OAuth',
|
38
|
+
'saml_sso_sign_in' => 'SamlSSOSignIn',
|
39
|
+
'saml_sso_sign_up' => 'SamlSSOSignUp',
|
40
|
+
'group_saml' => 'GroupSAML',
|
41
|
+
'instance_saml' => 'InstanceSAML',
|
42
|
+
'saml_sso' => 'SamlSSO',
|
43
|
+
'ldap_sync' => 'LDAPSync',
|
44
|
+
'ip_address' => 'IPAddress',
|
45
|
+
'gpg' => 'GPG',
|
46
|
+
'user_gpg' => 'UserGPG',
|
47
|
+
'otp' => 'OTP',
|
48
|
+
'jira_api' => 'JiraAPI',
|
49
|
+
'registry_tls' => 'RegistryTLS',
|
50
|
+
'jetbrains' => 'JetBrains',
|
51
|
+
'vscode' => 'VSCode',
|
52
|
+
'cli_commands' => 'CLICommands'
|
53
|
+
)
|
54
|
+
|
55
|
+
loader.setup
|
150
56
|
end
|
151
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-qa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab Quality
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|
@@ -206,6 +206,20 @@ dependencies:
|
|
206
206
|
- - '='
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 1.5.7
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: zeitwerk
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '2.4'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '2.4'
|
209
223
|
description:
|
210
224
|
email:
|
211
225
|
- gitlab-qa@gmail.com
|
@@ -320,8 +334,8 @@ files:
|
|
320
334
|
- lib/gitlab/qa/report/generate_test_session.rb
|
321
335
|
- lib/gitlab/qa/report/gitlab_issue_client.rb
|
322
336
|
- lib/gitlab/qa/report/gitlab_issue_dry_client.rb
|
337
|
+
- lib/gitlab/qa/report/j_unit_test_results.rb
|
323
338
|
- lib/gitlab/qa/report/json_test_results.rb
|
324
|
-
- lib/gitlab/qa/report/junit_test_results.rb
|
325
339
|
- lib/gitlab/qa/report/prepare_stage_reports.rb
|
326
340
|
- lib/gitlab/qa/report/relate_failure_issue.rb
|
327
341
|
- lib/gitlab/qa/report/report_as_issue.rb
|