newrelic_rpm 3.6.1.87 → 3.6.1.88

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -103,6 +103,9 @@ module NewRelic
103
103
 
104
104
  require 'new_relic/agent/instrumentation/controller_instrumentation'
105
105
 
106
+ # this is a shim that's here only for backwards compatibility
107
+ require 'new_relic/agent/instrumentation/metric_frame'
108
+
106
109
  require 'new_relic/agent/samplers/cpu_sampler'
107
110
  require 'new_relic/agent/samplers/memory_sampler'
108
111
  require 'new_relic/agent/samplers/object_sampler'
@@ -64,10 +64,10 @@ module NewRelic
64
64
  report_on('Ruby patchlevel'){ RUBY_PATCHLEVEL.to_s }
65
65
  report_on('JRuby version') { JRUBY_VERSION }
66
66
  report_on('Java VM version') { ENV_JAVA['java.vm.version']}
67
- report_on('Processors') { SystemInfo.processor_count }
68
- report_on('Arch') { SystemInfo.processor_arch }
69
- report_on('OS version') { SystemInfo.os_version }
70
- report_on('OS') { SystemInfo.ruby_os_identifier }
67
+ report_on('Processors') { ::NewRelic::Agent::SystemInfo.processor_count }
68
+ report_on('Arch') { ::NewRelic::Agent::SystemInfo.processor_arch }
69
+ report_on('OS version') { ::NewRelic::Agent::SystemInfo.os_version }
70
+ report_on('OS') { ::NewRelic::Agent::SystemInfo.ruby_os_identifier }
71
71
  report_on 'Database adapter' do
72
72
  ActiveRecord::Base.configurations[NewRelic::Control.instance.env]['adapter']
73
73
  end
@@ -101,7 +101,8 @@ class ResqueTest < Test::Unit::TestCase
101
101
  end
102
102
  end
103
103
  rescue Timeout::Error => err
104
- raise err.exception("waiting #{time_for_jobs}s for completion of #{JOB_COUNT} jobs")
104
+ completed = Resque.info[:processed]
105
+ raise err.exception("waiting #{time_for_jobs}s for completion of #{JOB_COUNT} jobs - got only #{completed}")
105
106
  end
106
107
  end
107
108
 
@@ -11,6 +11,7 @@ development:
11
11
  app_name: test
12
12
  host: 127.0.0.1
13
13
  api_host: 127.0.0.1
14
+ sync_startup: true
14
15
  port: <%= ENV['NEWRELIC_MULTIVERSE_FAKE_COLLECTOR_PORT'] %>
15
16
  transaction_tracer:
16
17
  record_sql: obfuscated
@@ -9,7 +9,7 @@ require 'test/unit'
9
9
  require 'newrelic_rpm'
10
10
  require 'fake_collector'
11
11
 
12
- class ResqueTest < Test::Unit::TestCase
12
+ class SidekiqTest < Test::Unit::TestCase
13
13
  JOB_COUNT = 5
14
14
  COLLECTOR_PORT = ENV['NEWRELIC_MULTIVERSE_FAKE_COLLECTOR_PORT']
15
15
 
@@ -54,12 +54,16 @@ class ResqueTest < Test::Unit::TestCase
54
54
  end
55
55
 
56
56
  def wait_for_jobs
57
- time_for_jobs = 5
57
+ time_for_jobs = 10
58
58
  begin
59
+ t0 = Time.now
59
60
  stats = Sidekiq::Stats.new
60
61
  Timeout.timeout(time_for_jobs) { sleep(0.1) until stats.processed == JOB_COUNT }
61
62
  rescue Timeout::Error => err
62
- raise err.exception("waiting #{time_for_jobs}s for completion of #{JOB_COUNT} jobs")
63
+ completed = stats.processed
64
+ msg = "waiting #{time_for_jobs}s for completion of #{JOB_COUNT} jobs - only #{completed} completed"
65
+ msg << "\nstarted waiting at #{t0}, now = #{Time.now}"
66
+ raise err.exception(msg)
63
67
  end
64
68
  end
65
69
 
@@ -61,6 +61,20 @@ class EnvironmentReportTest < Test::Unit::TestCase
61
61
  assert_equal RUBY_VERSION, @report['Ruby version']
62
62
  end
63
63
 
64
+ def test_gathers_system_info
65
+ NewRelic::Agent::SystemInfo.stubs({
66
+ :processor_count => 8,
67
+ :processor_arch => 'x86_64',
68
+ :os_version => 'WiggleOS 1.1.1',
69
+ :ruby_os_identifier => 'wiggleos'
70
+ })
71
+ report = ::NewRelic::EnvironmentReport.new
72
+ assert_equal(8, report['Processors'])
73
+ assert_equal('x86_64', report['Arch'])
74
+ assert_equal('WiggleOS 1.1.1', report['OS version'])
75
+ assert_equal('wiggleos', report['OS'])
76
+ end
77
+
64
78
  def test_has_logic_for_keys
65
79
  [
66
80
  "Gems",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1.87
4
+ version: 3.6.1.88
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -41,7 +41,7 @@ cert_chain:
41
41
  cHUySWFQWE92bTNUOEc0TzZxWnZobkxoL1VpZW4rK0RqOGVGQmVjVFBvTThw
42
42
  VmpLM3BoNQpuL0V3dVpDY0U2Z2h0Q0NNCi0tLS0tRU5EIENFUlRJRklDQVRF
43
43
  LS0tLS0K
44
- date: 2013-04-24 00:00:00.000000000 Z
44
+ date: 2013-04-29 00:00:00.000000000 Z
45
45
  dependencies: []
46
46
  description: ! 'New Relic is a performance management system, developed by New Relic,
47
47
 
metadata.gz.sig CHANGED
Binary file