Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/datadog/core/crashtracking/component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
let(:agent_base_url) { "http://#{hostname}:#{port}" }

[:fiddle, :signal].each do |trigger|
it "reports crashes via http when app crashes with #{trigger}", skip: ENV['BATCHED_TASKS'] do
it "reports crashes via http when app crashes with #{trigger}" do
fork_expectations = proc do |status:, stdout:, stderr:|
expect(Signal.signame(status.termsig)).to eq('SEGV').or eq('ABRT')
expect(stderr).to include('[BUG] Segmentation fault')
Expand Down Expand Up @@ -269,7 +269,7 @@
# Do nothing, it's ok
end

it 'reports crashes via uds when app crashes with fiddle', skip: ENV['BATCHED_TASKS'] do
it 'reports crashes via uds when app crashes with fiddle' do
fork_expectations = proc do |status:, stdout:, stderr:|
expect(Signal.signame(status.termsig)).to eq('SEGV').or eq('ABRT')
expect(stderr).to include('[BUG] Segmentation fault')
Expand Down
12 changes: 4 additions & 8 deletions tasks/github.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'pry'
require 'json'
require 'psych'
require 'ostruct'
Expand Down Expand Up @@ -397,16 +396,13 @@ namespace :github do
task :generate_batches do
matrix = eval(File.read('Matrixfile')).freeze # rubocop:disable Security/Eval

exceptions = [
# Uncomment to only runs the specified candidates
candidates = [
# 'sidekiq', # Connection refused - connect(2) for 127.0.0.1:6379 (RedisClient::CannotConnectError)
# 'mongodb', # Connection issue with multi db and process hang
]

# candidates = exceptions
candidates = matrix.keys - exceptions

raise 'No candidates.' if candidates.empty?

matrix = matrix.slice(*candidates)
matrix = matrix.slice(*candidates) unless candidates.empty?

ruby_version = RUBY_VERSION[0..2]

Expand Down
Loading