gitlab-qa 15.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab/qa/component/specs.rb +13 -2
- data/lib/gitlab/qa/runtime/env.rb +4 -0
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 793b59a3d3817c1e3fa0794cfceaf8f80bc7a193e46e9ce3704ce8b8301e9143
|
|
4
|
+
data.tar.gz: 299f7ce902fd8b9603cda51c2f5f018ff5c7a230b01944ca99c0eea9168ccc0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 253cc2d2d41a94030bcb6c0b5a0225ff46ff9019677b8b1486104ee556fb219ecda07bbe724c51ed822699c0e2c2ccc0273795b122e810971bc956aa16af14ee
|
|
7
|
+
data.tar.gz: eb4f3be8907209202af1aa51f9c1b8c70523645f31afdda60a294bbe7972ec769c1199fb8ca7075b46c862ad3161b1e3d5bd2369a2fe587a929bc2052f7ee208
|
data/Gemfile.lock
CHANGED
|
@@ -15,8 +15,7 @@ module Gitlab
|
|
|
15
15
|
class Specs < Scenario::Template
|
|
16
16
|
LAST_RUN_FILE = "examples.txt"
|
|
17
17
|
|
|
18
|
-
attr_accessor :
|
|
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,6 +35,7 @@ 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
40
|
include_optional_volumes(Runtime::Env.qa_rspec_report_path => 'rspec')
|
|
39
41
|
end
|
|
@@ -73,6 +75,15 @@ module Gitlab
|
|
|
73
75
|
run_specs(name, retry_process: true, initial_run_results_host_path: results_file)
|
|
74
76
|
end
|
|
75
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
|
+
|
|
76
87
|
private
|
|
77
88
|
|
|
78
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)
|
data/lib/gitlab/qa/version.rb
CHANGED
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.
|
|
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: 2025-01-
|
|
11
|
+
date: 2025-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|