gitlab-qa 15.0.0 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9382f0cd194cff2449dde64bb2df1726490adedcd2092ba2dbf86f13b29cc61
4
- data.tar.gz: 5cd6ade9b04efc469c5f150d7f6d9fb542aa176858dd24be6d5cffb54625d32a
3
+ metadata.gz: 793b59a3d3817c1e3fa0794cfceaf8f80bc7a193e46e9ce3704ce8b8301e9143
4
+ data.tar.gz: 299f7ce902fd8b9603cda51c2f5f018ff5c7a230b01944ca99c0eea9168ccc0a
5
5
  SHA512:
6
- metadata.gz: ec4030accb53dc9962aa48df455f1f5537fdc5549b94d5c4224f223bbe27d98a1c9fcca1b4381d79053710aac1eb450298f3782c8a2b53902fba865eda4da5ef
7
- data.tar.gz: 85f0e1f30d57a5d86f94e612cdfe0c1ccb981ea9e12db6433db433301a7ea6836cfc61a83368d7fdc3d3470b917f67e09ce51c2eb095bb39acd0aad1125a04cf
6
+ metadata.gz: 253cc2d2d41a94030bcb6c0b5a0225ff46ff9019677b8b1486104ee556fb219ecda07bbe724c51ed822699c0e2c2ccc0273795b122e810971bc956aa16af14ee
7
+ data.tar.gz: eb4f3be8907209202af1aa51f9c1b8c70523645f31afdda60a294bbe7972ec769c1199fb8ca7075b46c862ad3161b1e3d5bd2369a2fe587a929bc2052f7ee208
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (15.0.0)
4
+ gitlab-qa (15.2.0)
5
5
  activesupport (>= 6.1, < 7.2)
6
6
  ffi (~> 1.17)
7
7
  gitlab (~> 4.19)
@@ -244,21 +244,6 @@ And the following would run all Create API tests as well as UI tests:
244
244
  $ gitlab-qa Test::Instance::Image EE -- qa/specs/features/browser_ui/3_create qa/specs/features/api/3_create
245
245
  ```
246
246
 
247
- ### Running tests for transient bugs
248
-
249
- A suite of tests have been written to test for [transient bugs](https://about.gitlab.com/handbook/engineering/quality/issue-triage/#transient-bugs).
250
- Those tests are tagged `:transient` and therefore can be run via:
251
-
252
- ```shell
253
- $ gitlab-qa Test::Instance::Image EE -- --tag transient
254
- ```
255
-
256
- If you would like to run the transient bug tests against a specific GitLab instance such as your GDK, you can use the following command:
257
-
258
- ```shell
259
- $ gitlab-qa Test::Instance::Any EE https://your.instance.gitlab -- --tag transient
260
- ```
261
-
262
247
  ## Examples
263
248
 
264
249
  ### `Test::Instance::Image CE|EE|<full image address>`
@@ -15,8 +15,7 @@ module Gitlab
15
15
  class Specs < Scenario::Template
16
16
  LAST_RUN_FILE = "examples.txt"
17
17
 
18
- attr_accessor :suite,
19
- :release,
18
+ attr_accessor :release,
20
19
  :network,
21
20
  :args,
22
21
  :volumes,
@@ -27,6 +26,8 @@ module Gitlab
27
26
  :retry_failed_specs,
28
27
  :infer_qa_image_from_release
29
28
 
29
+ attr_reader :suite
30
+
30
31
  def initialize
31
32
  @docker = Docker::Engine.new(stream_output: true) # stream test output directly instead of through logger
32
33
  @env = {}
@@ -34,11 +35,9 @@ module Gitlab
34
35
  @additional_hosts = []
35
36
  @volumes = { '/var/run/docker.sock' => '/var/run/docker.sock' }
36
37
  @retry_failed_specs = Runtime::Env.retry_failed_specs?
38
+ @suite = Runtime::Env.suite_class_name
37
39
 
38
- include_optional_volumes(
39
- Runtime::Env.qa_rspec_report_path => 'rspec',
40
- Runtime::Env.qa_knapsack_report_path => 'knapsack'
41
- )
40
+ include_optional_volumes(Runtime::Env.qa_rspec_report_path => 'rspec')
42
41
  end
43
42
 
44
43
  def perform
@@ -76,6 +75,15 @@ module Gitlab
76
75
  run_specs(name, retry_process: true, initial_run_results_host_path: results_file)
77
76
  end
78
77
 
78
+ def suite=(suite)
79
+ if @suite
80
+ Runtime::Logger.info("E2E test suite already set to `#{@suite}` via environment variable")
81
+ Runtime::Logger.info("Ignoring value being set to `#{suite}`")
82
+ else
83
+ @suite = suite
84
+ end
85
+ end
86
+
79
87
  private
80
88
 
81
89
  # Ful path to tmp dir inside container
@@ -480,6 +480,10 @@ module Gitlab
480
480
  enabled?(env_var_value_if_defined('QA_GITALY_TRANSACTIONS_ENABLED'), default: false)
481
481
  end
482
482
 
483
+ def suite_class_name
484
+ ENV.fetch("QA_SUITE_CLASS_NAME", nil)
485
+ end
486
+
483
487
  private
484
488
 
485
489
  def enabled?(value, default: true)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '15.0.0'
5
+ VERSION = '15.2.0'
6
6
  end
7
7
  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: 15.0.0
4
+ version: 15.2.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: 2024-12-16 00:00:00.000000000 Z
11
+ date: 2025-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control