gitlab_quality-test_tooling 1.5.3 → 1.5.4
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/report/relate_failure_issue.rb +3 -1
- data/lib/gitlab_quality/test_tooling/report/report_as_issue.rb +1 -1
- data/lib/gitlab_quality/test_tooling/report/update_screenshot_path.rb +5 -5
- 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: acc009f4f6d5f4be05fa85cd3fffc68778d415d970ca96f22ace03c8a86f9488
|
|
4
|
+
data.tar.gz: 5c31655a8245c632e595431fb99ec14852bfd4f9b9778d09e8b8d0ae3393dbc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 754b2ed722bc050515ceb9f4691bc49da1e63c27c1ff44b3cd97bc597d6691f947a2390b63b41e980b4229332817671bc9cad351fee4455d424ce66f1d54cf03
|
|
7
|
+
data.tar.gz: ff2b356903435078c53b6234e69d57e272c9f367cd01518158fda38a94372ceeb1fe1e2f2cebec16e2aaa0dd4db9c98592c36631c858119d3340cf4bcd961bda
|
data/Gemfile.lock
CHANGED
|
@@ -86,7 +86,9 @@ module GitlabQuality
|
|
|
86
86
|
begin
|
|
87
87
|
issue = find_issue_and_update_reports(test)
|
|
88
88
|
|
|
89
|
-
create_issue(test) unless issue || test.quarantine?
|
|
89
|
+
issue = create_issue(test) unless issue || test.quarantine?
|
|
90
|
+
|
|
91
|
+
issue
|
|
90
92
|
rescue MultipleIssuesFound => e
|
|
91
93
|
warn(e.message)
|
|
92
94
|
end
|
|
@@ -160,7 +160,7 @@ module GitlabQuality
|
|
|
160
160
|
when 'customers-gitlab-com'
|
|
161
161
|
'found:customers.stg.gitlab.com'
|
|
162
162
|
else
|
|
163
|
-
|
|
163
|
+
puts " => [DEBUG] No `found:*` label for the `#{pipeline}` pipeline!"
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
166
|
|
|
@@ -16,8 +16,8 @@ module GitlabQuality
|
|
|
16
16
|
|
|
17
17
|
def invoke!
|
|
18
18
|
Dir.glob(input_files).each do |input_file|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
rewrite_screenshot_paths_in_junit_file(input_file)
|
|
20
|
+
rewrite_screenshot_paths_in_json_file(input_file.gsub('.xml', '.json'))
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ module GitlabQuality
|
|
|
25
25
|
|
|
26
26
|
attr_reader :input_files
|
|
27
27
|
|
|
28
|
-
def
|
|
28
|
+
def rewrite_screenshot_paths_in_junit_file(junit_file)
|
|
29
29
|
File.write(
|
|
30
30
|
junit_file,
|
|
31
31
|
rewrite_each_junit_screenshot_path(junit_file).to_s
|
|
@@ -34,7 +34,7 @@ module GitlabQuality
|
|
|
34
34
|
puts "Saved #{junit_file}"
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
def
|
|
37
|
+
def rewrite_screenshot_paths_in_json_file(json_file)
|
|
38
38
|
File.write(
|
|
39
39
|
json_file,
|
|
40
40
|
JSON.pretty_generate(
|
|
@@ -58,7 +58,7 @@ module GitlabQuality
|
|
|
58
58
|
examples = report['examples']
|
|
59
59
|
|
|
60
60
|
examples.each do |example|
|
|
61
|
-
next unless example['screenshot'].present?
|
|
61
|
+
next unless example['screenshot'].present? && example['screenshot']['image'].present?
|
|
62
62
|
|
|
63
63
|
example['screenshot']['image'] =
|
|
64
64
|
remove_container_absolute_path_prefix(example.dig('screenshot', 'image'), test_artifacts_directory(json_file))
|
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.5.
|
|
4
|
+
version: 1.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitLab Quality
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-11-
|
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|