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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2da1e99ac1095fa5fdf7957a6d410be0d87147448008d157a297ac3dccf07372
4
- data.tar.gz: d023d3fd12d927539f8d98e27fad01f679412902ba70c57d902475f7371c061c
3
+ metadata.gz: '0982270bb1256eb950e30c84028a70fca0663c744fff1bf00cb1937f89936f43'
4
+ data.tar.gz: c2051a27b8027df5d47359a6b27a54338e25bfc37471dae2fe600087e118b392
5
5
  SHA512:
6
- metadata.gz: bd5d590c1c0a108fc6d53bf58107cff1fdda671bb3c091a039e089e8b7983b81c630b56c8bea18a0959d67fc0486de5f2dbfd37eda6b88390d0ea7edb3c83b66
7
- data.tar.gz: 40b458826df1197871a7c4b630cd38dbe1b3591f7d2405a1f3113a18d61814c9728d98be4158c70f3c741140c2f5bf7d828ec6de873cbb75208fe315e52ff545
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 2021-09-17 06:55:33 UTC using RuboCop version 0.93.1.
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: 165
9
+ # Offense count: 199
10
10
  # Cop supports --auto-correct.
11
11
  CodeReuse/ActiveRecord:
12
12
  Enabled: false
13
13
 
14
- # Offense count: 2
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: 10
46
+ # Offense count: 21
48
47
  # Configuration parameters: IgnoredMethods.
49
48
  Metrics/AbcSize:
50
- Max: 26
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/dev_eeqa_image_spec.rb'
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: 3
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: 126
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: 192
147
+ Max: 189
data/Gemfile.lock CHANGED
@@ -1,13 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (7.36.0)
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.2.33
249
+ 2.3.9
@@ -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
@@ -34,4 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_runtime_dependency 'nokogiri', '~> 1.10'
35
35
  spec.add_runtime_dependency 'rainbow', '~> 3.0.0'
36
36
  spec.add_runtime_dependency 'table_print', '1.5.7'
37
+ spec.add_runtime_dependency 'zeitwerk', '~> 2.4'
37
38
  end
@@ -229,7 +229,7 @@ module Gitlab
229
229
  end
230
230
 
231
231
  def elastic_version
232
- env_var_value_if_defined('ELASTIC_VERSION') || '7.17.0'
232
+ env_var_value_if_defined('ELASTIC_VERSION') || '8.2.0'
233
233
  end
234
234
 
235
235
  def require_license!
@@ -61,7 +61,7 @@ module Gitlab
61
61
  logger.formatter = proc do |severity, datetime, progname, msg|
62
62
  msg_prefix = message_prefix(datetime, source, severity)
63
63
 
64
- "#{msg_prefix}#{msg}\n"
64
+ "#{msg_prefix}#{msg}\n".gsub(/\e\[(\d+)(?:;\d+)*m/, "")
65
65
  end
66
66
  end
67
67
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '7.36.0'
5
+ VERSION = '8.0.0'
6
6
  end
7
7
  end
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
- autoload :Release, 'gitlab/qa/release'
8
- autoload :Reporter, 'gitlab/qa/reporter'
9
- autoload :Runner, 'gitlab/qa/runner'
10
- autoload :TestLogger, 'gitlab/qa/test_logger'
11
-
12
- module Runtime
13
- autoload :Env, 'gitlab/qa/runtime/env'
14
- autoload :Scenario, 'gitlab/qa/runtime/scenario'
15
- autoload :TokenFinder, 'gitlab/qa/runtime/token_finder'
16
- autoload :OmnibusConfiguration, 'gitlab/qa/runtime/omnibus_configuration'
17
- autoload :Logger, 'gitlab/qa/runtime/logger'
18
-
19
- module OmnibusConfigurations
20
- autoload :Default, 'gitlab/qa/runtime/omnibus_configurations/default'
21
- autoload :Packages, 'gitlab/qa/runtime/omnibus_configurations/packages'
22
- autoload :ObjectStorage, 'gitlab/qa/runtime/omnibus_configurations/object_storage'
23
- autoload :ObjectStorageAws, 'gitlab/qa/runtime/omnibus_configurations/object_storage_aws'
24
- autoload :ObjectStorageGcs, 'gitlab/qa/runtime/omnibus_configurations/object_storage_gcs'
25
- autoload :LicenseMode, 'gitlab/qa/runtime/omnibus_configurations/license_mode'
26
- autoload :RegistryObjectStorage, 'gitlab/qa/runtime/omnibus_configurations/registry_object_storage'
27
- autoload :DecompositionSingleDb, 'gitlab/qa/runtime/omnibus_configurations/decomposition_single_db'
28
- autoload :DecompositionMultipleDb, 'gitlab/qa/runtime/omnibus_configurations/decomposition_multiple_db'
29
- end
30
- end
31
-
32
- module Scenario
33
- autoload :Actable, 'gitlab/qa/scenario/actable'
34
- autoload :Template, 'gitlab/qa/scenario/template'
35
- autoload :CLICommands, 'gitlab/qa/scenario/cli_commands'
36
-
37
- module Test
38
- module Instance
39
- autoload :Any, 'gitlab/qa/scenario/test/instance/any'
40
- autoload :DeploymentBase, 'gitlab/qa/scenario/test/instance/deployment_base'
41
- autoload :Image, 'gitlab/qa/scenario/test/instance/image'
42
- autoload :RelativeUrl, 'gitlab/qa/scenario/test/instance/relative_url'
43
- autoload :RepositoryStorage, 'gitlab/qa/scenario/test/instance/repository_storage'
44
- autoload :Staging, 'gitlab/qa/scenario/test/instance/staging'
45
- autoload :StagingRef, 'gitlab/qa/scenario/test/instance/staging_ref'
46
- autoload :Production, 'gitlab/qa/scenario/test/instance/production'
47
- autoload :Smoke, 'gitlab/qa/scenario/test/instance/smoke'
48
- autoload :Preprod, 'gitlab/qa/scenario/test/instance/preprod'
49
- autoload :Release, 'gitlab/qa/scenario/test/instance/release'
50
- autoload :Geo, 'gitlab/qa/scenario/test/instance/geo'
51
- autoload :StagingGeo, 'gitlab/qa/scenario/test/instance/staging_geo'
52
- autoload :StagingRefGeo, 'gitlab/qa/scenario/test/instance/staging_ref_geo'
53
- autoload :Airgapped, 'gitlab/qa/scenario/test/instance/airgapped'
54
- end
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: 7.36.0
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-16 00:00:00.000000000 Z
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