gitlab_quality-test_tooling 0.5.1 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc8b2c08fcccfa3f9999cb859bffee54b883e2c0127e7aa1bf8f978159031dde
4
- data.tar.gz: da8f27a154eaf978bd626b1795c3c948d875f90e6cf862fe2459af582c44d40c
3
+ metadata.gz: 5a822efcb98f1f0701146868a2ca82590fc8320f623620eadecba03d9407038b
4
+ data.tar.gz: e8ef6e4c717e7d3a86ba0e1b71ab4811b1251a034e4f4191df49d432dc8f57aa
5
5
  SHA512:
6
- metadata.gz: ec97a682e2d81d80cd9e9c707efaa74fd3b78556a30d654a2e1bf928ff4cf6a712154ea93a03b8ec89974d6b11618f29df6a3e16c291088d392a684f651b40a7
7
- data.tar.gz: f1bbe7ed0cfd640b0886c00cf93cc6a3c32ac4e15d8a321a8768f1d4a6025e73c965f84ad6c00224a7742eaf62c77cdfef5187f1918a8fccc0b36cddcc188cab
6
+ metadata.gz: 3df264eafd349e11cfbabf00816172a181960ae7398b9f488148ad6e7d22f5e251738190fec44877d912aae137ca01fa57b5fafec77df1bfbc944752152f69b4
7
+ data.tar.gz: 1b8892425addf5b1300d34624fd3de3a06054c4ec50fecd8ad7e9775ed8364159a6959a980d3b4569fb155a0f3e7e8739a39f24015f5d8a05da3fe4681ba0230
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (0.5.1)
4
+ gitlab_quality-test_tooling (0.6.1)
5
5
  activesupport (~> 6.1)
6
- gitlab (~> 4.18.0)
6
+ gitlab (~> 4.19)
7
7
  http (~> 5.0)
8
8
  nokogiri (~> 1.10)
9
9
  parallel (>= 1, < 2)
@@ -73,8 +73,8 @@ GEM
73
73
  git (1.13.2)
74
74
  addressable (~> 2.8)
75
75
  rchardet (~> 1.8)
76
- gitlab (4.18.0)
77
- httparty (~> 0.18)
76
+ gitlab (4.19.0)
77
+ httparty (~> 0.20)
78
78
  terminal-table (>= 1.5.1)
79
79
  gitlab-dangerfiles (3.8.0)
80
80
  danger (>= 8.4.5)
@@ -25,7 +25,7 @@ module GitlabQuality
25
25
  FAILED_JOB_DESCRIPTION_REGEX = %r{First happened in https?://\S+\.}m
26
26
  FAILED_JOB_NOTE_REGEX = %r{Failed most recently in \D+ pipeline: https?://\S+}
27
27
  NEW_ISSUE_LABELS = Set.new(%w[test failure::new priority::2]).freeze
28
- IGNORE_EXCEPTIONS = ['Net::ReadTimeout'].freeze
28
+ IGNORE_EXCEPTIONS = ['Net::ReadTimeout', '403 Forbidden - Your account has been blocked'].freeze
29
29
  SCREENSHOT_IGNORED_ERRORS = ['500 Internal Server Error', 'fabricate_via_api!', 'Error Code 500'].freeze
30
30
 
31
31
  MultipleIssuesFound = Class.new(StandardError)
@@ -370,13 +370,13 @@ module GitlabQuality
370
370
  # @param [Array<Hash>] exceptions the exceptions associated with the failure.
371
371
  # @return [String] the reason to ignore the exceptions, or `nil` if any exceptions should not be ignored.
372
372
  def ignore_failure_reason(exceptions)
373
- exception_classes = exceptions
374
- .filter_map { |exception| exception['class'] if IGNORE_EXCEPTIONS.include?(exception['class']) }
373
+ exception_messages = exceptions
374
+ .filter_map { |exception| exception['message'] if IGNORE_EXCEPTIONS.any? { |e| exception['message'].include?(e) } }
375
375
  .compact
376
- return if exception_classes.empty? || exception_classes.size < exceptions.size
376
+ return if exception_messages.empty? || exception_messages.size < exceptions.size
377
377
 
378
- msg = exception_classes.many? ? 'the errors were' : 'the error was'
379
- "#{msg} #{exception_classes.join(', ')}"
378
+ msg = exception_messages.many? ? 'the errors were' : 'the error was'
379
+ "#{msg} #{exception_messages.join(', ')}"
380
380
  end
381
381
  end
382
382
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "0.5.1"
5
+ VERSION = "0.6.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: 0.5.1
4
+ version: 0.6.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: 2023-05-29 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 4.18.0
201
+ version: '4.19'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 4.18.0
208
+ version: '4.19'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: http
211
211
  requirement: !ruby/object:Gem::Requirement