Skip to content

Commit 4b0c0c3

Browse files
committed
Enable crashtracking integration test
1 parent 4c87324 commit 4b0c0c3

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

spec/datadog/core/crashtracking/component_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
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')
@@ -269,7 +269,7 @@
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')

tasks/github.rake

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'pry'
21
require 'json'
32
require 'psych'
43
require '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

0 commit comments

Comments
 (0)