bugsnag-maze-runner 9.5.0 → 9.6.0

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: ae769213765ead600bb5d24630e7ee9e64cb9cd4a0af662d907254aad577b325
4
- data.tar.gz: '08c6383f74a282fc41e04e5d12828ca27506da7205bbc979992794edc468c242'
3
+ metadata.gz: 7c5244250d40c6b3b44f775401c136e2f61e87779135858b5533e40875658190
4
+ data.tar.gz: 9cab0c07bc4db58a9ec93e4b25157a7749f5bb53a03812e1420270da48f38729
5
5
  SHA512:
6
- metadata.gz: 995669002344c3dd20206512b9a3cd1efa17db026d2355b5db6f0e1e5b4f4911113b13f2366919468acf5ff5c9d49361e143bfa918596f08a406c78a4ea4cc40
7
- data.tar.gz: 7bf1354e0233fc6f760bb2b6fa35827cb597cb005f3d80ee3f2f9182c3379186817fb5dca4bf248d6c65eaa83b4bd43282164e858e9b437ed1629deb4bf39b64
6
+ metadata.gz: b80d77bb8d388956f6acbefce51c3482b7450feb01dda66d655e9e682c89dc4b118f20d14bd63b0289092a27bce4dfb923332bf364a051e382b46e86ad8cf852
7
+ data.tar.gz: 3ddc5d20186dee38db31c3db556e5454b9bd825caf6cef96ef18b92b3f503c2771f2f78afa8bf22d262fbdef0165d66e280daae764ab0b15d4db441811eac63e
@@ -32,6 +32,7 @@ module Maze
32
32
  end
33
33
  end
34
34
  config.middleware.use(AssertErrorMiddleware)
35
+ config.middleware.use(AmbiguousErrorMiddleware)
35
36
  config.add_metadata(:'buildkite', metadata)
36
37
  config.project_root = Dir.pwd
37
38
  end
@@ -67,5 +68,25 @@ module Maze
67
68
  @middleware.call(report)
68
69
  end
69
70
  end
71
+
72
+ class AmbiguousErrorMiddleware
73
+ AMBIGUOUS_ERROR_CLASSES = [
74
+ 'Selenium::WebDriver::Error::ServerError',
75
+ 'Selenium::WebDriver::Error::UnknownError'
76
+ ]
77
+
78
+ def initialize(middleware)
79
+ @middleware = middleware
80
+ end
81
+
82
+ def call(report)
83
+ first_ex = report.raw_exceptions.first
84
+ if AMBIGUOUS_ERROR_CLASSES.include?(first_ex.class.name)
85
+ report.grouping_hash = first_ex.class.name.to_s + first_ex.message.to_s
86
+ end
87
+
88
+ @middleware.call(report)
89
+ end
90
+ end
70
91
  end
71
92
  end
@@ -84,10 +84,8 @@ module Maze
84
84
  'IOS_16' => make_ios_hash('iPhone 14', '16'),
85
85
  'IOS_15' => make_ios_hash('iPhone 11 Pro', '15'),
86
86
  'IOS_14' => make_ios_hash('iPhone 11', '14'),
87
- 'IOS_13' => make_ios_hash('iPhone 8', '13'),
87
+ 'IOS_13' => make_ios_hash('iPhone 11', '13'),
88
88
  'IOS_12' => make_ios_hash('iPhone 8', '12'),
89
- 'IOS_11' => make_ios_hash('iPhone 8', '11'),
90
- 'IOS_10' => make_ios_hash('iPhone 7', '10')
91
89
  }
92
90
 
93
91
  # Specific Android devices
@@ -100,10 +98,8 @@ module Maze
100
98
 
101
99
  add_android 'Google Pixel 2', '9.0', hash # ANDROID_9_0_GOOGLE_PIXEL_2
102
100
  add_android 'Samsung Galaxy Note 9', '8.1', hash # ANDROID_8_1_SAMSUNG_GALAXY_NOTE_9
103
- add_android 'Samsung Galaxy J7 Prime', '8.1', hash # ANDROID_8_1_SAMSUNG_GALAXY_J7_PRIME
104
101
  add_android 'Samsung Galaxy Tab S4', '8.1', hash # ANDROID_8_1_SAMSUNG_GALAXY_TAB_S4
105
102
  add_android 'Samsung Galaxy Tab S3', '8.0', hash # ANDROID_8_0_SAMSUNG_GALAXY_TAB_S3
106
- add_android 'Google Pixel 2', '8.0', hash # ANDROID_8_0_GOOGLE_PIXEL_2
107
103
  add_android 'Samsung Galaxy S9', '8.0', hash # ANDROID_8_0_SAMSUNG_GALAXY_S9
108
104
  add_android 'Samsung Galaxy S9 Plus', '8.0', hash # ANDROID_8_0_SAMSUNG_GALAXY_S9_PLUS
109
105
 
@@ -119,18 +115,6 @@ module Maze
119
115
  add_ios 'iPhone 14 Pro', '16.0', hash # IOS_16_0_IPHONE_14_PRO
120
116
  add_ios 'iPhone 14 Pro Max', '16.0', hash # IOS_16_0_IPHONE_14_PRO_MAX
121
117
 
122
- add_ios 'iPhone 8 Plus', '11.0', hash # IOS_11_0_IPHONE_8_PLUS
123
- add_ios 'iPhone X', '11.0', hash # IOS_11_0_IPHONE_X
124
- add_ios 'iPhone SE', '11.0', hash # IOS_11_0_IPHONE_SE
125
- add_ios 'iPhone 6', '11.0', hash # IOS_11_0_IPHONE_6
126
- add_ios 'iPhone 6S', '11.0', hash # IOS_11_0_IPHONE_6S
127
- add_ios 'iPhone 6S Plus', '11.0', hash # IOS_11_0_IPHONE_6S_PLUS
128
- add_ios 'iPad 5th', '11.0', hash # IOS_11_0_IPAD_5TH
129
- add_ios 'iPad Mini 4', '11.0', hash # IOS_11_0_IPAD_MINI_4
130
- add_ios 'iPad Pro 9.7 2016', '11.0', hash # IOS_11_0_IPAD_PRO_9_7_2016
131
- add_ios 'iPad 6th', '11.0', hash # IOS_11_0_IPAD_6TH
132
- add_ios 'iPad Pro 12.9', '11.0', hash # IOS_11_0_IPAD_PRO_12_9
133
-
134
118
  hash
135
119
  end
136
120
  end
data/lib/maze.rb CHANGED
@@ -7,7 +7,7 @@ require_relative 'maze/timers'
7
7
  # Glues the various parts of MazeRunner together that need to be accessed globally,
8
8
  # providing an alternative to the proliferation of global variables or singletons.
9
9
  module Maze
10
- VERSION = '9.5.0'
10
+ VERSION = '9.6.0'
11
11
 
12
12
  class << self
13
13
  attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag-maze-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.5.0
4
+ version: 9.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Kirkland
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-12 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -454,11 +454,11 @@ files:
454
454
  - lib/maze/wait.rb
455
455
  - lib/utils/deep_merge.rb
456
456
  - lib/utils/selenium_money_patch.rb
457
- homepage:
457
+ homepage:
458
458
  licenses:
459
459
  - MIT
460
460
  metadata: {}
461
- post_install_message:
461
+ post_install_message:
462
462
  rdoc_options: []
463
463
  require_paths:
464
464
  - lib
@@ -473,8 +473,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
473
473
  - !ruby/object:Gem::Version
474
474
  version: '0'
475
475
  requirements: []
476
- rubygems_version: 3.1.6
477
- signing_key:
476
+ rubygems_version: 3.5.3
477
+ signing_key:
478
478
  specification_version: 4
479
479
  summary: Bugsnag API request validation harness
480
480
  test_files: []