bugsnag-maze-runner 9.31.0 → 9.31.2
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 +4 -4
- data/lib/maze/api/appium/manager.rb +1 -0
- data/lib/maze/client/appium/base_client.rb +17 -3
- data/lib/maze/client/appium/bb_client.rb +2 -0
- data/lib/maze/error_monitor/selenium_error_middleware.rb +4 -0
- data/lib/maze/hooks/appium_hooks.rb +4 -6
- data/lib/maze.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbd2ec4015aa27fb1b74d1a305bfc0fa00b99f67985f55daa6022682dd5f99bc
|
4
|
+
data.tar.gz: 07da8d024efe38c155033a9e989e3eafcd2f9d44e779f44f77c4166a2f9179a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acc5b402d0f9a19c08e18034feb8a3a6a0cdbe43dd45546c24ab6af88db9e4b5fc88cfbc628a32366cdb1a304bbd496b4da8a7143ccc03302cf35a82ab6f3c6c
|
7
|
+
data.tar.gz: b6181d472592bc02d4551838de82ef78c7c244c9546416a45d55d99848a7e87644039f6b627b91d2cd6cd89b80792cf3defa4655c7a631f77ae71a20c541a4f0
|
@@ -1,6 +1,18 @@
|
|
1
1
|
require 'bugsnag'
|
2
2
|
require 'json'
|
3
3
|
|
4
|
+
# Custom error class for reporting successful Appium sessions
|
5
|
+
class Success < StandardError
|
6
|
+
def initialize(message)
|
7
|
+
super(message)
|
8
|
+
@message = message
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_s
|
12
|
+
@message
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
4
16
|
module Maze
|
5
17
|
module Client
|
6
18
|
module Appium
|
@@ -162,12 +174,14 @@ module Maze
|
|
162
174
|
end
|
163
175
|
|
164
176
|
def report_session
|
165
|
-
|
166
|
-
|
177
|
+
if @session_metadata.success
|
178
|
+
error = Success.new('Success')
|
179
|
+
else
|
180
|
+
error = ::Selenium::WebDriver::Error::ServerError.new(@session_metadata.failure_message)
|
181
|
+
end
|
167
182
|
|
168
183
|
Bugsnag.notify(error) do |event|
|
169
184
|
event.api_key = ENV['MAZE_APPIUM_BUGSNAG_API_KEY']
|
170
|
-
event.grouping_hash = event.exceptions.first[:message]
|
171
185
|
|
172
186
|
metadata = {
|
173
187
|
'session id': @session_metadata.id,
|
@@ -40,6 +40,8 @@ module Maze
|
|
40
40
|
interval = 10
|
41
41
|
elsif error.message.include?('Device model with name') && error.message.include?('is currently unavailable')
|
42
42
|
interval = 10
|
43
|
+
elsif error.message.include?('Error executing adbExec')
|
44
|
+
interval = 10
|
43
45
|
else
|
44
46
|
# Do not retry in any other case
|
45
47
|
end
|
@@ -24,6 +24,10 @@ module Maze
|
|
24
24
|
{
|
25
25
|
pattern: /(unexpected end of stream on )(http:\/\/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]{1,5}\/\.\.\.)/,
|
26
26
|
replacement: '\1URL'
|
27
|
+
},
|
28
|
+
{
|
29
|
+
pattern: /(Could not find a connected Android device in )([0-9]+)ms/,
|
30
|
+
replacement: '\1TIME'
|
27
31
|
}
|
28
32
|
]
|
29
33
|
|
@@ -60,18 +60,16 @@ module Maze
|
|
60
60
|
else
|
61
61
|
Maze::Plugins::DatadogMetricsPlugin.send_increment('appium.test_failed')
|
62
62
|
end
|
63
|
-
rescue => error
|
64
|
-
# Notify and re-raise for Cucumber to handle
|
65
|
-
Bugsnag.notify error
|
66
|
-
raise
|
67
|
-
end
|
68
63
|
|
69
|
-
def at_exit
|
70
64
|
if @client
|
71
65
|
@client.log_run_outro
|
72
66
|
$logger.info 'Stopping the Appium session'
|
73
67
|
@client.stop_session
|
74
68
|
end
|
69
|
+
rescue => error
|
70
|
+
# Notify and re-raise for Cucumber to handle
|
71
|
+
Bugsnag.notify error
|
72
|
+
raise
|
75
73
|
end
|
76
74
|
end
|
77
75
|
end
|
data/lib/maze.rb
CHANGED
@@ -8,7 +8,7 @@ require_relative 'maze/timers'
|
|
8
8
|
# providing an alternative to the proliferation of global variables or singletons.
|
9
9
|
module Maze
|
10
10
|
|
11
|
-
VERSION = '9.31.
|
11
|
+
VERSION = '9.31.2'
|
12
12
|
|
13
13
|
class << self
|
14
14
|
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.31.
|
4
|
+
version: 9.31.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kirkland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|