gitlab_quality-test_tooling 1.5.3 → 1.5.4

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: ecfb78e3fc7f1f23f118c98b16cdf1c104774734d08c4ff04dd6e4c7b25ae703
4
- data.tar.gz: 4ef1ed6d2f559f427f0c26e92b90f631b5f407b7b604914c3b17786563675966
3
+ metadata.gz: acc009f4f6d5f4be05fa85cd3fffc68778d415d970ca96f22ace03c8a86f9488
4
+ data.tar.gz: 5c31655a8245c632e595431fb99ec14852bfd4f9b9778d09e8b8d0ae3393dbc1
5
5
  SHA512:
6
- metadata.gz: 345e33ac54c7a917bb735a715e63bb8fcbe23464186aab1d02697ae1904f894a31ee4c04e2fb793262a04a4e768518e21eb5d0214616a337ca4f526a3a14af42
7
- data.tar.gz: 5cf0dff6f8b7ff0f9526027fb3cc1efef03cf2ca1cf655d29054ff8075217e7221936b666e619e18cc09eaa003d3b70a65f1927124c6efb8c2f1516da9f00f27
6
+ metadata.gz: 754b2ed722bc050515ceb9f4691bc49da1e63c27c1ff44b3cd97bc597d6691f947a2390b63b41e980b4229332817671bc9cad351fee4455d424ce66f1d54cf03
7
+ data.tar.gz: ff2b356903435078c53b6234e69d57e272c9f367cd01518158fda38a94372ceeb1fe1e2f2cebec16e2aaa0dd4db9c98592c36631c858119d3340cf4bcd961bda
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (1.5.3)
4
+ gitlab_quality-test_tooling (1.5.4)
5
5
  activesupport (>= 6.1, < 7.2)
6
6
  amatch (~> 0.4.1)
7
7
  gitlab (~> 4.19)
@@ -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
- raise "No `found:*` label for the `#{pipeline}` pipeline!"
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
- rewrite_schreenshot_paths_in_junit_file(input_file)
20
- rewrite_schreenshot_paths_in_json_file(input_file.gsub('.xml', '.json'))
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 rewrite_schreenshot_paths_in_junit_file(junit_file)
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 rewrite_schreenshot_paths_in_json_file(json_file)
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))
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "1.5.3"
5
+ VERSION = "1.5.4"
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.5.3
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-17 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control