gitlab-qa 15.0.0 → 15.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/what_tests_can_be_run.md +0 -15
- data/lib/gitlab/qa/component/specs.rb +14 -6
- 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
@@ -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 :
|
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)
|
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:
|
11
|
+
date: 2025-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|