gitlab-qa 13.1.0 → 13.2.1

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: 16a2d1d19d2421861d4698ef692926f2fa15cc9f4081e39d1ca7e4da46a8ba7c
4
- data.tar.gz: 0c65e2931b680e7737df751f702943e40851ac207afcb3be7a01765ec2b47291
3
+ metadata.gz: 9c623075f415ee608143ece59eaf3427ade2a7a0da0fd6c265c7429c841d8cad
4
+ data.tar.gz: d8a0a4923e127e1b289780a318a2a3f9479f4fa9b96c3651bb9fd54a095b06e6
5
5
  SHA512:
6
- metadata.gz: 81c553e7373d1fc790429dd8e4e9c1538e7c2a6afc382b7b79170c0edb6b8b83c4f533a60746defc313c846ab92fb4505f84899f3eede1f21bcdcdc586e7b90c
7
- data.tar.gz: 492ad5e00e24b345ab1ac724dcf059c9520d992df141a03b413b674262720138a724ed44d633b9d9a926f40471aa44744994b8dcf38eee8753d03728ad3c715e
6
+ metadata.gz: 69d9bd5a8d29af6d7d9d4dd0be074da1052b518211a95f248abe9ad45f78bd2485ec6fb7a94ad659479ad705f6b7053ac896ee4c68c709dea8df9e2e45436bdb
7
+ data.tar.gz: e350f3fe1df2ad7dbb76c0beddfc021f7071e003fffdfe468f46d79a7ed0045b6b1e373da7f24f22af45b8c4c1c4b572f356b9bd08c3a608fa8ce33e8ab384ac
data/.gitlab-ci.yml CHANGED
@@ -8,10 +8,10 @@
8
8
  - vendor/ruby
9
9
 
10
10
  include:
11
- - project: 'gitlab-org/quality/pipeline-common'
12
- file:
13
- - '/ci/gem-release.yml'
14
- - '/ci/danger-review.yml'
11
+ - component: gitlab.com/gitlab-org/components/danger-review/danger-review@~latest
12
+ inputs:
13
+ job_image: "${CI_REGISTRY}/gitlab-org/gitlab-build-images/debian-bullseye-ruby-${RUBY_VERSION}:bundler-2.4"
14
+ - component: gitlab.com/gitlab-org/components/gem-release/gem-release@~latest
15
15
 
16
16
  stages:
17
17
  - check
@@ -97,7 +97,6 @@ cache-gems:
97
97
  - Gemfile.lock
98
98
 
99
99
  danger-review:
100
- image: ${CI_REGISTRY}/gitlab-org/gitlab-build-images/debian-bullseye-ruby-${RUBY_VERSION}:bundler-2.4
101
100
  stage: check
102
101
  needs:
103
102
  - job: cache-gems
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (13.1.0)
5
- activesupport (>= 6.1, < 7.1)
4
+ gitlab-qa (13.2.1)
5
+ activesupport (>= 6.1, < 7.2)
6
6
  gitlab (~> 4.19)
7
7
  http (~> 5.0)
8
8
  nokogiri (~> 1.10)
@@ -14,16 +14,23 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activesupport (7.0.5.1)
17
+ activesupport (7.1.2)
18
+ base64
19
+ bigdecimal
18
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
21
+ connection_pool (>= 2.2.5)
22
+ drb
19
23
  i18n (>= 1.6, < 2)
20
24
  minitest (>= 5.1)
25
+ mutex_m
21
26
  tzinfo (~> 2.0)
22
27
  addressable (2.8.1)
23
28
  public_suffix (>= 2.0.2, < 6.0)
24
29
  ast (2.4.2)
25
30
  backport (1.2.0)
31
+ base64 (0.2.0)
26
32
  benchmark (0.2.0)
33
+ bigdecimal (3.1.5)
27
34
  byebug (11.1.3)
28
35
  claide (1.1.0)
29
36
  claide-plugins (0.9.2)
@@ -33,7 +40,8 @@ GEM
33
40
  climate_control (1.0.1)
34
41
  coderay (1.1.3)
35
42
  colored2 (3.1.2)
36
- concurrent-ruby (1.1.10)
43
+ concurrent-ruby (1.2.2)
44
+ connection_pool (2.4.1)
37
45
  cork (0.3.0)
38
46
  colored2 (~> 3.1)
39
47
  crack (0.4.5)
@@ -58,6 +66,8 @@ GEM
58
66
  docile (1.4.0)
59
67
  domain_name (0.5.20190701)
60
68
  unf (>= 0.0.5, < 1.0.0)
69
+ drb (2.2.0)
70
+ ruby2_keywords
61
71
  e2mmap (0.1.0)
62
72
  faraday (1.10.2)
63
73
  faraday-em_http (~> 1.0)
@@ -115,7 +125,7 @@ GEM
115
125
  httparty (0.20.0)
116
126
  mime-types (~> 3.0)
117
127
  multi_xml (>= 0.5.2)
118
- i18n (1.12.0)
128
+ i18n (1.14.1)
119
129
  concurrent-ruby (~> 1.0)
120
130
  jaro_winkler (1.5.4)
121
131
  json (2.6.3)
@@ -132,9 +142,10 @@ GEM
132
142
  mime-types-data (~> 3.2015)
133
143
  mime-types-data (3.2022.0105)
134
144
  mini_portile2 (2.8.0)
135
- minitest (5.16.3)
145
+ minitest (5.21.1)
136
146
  multi_xml (0.6.0)
137
147
  multipart-post (2.2.3)
148
+ mutex_m (0.2.0)
138
149
  nap (1.1.0)
139
150
  no_proxy_fix (0.1.2)
140
151
  nokogiri (1.13.9)
@@ -242,7 +253,7 @@ GEM
242
253
  thor (1.2.1)
243
254
  tilt (2.0.11)
244
255
  timecop (0.9.6)
245
- tzinfo (2.0.5)
256
+ tzinfo (2.0.6)
246
257
  concurrent-ruby (~> 1.0)
247
258
  unf (0.1.4)
248
259
  unf_ext
@@ -0,0 +1,9 @@
1
+ # Environment Setup | Users
2
+
3
+ Most tests ([orchestrated and instance-level](../docs/what_tests_can_be_run.md#the-two-types-of-qa-tests)) [run as the default `root` user](https://gitlab.com/gitlab-org/gitlab/-/blob/3f247bf0d6d24b479b7f169f9c14068968d9672a/qa/qa/runtime/user.rb#L16). However, some require additional users. If the test framework has administrator access to the test environment it can create users itself. If administrator access is not available you will need to create users before being able to run certain tests.
4
+
5
+ ## Disable email verification
6
+
7
+ If [email verification](https://docs.gitlab.com/ee/security/email_verification.html) is enabled on the test environment (via the `require_email_verification` feature flag), a user cannot log in under certain conditions (e.g., logging in the first time from a new location) unless they enter a verification code that is sent to their email address.
8
+
9
+ To disable email verification you can disable the `require_email_verification` feature flag, which will disable email verification for all users on the instance. Alternatively, you can skip verification for individual users by enabling the `skip_require_email_verification` feature flag for that user.
@@ -1183,10 +1183,6 @@ This scenario spins up a GitLab Omnibus instance integrated with a test AI Gatew
1183
1183
  - `QA_EE_ACTIVATION_CODE`: An activation code for a Staging-generated Premium or Ultimate cloud license with a purchased AI add-on. This can be found in the GitLab QA 1Password vault.
1184
1184
  - `GITLAB_LICENSE_MODE`: Set to `test` in order to configure GitLab Omnibus with the correct license mode and `CUSTOMER_PORTAL_URL`.
1185
1185
 
1186
- **Optional environment variables:**
1187
-
1188
- - `QA_USE_SYNC_SERVICE_TOKEN_WORKER`: When true, will enable the `use_sync_service_token_worker` feature flag during code suggestions setup to use the `SyncServiceTokenWorker` to fetch a code suggestions JWT during activation instead of the `SyncSeatLinkWorker`. See rollout issue https://gitlab.com/gitlab-org/gitlab/-/issues/431608 for details.
1189
-
1190
1186
  Example:
1191
1187
 
1192
1188
  ```shell
data/gitlab-qa.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency 'timecop', '~> 0.9.5'
37
37
  spec.add_development_dependency 'webmock', '3.7.0'
38
38
 
39
- spec.add_runtime_dependency 'activesupport', '>= 6.1', '< 7.1'
39
+ spec.add_runtime_dependency 'activesupport', '>= 6.1', '< 7.2'
40
40
  spec.add_runtime_dependency 'gitlab', '~> 4.19'
41
41
  spec.add_runtime_dependency 'http', '~> 5.0'
42
42
  spec.add_runtime_dependency 'nokogiri', '~> 1.10'
@@ -13,11 +13,10 @@ module Gitlab
13
13
 
14
14
  def configure_environment(gitlab_hostname:)
15
15
  @environment = {
16
- 'GITLAB_URL' => "http://#{gitlab_hostname}",
17
- 'GITLAB_API_URL' => "http://#{gitlab_hostname}/api/v4",
18
- 'CUSTOMER_PORTAL_BASE_URL' => Runtime::Env.customer_portal_url,
19
- 'USE_FAKE_MODELS' => true,
20
- 'USE_LOCAL_CACHE' => true
16
+ 'AIGW_GITLAB_URL' => "http://#{gitlab_hostname}",
17
+ 'AIGW_GITLAB_API_URL' => "http://#{gitlab_hostname}/api/v4",
18
+ 'AIGW_CUSTOMER_PORTAL_URL' => Runtime::Env.customer_portal_url,
19
+ 'AIGW_USE_FAKE_MODELS' => true
21
20
  }
22
21
  end
23
22
  end
@@ -432,10 +432,6 @@ module Gitlab
432
432
  env_var_value_if_defined('QA_EE_ACTIVATION_CODE')
433
433
  end
434
434
 
435
- def use_sync_service_token_worker?
436
- enabled?(env_var_value_if_defined('QA_USE_SYNC_SERVICE_TOKEN_WORKER'), default: false)
437
- end
438
-
439
435
  def geo_staging_url
440
436
  env_var_value_if_defined('GEO_STAGING_URL') || 'https://geo.staging.gitlab.com'
441
437
  end
@@ -42,10 +42,6 @@ module Gitlab
42
42
 
43
43
  gitlab.omnibus_gitlab_rails_env['CODE_SUGGESTIONS_BASE_URL'] = "http://#{@ai_gateway_hostname}:#{@ai_gateway_port}"
44
44
 
45
- # Determines whether to use the SyncServiceTokenWorker or SyncSeatLinkWorker
46
- # for generating a code suggestions access token during license activation
47
- gitlab.omnibus_gitlab_rails_env['QA_USE_SYNC_SERVICE_TOKEN_WORKER'] = Runtime::Env.use_sync_service_token_worker?
48
-
49
45
  gitlab.set_ee_activation_code
50
46
  end
51
47
 
@@ -29,7 +29,7 @@ module Gitlab
29
29
  console_log = console_logger(level: level, source: source)
30
30
  file_log = file_logger(source: source, path: path)
31
31
 
32
- console_log.extend(ActiveSupport::Logger.broadcast(file_log))
32
+ ActiveSupport::BroadcastLogger.new(console_log, file_log)
33
33
  end
34
34
 
35
35
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '13.1.0'
5
+ VERSION = '13.2.1'
6
6
  end
7
7
  end
@@ -3,11 +3,6 @@
3
3
  class CodeSuggestionsSetup
4
4
  class << self
5
5
  def configure!
6
- if ENV.fetch('QA_USE_SYNC_SERVICE_TOKEN_WORKER', false)
7
- puts 'Enabling use_sync_service_token_worker feature flag...'
8
- Feature.enable(:use_sync_service_token_worker)
9
- end
10
-
11
6
  puts 'Enabling code_suggestions_tokens_api feature flag...'
12
7
  Feature.enable(:code_suggestions_tokens_api)
13
8
 
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: 13.1.0
4
+ version: 13.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-14 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -201,7 +201,7 @@ dependencies:
201
201
  version: '6.1'
202
202
  - - "<"
203
203
  - !ruby/object:Gem::Version
204
- version: '7.1'
204
+ version: '7.2'
205
205
  type: :runtime
206
206
  prerelease: false
207
207
  version_requirements: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ dependencies:
211
211
  version: '6.1'
212
212
  - - "<"
213
213
  - !ruby/object:Gem::Version
214
- version: '7.1'
214
+ version: '7.2'
215
215
  - !ruby/object:Gem::Dependency
216
216
  name: gitlab
217
217
  requirement: !ruby/object:Gem::Requirement
@@ -328,7 +328,7 @@ dependencies:
328
328
  - - "<"
329
329
  - !ruby/object:Gem::Version
330
330
  version: '3'
331
- description:
331
+ description:
332
332
  email:
333
333
  - gitlab-qa@gmail.com
334
334
  executables:
@@ -365,6 +365,7 @@ files:
365
365
  - docs/developer/http_mocking.md
366
366
  - docs/developer/ssl.md
367
367
  - docs/developer/style_guide.md
368
+ - docs/environment_setup/users.md
368
369
  - docs/how_it_works.md
369
370
  - docs/omnibus_configurations/license_mode.md
370
371
  - docs/release_process.md
@@ -516,7 +517,7 @@ homepage: http://about.gitlab.com/
516
517
  licenses:
517
518
  - MIT
518
519
  metadata: {}
519
- post_install_message:
520
+ post_install_message:
520
521
  rdoc_options: []
521
522
  require_paths:
522
523
  - lib
@@ -531,8 +532,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
531
532
  - !ruby/object:Gem::Version
532
533
  version: '0'
533
534
  requirements: []
534
- rubygems_version: 3.1.6
535
- signing_key:
535
+ rubygems_version: 3.3.26
536
+ signing_key:
536
537
  specification_version: 4
537
538
  summary: Integration tests for GitLab
538
539
  test_files: []