Skip to content
Open
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
11 changes: 9 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@ namespace :spec do
t.pattern = CORE_WITH_LIBDATADOG_API.join(', ')
t.rspec_opts = args.to_a.join(' ')
end.tap do |t|
Rake::Task[t.name].enhance(["compile:libdatadog_api.#{RUBY_VERSION[/\d+.\d+/]}_#{RUBY_PLATFORM}"])
# Core with libdatadog is dependent on profiling because crashtracking runtime stacks logic
# lives in the profiling extension (they share same logic accessing Ruby internals)
Rake::Task[t.name].enhance(
[
"compile:libdatadog_api.#{RUBY_VERSION[/\d+.\d+/]}_#{RUBY_PLATFORM}",
"compile:datadog_profiling_native_extension.#{RUBY_VERSION}_#{RUBY_PLATFORM}"
]
)
end
# rubocop:enable Style/MultilineBlockChain

Expand Down Expand Up @@ -319,7 +326,7 @@ namespace :spec do
rescue => e
# Compilation failed (likely unsupported Ruby version) - tests will skip gracefully
puts "Warning: libdatadog_api compilation failed: #{e.class}: #{e}"
puts "DSM tests will be skipped for this Ruby version"
puts 'DSM tests will be skipped for this Ruby version'
end

DSM_ENABLED_LIBRARIES.each do |task_name|
Expand Down
1 change: 1 addition & 0 deletions Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ target :datadog do
ignore 'lib/datadog/core/configuration/ext.rb'
ignore 'lib/datadog/core/configuration/settings.rb'
ignore 'lib/datadog/core/contrib/rails/utils.rb'
ignore 'lib/datadog/core/crashtracking/component.rb'
ignore 'lib/datadog/core/encoding.rb'
ignore 'lib/datadog/core/environment/identity.rb'
ignore 'lib/datadog/core/environment/platform.rb'
Expand Down
Loading