gitlab_quality-test_tooling 1.29.0 → 1.29.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca3b15faac90436068b21df05071cbcd06dd1a71d33b3220a58d17201a893a2d
4
- data.tar.gz: dee6c41cfe097f6af193890eee46a95a17f1fa7724377fb8529f75142931bbb1
3
+ metadata.gz: 523cbb3e59a928b4e438ec2f97818c6b756b5120d9d61ede7945bd5904de4b79
4
+ data.tar.gz: 750bb848167c76df6f6287d119eb211fa8281abfade44334ca1cb72142b03361
5
5
  SHA512:
6
- metadata.gz: ab45b4d7059cfb911b103f952f0e072dd578057a24fb539ac322087b09d4cd646ecdeb0c7a528427cd378f67a056d374a663c1effb62945a2001b18fea26af8c
7
- data.tar.gz: 387923350e8554c3fd99d17d3a1ea502768d4cfc251805a5c76a17bca950ef28e616ec161eb329c0482b678f5e3a037c3235ca6562eb93008e57c6963838a3ba
6
+ metadata.gz: ab633288538b5343309ed30766925b61c05685f457e1772f5c80113a013fd75910509cf76fa01feb9e9bffdf5d764357f221b8f7f53748f17daed1f60b240464
7
+ data.tar.gz: 2dbf75f6310a515c0c9eb43301fd6b669ba96e115cbdeec37a2570fc556cac94daac00ec81638aaf1288e465efd4284af167e7d060657eaff788d65aebb92362
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (1.29.0)
4
+ gitlab_quality-test_tooling (1.29.1)
5
5
  activesupport (>= 7.0, < 7.2)
6
6
  amatch (~> 0.4.1)
7
7
  gitlab (~> 4.19)
@@ -9,8 +9,7 @@ module GitlabQuality
9
9
  def initialize(file_path:, ref:, **kwargs)
10
10
  @file_path = file_path
11
11
  @ref = ref
12
-
13
- super
12
+ super(**kwargs)
14
13
  end
15
14
 
16
15
  def file_contents
@@ -9,6 +9,7 @@ module GitlabQuality
9
9
  SLOW_TEST_NOTE_SOURCE_CODE = 'Generated by [`gitlab_quality-test_tooling`](https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling/-/blob/main/lib/gitlab_quality/test_tooling/report/merge_request_slow_tests_report.rb).'
10
10
 
11
11
  def initialize(token:, input_files:, merge_request_iid:, project: nil, dry_run: false, **_kwargs)
12
+ @token = token
12
13
  @project = project
13
14
  @gitlab_merge_request = (dry_run ? GitlabClient::MergeRequestsDryClient : GitlabClient::MergeRequestsClient).new(token: token, project: project)
14
15
  @files = Array(input_files)
@@ -29,7 +30,7 @@ module GitlabQuality
29
30
  def run!
30
31
  puts "Reporting slow tests in MR #{merge_request_iid}"
31
32
 
32
- TestResults::Builder.new(file_glob: files).test_results_per_file do |test_results|
33
+ TestResults::Builder.new(token: @token, project: @project, file_glob: files).test_results_per_file do |test_results|
33
34
  puts "=> Reporting #{test_results.count} tests in #{test_results.path}"
34
35
 
35
36
  @slow_tests += slow_related_tests(find_slow_tests(test_results))
@@ -52,7 +52,7 @@ module GitlabQuality
52
52
  def run!
53
53
  puts "Reporting test failures in `#{files.join(',')}` as issues in project `#{project}` via the API at `#{Runtime::Env.gitlab_api_base}`."
54
54
 
55
- TestResults::Builder.new(file_glob: files).test_results_per_file do |test_results|
55
+ TestResults::Builder.new(token: @token, project: @project, file_glob: files).test_results_per_file do |test_results|
56
56
  puts "=> Reporting #{test_results.count} tests in #{test_results.path}"
57
57
  process_test_results(test_results)
58
58
  end
@@ -14,6 +14,7 @@ module GitlabQuality
14
14
  def initialize(
15
15
  test_case_project_token:, results_issue_project_token:, input_files:, test_case_project: nil, results_issue_project: nil, dry_run: false,
16
16
  **kwargs)
17
+ @results_issue_project_token = results_issue_project_token
17
18
  @testcase_project_reporter = GitlabQuality::TestTooling::Report::ResultsInTestCases.new(
18
19
  token: test_case_project_token, input_files: input_files, project: test_case_project, dry_run: dry_run, **kwargs)
19
20
  @results_issue_project_reporter = GitlabQuality::TestTooling::Report::ResultsInIssues.new(
@@ -36,7 +37,7 @@ module GitlabQuality
36
37
  puts "Reporting test results in `#{files.join(',')}` as test cases in project `#{test_case_project}` " \
37
38
  "and issues in project `#{results_issue_project}` via the API at `#{Runtime::Env.gitlab_api_base}`."
38
39
 
39
- TestResults::Builder.new(file_glob: files).test_results_per_file do |test_results|
40
+ TestResults::Builder.new(token: @results_issue_project_token, project: @results_issue_project, file_glob: files).test_results_per_file do |test_results|
40
41
  puts "Reporting tests in #{test_results.path}"
41
42
 
42
43
  test_results.each do |test|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "1.29.0"
5
+ VERSION = "1.29.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_quality-test_tooling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 1.29.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: 2024-06-18 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control