gitlab_quality-test_tooling 0.6.0 → 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: dbf155d73f05905e7650ae5660238042126c7eb4db61207882eca9dde123bc3c
4
- data.tar.gz: 9f09da32ac58114050a29e6d1394cea9b9e10dec024b2d6ec99137826e2927cb
3
+ metadata.gz: 5a822efcb98f1f0701146868a2ca82590fc8320f623620eadecba03d9407038b
4
+ data.tar.gz: e8ef6e4c717e7d3a86ba0e1b71ab4811b1251a034e4f4191df49d432dc8f57aa
5
5
  SHA512:
6
- metadata.gz: 6f2957b97fe89cfa6d18339f7b6b9ab00aa74d2677c0a957ec241c874b8ad69d5ee99470c3468b4ae23f239fbad3f2618cdba8499aa3548e0726884a6c688e66
7
- data.tar.gz: 4abb3047a022e643314ae67a51bddfdb7c6c2d96034b2a1197cd8419e00142218d729ffad5d2506b4efd9c7a2d8617bbf2c828521733db1c9c3af0a813baea76
6
+ metadata.gz: 3df264eafd349e11cfbabf00816172a181960ae7398b9f488148ad6e7d22f5e251738190fec44877d912aae137ca01fa57b5fafec77df1bfbc944752152f69b4
7
+ data.tar.gz: 1b8892425addf5b1300d34624fd3de3a06054c4ec50fecd8ad7e9775ed8364159a6959a980d3b4569fb155a0f3e7e8739a39f24015f5d8a05da3fe4681ba0230
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (0.6.0)
4
+ gitlab_quality-test_tooling (0.6.1)
5
5
  activesupport (~> 6.1)
6
6
  gitlab (~> 4.19)
7
7
  http (~> 5.0)
@@ -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.6.0"
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.6.0
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-30 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