bugsnag-maze-runner 7.26.0 → 7.26.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 +4 -4
- data/bin/upload-app +1 -2
- data/lib/maze/client/bb_client_utils.rb +8 -2
- data/lib/maze/client/selenium/local_client.rb +4 -0
- data/lib/maze/driver/browser.rb +1 -1
- data/lib/maze/helper.rb +1 -1
- data/lib/maze/option/validator.rb +1 -1
- data/lib/maze/servlets/trace_servlet.rb +4 -1
- 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: 73f329df5934008d114f663a224e93592bc7d785024e20d0b015771abc1ca027
|
4
|
+
data.tar.gz: c566d0a2aaccaf1bfe36107290ffd8519d777a7c9e5dbe77769a1674dd751e6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8fadbe837d32d0f8804c168eadf175aa6b0e1a3448d3072243ff25f8b0c64933a1b00edacf24c22de9bf4aa607e328cfa0351d94010c1a688ca612d347c9411
|
7
|
+
data.tar.gz: e7eb8c09b447af8b4b473a28b80b023a70dcf31100ea1d9fb0677f9c52a4322156f289eb102751be282cbdac47b451a7ba63490595fd98fe30bad3c8fa6e5170
|
data/bin/upload-app
CHANGED
@@ -59,9 +59,8 @@ class UploadAppEntry
|
|
59
59
|
end
|
60
60
|
|
61
61
|
if options[:access_key].nil?
|
62
|
-
$logger.warn 'An access_key is required to upload the app'
|
63
62
|
Optimist::with_standard_exception_handling parser do
|
64
|
-
|
63
|
+
parser.die('An access_key is required to upload the app', 1)
|
65
64
|
end
|
66
65
|
end
|
67
66
|
|
@@ -68,7 +68,9 @@ module Maze
|
|
68
68
|
#
|
69
69
|
# @returns
|
70
70
|
def account_credentials(tms_uri)
|
71
|
-
|
71
|
+
interval_seconds = 10
|
72
|
+
|
73
|
+
credentials = Maze::Wait.new(interval: interval_seconds, timeout: 1800).until do
|
72
74
|
output = request_account_index(tms_uri)
|
73
75
|
case output.code
|
74
76
|
when '200'
|
@@ -81,7 +83,7 @@ module Maze
|
|
81
83
|
}
|
82
84
|
when '409'
|
83
85
|
# All accounts are in use, wait for one to become available
|
84
|
-
$logger.info
|
86
|
+
$logger.info("All accounts are currently in use, retrying in #{interval_seconds}s")
|
85
87
|
false
|
86
88
|
else
|
87
89
|
# Something has gone wrong, throw an error
|
@@ -89,6 +91,10 @@ module Maze
|
|
89
91
|
raise
|
90
92
|
end
|
91
93
|
end
|
94
|
+
|
95
|
+
return credentials if credentials
|
96
|
+
|
97
|
+
raise "Could not fetch BitBar credentials in time"
|
92
98
|
end
|
93
99
|
|
94
100
|
# Makes the HTTP call to acquire an account id
|
data/lib/maze/driver/browser.rb
CHANGED
data/lib/maze/helper.rb
CHANGED
@@ -108,7 +108,7 @@ module Maze
|
|
108
108
|
errors << "Browser type '#{browser}' unknown on BitBar. Must be one of: #{browser_list}."
|
109
109
|
end
|
110
110
|
elsif device
|
111
|
-
app = options[Option::APP]
|
111
|
+
app = Maze::Helper.read_at_arg_file options[Option::APP]
|
112
112
|
if app.nil?
|
113
113
|
errors << "--#{Option::APP} must be provided when running on a device"
|
114
114
|
else
|
@@ -5,8 +5,11 @@ module Maze
|
|
5
5
|
class TraceServlet < Servlet
|
6
6
|
def set_response_header(header)
|
7
7
|
super
|
8
|
+
|
8
9
|
value = Maze::Server.sampling_probability
|
9
|
-
header['Bugsnag-Sampling-Probability'] =
|
10
|
+
header['Bugsnag-Sampling-Probability'] = value unless value == 'null'
|
11
|
+
|
12
|
+
header['Access-Control-Expose-Headers'] = 'Bugsnag-Sampling-Probability'
|
10
13
|
end
|
11
14
|
end
|
12
15
|
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 = '7.26.
|
10
|
+
VERSION = '7.26.1'
|
11
11
|
|
12
12
|
class << self
|
13
13
|
attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address, :run_uuid
|
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: 7.26.
|
4
|
+
version: 7.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kirkland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|