gitlab-qa 7.16.1 → 7.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +1 -3
- data/lib/gitlab/qa/report/report_results.rb +4 -15
- 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: 3b5445d22b9e7e579cf2e2a9f545a956169f65e8b23fc5ef9e8d7e3e264af01c
|
4
|
+
data.tar.gz: 07b26a574d5b1ce71821a9ce2ec518ce7c350f9a7eb31802cb55cd24fce36010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0f09f5a5bad616dec344a44599b3b50bbfc3efe03ca197e0ad67daed0d365f7681b6a62c1697b4ab34bbd66992bd6b9149c875fddada2ee678a1c38da936580
|
7
|
+
data.tar.gz: 0eb8adba19d135389ea8c888472d55726339c76f430f667e9f6236e77f7239de283288c2284870365ca2b68a7aa2cf58957164cf17e8976344988f55fa2860b9
|
data/.gitlab-ci.yml
CHANGED
@@ -1333,7 +1333,7 @@ generate-allure-report:
|
|
1333
1333
|
cache:
|
1334
1334
|
policy: pull
|
1335
1335
|
before_script:
|
1336
|
-
-
|
1336
|
+
- export ALLURE_JOB_NAME="${ALLURE_JOB_NAME:-package-and-qa}"
|
1337
1337
|
rules:
|
1338
1338
|
# Don't run report generation on release pipelines
|
1339
1339
|
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab-qa" && $RELEASE == null'
|
@@ -1346,8 +1346,6 @@ generate-allure-report:
|
|
1346
1346
|
ALLURE_JOB_NAME: gitlab-qa
|
1347
1347
|
when: always
|
1348
1348
|
- if: '$TOP_UPSTREAM_SOURCE_PROJECT && $TOP_UPSTREAM_SOURCE_SHA'
|
1349
|
-
variables:
|
1350
|
-
ALLURE_JOB_NAME: package-and-qa
|
1351
1349
|
when: always
|
1352
1350
|
|
1353
1351
|
include:
|
@@ -5,13 +5,10 @@ module Gitlab
|
|
5
5
|
module Report
|
6
6
|
# Uses the API to create or update GitLab test cases and issues with the results of tests from RSpec report files.
|
7
7
|
class ReportResults < ReportAsIssue
|
8
|
-
|
9
|
-
attr_accessor :testcase_project_reporter, :results_issue_project_reporter, :files, :test_case_project, :results_issue_project, :gitlab, :old_testcase_project_reporter
|
8
|
+
attr_accessor :testcase_project_reporter, :results_issue_project_reporter, :files, :test_case_project, :results_issue_project, :gitlab
|
10
9
|
|
11
10
|
def initialize(token:, input_files:, test_case_project:, results_issue_project:, dry_run: false, **kwargs)
|
12
11
|
@testcase_project_reporter = Gitlab::QA::Report::ResultsInTestCases.new(token: token, input_files: input_files, project: test_case_project, dry_run: dry_run, **kwargs)
|
13
|
-
# TODO: Remove the line below once all test case links are updated to the gitlab project. See https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/1079
|
14
|
-
@old_testcase_project_reporter = Gitlab::QA::Report::ResultsInTestCases.new(token: token, input_files: input_files, project: results_issue_project, dry_run: dry_run, **kwargs)
|
15
12
|
@results_issue_project_reporter = Gitlab::QA::Report::ResultsInIssues.new(token: token, input_files: input_files, project: results_issue_project, dry_run: dry_run, **kwargs)
|
16
13
|
@test_case_project = test_case_project
|
17
14
|
@results_issue_project = results_issue_project
|
@@ -45,26 +42,18 @@ module Gitlab
|
|
45
42
|
private
|
46
43
|
|
47
44
|
def report_test(test)
|
48
|
-
|
49
|
-
# once all test case links are updated to the gitlab project. See https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/1079
|
50
|
-
correct_testcase_project_reporter = using_old_testcase_link(test) ? old_testcase_project_reporter : testcase_project_reporter
|
51
|
-
|
52
|
-
testcase = correct_testcase_project_reporter.find_or_create_testcase(test)
|
45
|
+
testcase = testcase_project_reporter.find_or_create_testcase(test)
|
53
46
|
# The API returns the test case with an issue URL since it is technically a type of issue.
|
54
47
|
# This updates the URL to a valid test case link.
|
55
48
|
test.testcase = testcase.web_url.sub('/issues/', '/quality/test_cases/')
|
56
49
|
|
57
50
|
issue, is_new = results_issue_project_reporter.get_related_issue(testcase, test)
|
58
51
|
|
59
|
-
|
52
|
+
testcase_project_reporter.add_issue_link_to_testcase(testcase, issue, test) if is_new
|
60
53
|
|
61
|
-
|
54
|
+
testcase_project_reporter.update_testcase(testcase, test)
|
62
55
|
results_issue_project_reporter.update_issue(issue, test)
|
63
56
|
end
|
64
|
-
|
65
|
-
def using_old_testcase_link(test)
|
66
|
-
test.testcase&.include?(results_issue_project)
|
67
|
-
end
|
68
57
|
end
|
69
58
|
end
|
70
59
|
end
|
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.
|
4
|
+
version: 7.17.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: 2021-12-
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|