File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
spec/datadog/core/crashtracking Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 212212 let ( :agent_base_url ) { "http://#{ hostname } :#{ port } " }
213213
214214 [ :fiddle , :signal ] . each do |trigger |
215- it "reports crashes via http when app crashes with #{ trigger } " , skip : ENV [ 'BATCHED_TASKS' ] do
215+ it "reports crashes via http when app crashes with #{ trigger } " do
216216 fork_expectations = proc do |status :, stdout :, stderr :|
217217 expect ( Signal . signame ( status . termsig ) ) . to eq ( 'SEGV' ) . or eq ( 'ABRT' )
218218 expect ( stderr ) . to include ( '[BUG] Segmentation fault' )
269269 # Do nothing, it's ok
270270 end
271271
272- it 'reports crashes via uds when app crashes with fiddle' , skip : ENV [ 'BATCHED_TASKS' ] do
272+ it 'reports crashes via uds when app crashes with fiddle' do
273273 fork_expectations = proc do |status :, stdout :, stderr :|
274274 expect ( Signal . signame ( status . termsig ) ) . to eq ( 'SEGV' ) . or eq ( 'ABRT' )
275275 expect ( stderr ) . to include ( '[BUG] Segmentation fault' )
Original file line number Diff line number Diff line change 1- require 'pry'
21require 'json'
32require 'psych'
43require 'ostruct'
@@ -397,16 +396,13 @@ namespace :github do
397396 task :generate_batches do
398397 matrix = eval ( File . read ( 'Matrixfile' ) ) . freeze # rubocop:disable Security/Eval
399398
400- exceptions = [
399+ # Uncomment to only runs the specified candidates
400+ candidates = [
401401 # 'sidekiq', # Connection refused - connect(2) for 127.0.0.1:6379 (RedisClient::CannotConnectError)
402+ # 'mongodb', # Connection issue with multi db and process hang
402403 ]
403404
404- # candidates = exceptions
405- candidates = matrix . keys - exceptions
406-
407- raise 'No candidates.' if candidates . empty?
408-
409- matrix = matrix . slice ( *candidates )
405+ matrix = matrix . slice ( *candidates ) unless candidates . empty?
410406
411407 ruby_version = RUBY_VERSION [ 0 ..2 ]
412408
You can’t perform that action at this time.
0 commit comments