gitlab-qa 7.16.1 → 7.17.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: 025a32906db8c2ddc296e638c08d4d78e3d9d4dcb2c80c2b1a28772e819e8748
4
- data.tar.gz: 4c7e61f511f27a75e4e035553f72fb38aab26460b0ead21c3574acb2a9b1a2c4
3
+ metadata.gz: 3b5445d22b9e7e579cf2e2a9f545a956169f65e8b23fc5ef9e8d7e3e264af01c
4
+ data.tar.gz: 07b26a574d5b1ce71821a9ce2ec518ce7c350f9a7eb31802cb55cd24fce36010
5
5
  SHA512:
6
- metadata.gz: 18ec099f17557d2bf50b270b5e086f81952fca84aa3ffa9a8b376d3fcd19a08ab770405a85118be35f642e0d3097898b8f0fb9cfc3339eabf95eaa0b4207d6ad
7
- data.tar.gz: 5122d793ec7d8e2c4dfd8a29157e03f1595984bf83041c0c010971917e70a6180c06b81ec6b6d601a9a15a235ad312d9caa14ba241c70d348f450d725b7756c5
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
- - echo "Generating and publishing allure test report"
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
- # TODO: Remove old_testcase_project_reporter once all test case links are updated to the gitlab project. See https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/1079
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
- # TODO: Remove the line below and replace correct_testcase_project_reporter with testcase_project_reporter
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
- correct_testcase_project_reporter.add_issue_link_to_testcase(testcase, issue, test) if is_new
52
+ testcase_project_reporter.add_issue_link_to_testcase(testcase, issue, test) if is_new
60
53
 
61
- correct_testcase_project_reporter.update_testcase(testcase, test)
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
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '7.16.1'.freeze
3
+ VERSION = '7.17.0'.freeze
4
4
  end
5
5
  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: 7.16.1
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-10 00:00:00.000000000 Z
11
+ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control