Skip to content

Commit

Permalink
Merge branch 'dev' into bugfix/sidekiq_browser_agent_injection
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Feb 23, 2024
2 parents 6eaa7dc + 414ddad commit 8f1bd90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/new_relic/agent/configuration/default_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def self.enforce_fallback(allowed_values: nil, fallback: nil)
:public => true,
:type => Integer,
:allowed_from_server => false,
:description => 'Defines the maximum number of frames in an error backtrace. Backtraces over this amount are truncated at the beginning and end.'
:description => 'Defines the maximum number of frames in an error backtrace. Backtraces over this amount are truncated in the middle, preserving the beginning and the end of the stack trace.'
},
:'error_collector.max_event_samples_stored' => {
:default => 100,
Expand Down
14 changes: 10 additions & 4 deletions test/multiverse/suites/mongo/Envfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "helpers", "docker"))
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'helpers', 'docker'))

if RUBY_VERSION >= '2.6.0'
# TODO: bson 5.0 was released 13 Feb 2024
# It is not compatible with Mongo::Connection.new on mongo 1.3.1.
# For a reason I do not yet understand, without limiting 'bson' to < 5.0
# the CI installs mongo 1.3.1 instead of the current 2.19.3 for this nil
# version test.
# Issue #2447
gemfile <<~RB
gem 'mongo'
gem 'bson'
gem 'bson', '< 5.0'
RB
end

Expand All @@ -16,7 +22,7 @@ end
# appear in these lists

# Mongo versions to test with Ruby 2.6+
MONGO_VERSIONS_RUBY26 = ['2.17.0']
MONGO_VERSIONS_RUBY26 = ['2.17.4', '2.18.3']

# Mongo versions to test with Ruby 2.5+
MONGO_VERSIONS_RUBY25 = ['2.15.1', '2.12.0']
Expand Down Expand Up @@ -69,7 +75,7 @@ end
mongo_versions.each do |mongo_version|
next if mongo_version.start_with?('1.') && installed_mongo_server_version > MAX_SERVER_VERSION_FOR_1X_GEMS

if Gem::Version.new(mongo_version) >= Gem::Version.new("2.12.0")
if Gem::Version.new(mongo_version) >= Gem::Version.new('2.12.0')
gemfile <<~RB
gem 'mongo', '~> #{mongo_version}'
gem 'bson', '~> 4.14'
Expand Down

0 comments on commit 8f1bd90

Please sign in to comment.