gitlab-qa 7.22.0 → 7.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/what_tests_can_be_run.md +1 -0
- data/lib/gitlab/qa/report/generate_test_session.rb +1 -1
- data/lib/gitlab/qa/runtime/env.rb +18 -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: 8b84d309cb564568e54d7247df7a6af8d8bc2290953e3b33c72531a153415cf4
|
4
|
+
data.tar.gz: 9270ff23791f40e767cf05a59c08c07e6c6ee53b9f0a3b26a4c9017f3e6809ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc7d787a61d9608ab97e402c42a440acc9751022c5e323a572be6299742411d43470dfe9155207cc46dd18561fab53a1b81340f7c388efeb8fa1695dca623871
|
7
|
+
data.tar.gz: '04599e2bfac686c3452093d8e356fabaaff705a31c11e8c934bafc8ece1df91cce1defe5b20f5cc1fba83ec3de2d4a52e4885634440946a4c60863dc067a37da'
|
@@ -82,6 +82,7 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
|
|
82
82
|
| `QA_INFLUXDB_URL` |- | Influxdb url for test metrics reporting | No|
|
83
83
|
| `QA_INFLUXDB_TOKEN` |- | Influxdb token for test metrics reporting | No|
|
84
84
|
| `QA_RUN_TYPE` |- | QA run type like `staging-full`, `canary`, `production` etc. Used in test metrics reporting | No|
|
85
|
+
| `QA_VALIDATE_RESOURCE_REUSE` | `false` | Set to `true` to [validate resource reuse](https://docs.gitlab.com/ee/development/testing_guide/end_to_end/resources.html#reusable-resources) after a test suite | No |
|
85
86
|
| `GITHUB_USERNAME` |- | Username for authenticating with GitHub. | No|
|
86
87
|
| `GITHUB_PASSWORD` |- | Password for authenticating with GitHub. | No|
|
87
88
|
| `GITLAB_QA_LOOP_RUNNER_MINUTES` | `1` | Minutes to run and repeat a spec while using the '--loop' option; default value is 1 minute. | No|
|
@@ -25,7 +25,7 @@ module Gitlab
|
|
25
25
|
end
|
26
26
|
|
27
27
|
issue = gitlab.create_issue(
|
28
|
-
title: "#{Time.now.strftime('%Y-%m-%d')} Test session report | #{
|
28
|
+
title: "#{Time.now.strftime('%Y-%m-%d')} Test session report | #{Runtime::Env.qa_run_type}",
|
29
29
|
description: generate_description(tests),
|
30
30
|
labels: ['Quality', 'QA', 'triage report', pipeline_name_label]
|
31
31
|
)
|
@@ -42,6 +42,7 @@ module Gitlab
|
|
42
42
|
'QA_INFLUXDB_TOKEN' => :qa_influxdb_token,
|
43
43
|
'QA_RUN_TYPE' => :qa_run_type,
|
44
44
|
'QA_SKIP_PULL' => :qa_skip_pull,
|
45
|
+
'QA_VALIDATE_RESOURCE_REUSE' => :qa_validate_resource_reuse,
|
45
46
|
'GITLAB_API_BASE' => :api_base,
|
46
47
|
'GITLAB_ADMIN_USERNAME' => :admin_username,
|
47
48
|
'GITLAB_ADMIN_PASSWORD' => :admin_password,
|
@@ -306,6 +307,23 @@ module Gitlab
|
|
306
307
|
enabled?(env_var_value_if_defined('QA_EXPORT_TEST_METRICS'), default: true)
|
307
308
|
end
|
308
309
|
|
310
|
+
def qa_run_type
|
311
|
+
return env_var_value_if_defined('QA_RUN_TYPE') if env_var_value_valid?('QA_RUN_TYPE')
|
312
|
+
|
313
|
+
live_envs = %w[staging staging-canary staging-ref canary preprod production]
|
314
|
+
return unless live_envs.include?(ci_project_name)
|
315
|
+
|
316
|
+
test_subset = if env_var_value_if_defined('NO_ADMIN') == 'true'
|
317
|
+
'sanity-no-admin'
|
318
|
+
elsif env_var_value_if_defined('SMOKE_ONLY') == 'true'
|
319
|
+
'sanity'
|
320
|
+
else
|
321
|
+
'full'
|
322
|
+
end
|
323
|
+
|
324
|
+
"#{ci_project_name}-#{test_subset}"
|
325
|
+
end
|
326
|
+
|
309
327
|
private
|
310
328
|
|
311
329
|
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: 7.22.
|
4
|
+
version: 7.22.1
|
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-02-
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|