bugsnag-maze-runner 7.26.0 → 7.26.1

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: 2740400fc6ee5bd904dc3a82f334967f6a154eb5bd99a343f324ef68da800461
4
- data.tar.gz: '0787ae4e578768564cf8e377b4e3626afd8b8b637a26c9077401f2093e81747b'
3
+ metadata.gz: 73f329df5934008d114f663a224e93592bc7d785024e20d0b015771abc1ca027
4
+ data.tar.gz: c566d0a2aaccaf1bfe36107290ffd8519d777a7c9e5dbe77769a1674dd751e6e
5
5
  SHA512:
6
- metadata.gz: fc58669b1cc0d59f7b1a3762e34ac489f174e997a2fa313dd50f7b18c6f863bdab8550090019a007f96c23e908cb9a2d9417f7142afb45cc8f9f52e79cd755d8
7
- data.tar.gz: 0c8d117361004c964f759459e2f3433701277633b518bb7afca0a831bdc40cc86a3127eec04fbfcfab4136d05e700ab1231084dee0316508b25330cfa5f9c111
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
- raise Optimist::HelpNeeded
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
- Maze::Wait.new(interval: 10, timeout: 1800).until do
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 'All accounts are currently in use, retrying in 30s'
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
@@ -7,6 +7,10 @@ module Maze
7
7
  Maze.driver.start_driver
8
8
  end
9
9
 
10
+ def log_run_outro
11
+ # Nothing to do
12
+ end
13
+
10
14
  def stop_session
11
15
  # No need to quit the local driver
12
16
  end
@@ -27,7 +27,7 @@ module Maze
27
27
 
28
28
  # Refreshes the page
29
29
  def refresh
30
- @driver.refresh
30
+ @driver.navigate.refresh
31
31
  end
32
32
 
33
33
  # Quits the driver
data/lib/maze/helper.rb CHANGED
@@ -83,7 +83,7 @@ module Maze
83
83
  return argument unless argument.start_with? '@'
84
84
 
85
85
  file = argument[1..argument.size]
86
- File.read file
86
+ (File.read file).strip
87
87
  end
88
88
 
89
89
  # Returns the current platform all lower-case.
@@ -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'] = value unless value == 'null'
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.0'
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2023-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber