gitlab_quality-test_tooling 1.29.0 → 1.29.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab_quality/test_tooling/gitlab_client/repository_files_client.rb +1 -2
- data/lib/gitlab_quality/test_tooling/report/merge_request_slow_tests_report.rb +2 -1
- data/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb +1 -1
- data/lib/gitlab_quality/test_tooling/report/report_results.rb +2 -1
- data/lib/gitlab_quality/test_tooling/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: 523cbb3e59a928b4e438ec2f97818c6b756b5120d9d61ede7945bd5904de4b79
|
|
4
|
+
data.tar.gz: 750bb848167c76df6f6287d119eb211fa8281abfade44334ca1cb72142b03361
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab633288538b5343309ed30766925b61c05685f457e1772f5c80113a013fd75910509cf76fa01feb9e9bffdf5d764357f221b8f7f53748f17daed1f60b240464
|
|
7
|
+
data.tar.gz: 2dbf75f6310a515c0c9eb43301fd6b669ba96e115cbdeec37a2570fc556cac94daac00ec81638aaf1288e465efd4284af167e7d060657eaff788d65aebb92362
|
data/Gemfile.lock
CHANGED
|
@@ -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|
|
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.
|
|
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-
|
|
11
|
+
date: 2024-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|