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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a822efcb98f1f0701146868a2ca82590fc8320f623620eadecba03d9407038b
|
4
|
+
data.tar.gz: e8ef6e4c717e7d3a86ba0e1b71ab4811b1251a034e4f4191df49d432dc8f57aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df264eafd349e11cfbabf00816172a181960ae7398b9f488148ad6e7d22f5e251738190fec44877d912aae137ca01fa57b5fafec77df1bfbc944752152f69b4
|
7
|
+
data.tar.gz: 1b8892425addf5b1300d34624fd3de3a06054c4ec50fecd8ad7e9775ed8364159a6959a980d3b4569fb155a0f3e7e8739a39f24015f5d8a05da3fe4681ba0230
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
374
|
-
.filter_map { |exception| exception['
|
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
|
376
|
+
return if exception_messages.empty? || exception_messages.size < exceptions.size
|
377
377
|
|
378
|
-
msg =
|
379
|
-
"#{msg} #{
|
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
|
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.
|
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-
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|