Skip to content

Instantly share code, notes, and snippets.

@ph
Created May 17, 2017 19:15
Show Gist options
  • Save ph/1eb38df5c589ed1d405e2fd46bd38083 to your computer and use it in GitHub Desktop.
Save ph/1eb38df5c589ed1d405e2fd46bd38083 to your computer and use it in GitHub Desktop.
Failures:
1) LogStash::Timestamp constructors should work
Failure/Error: expect(t.time).to eq(now)
expected: 2017-05-17 19:08:23.399613000 +0000
got: 2017-05-17 19:08:23.399000000 +0000
(compared using ==)
Diff:
# ./logstash-core/spec/logstash/timestamp_spec.rb:17:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /Users/ph/es/logstash/second/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
# ./rakelib/test.rake:49:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<main>'
2) LogStash::Timestamp should allow unary operation +
Failure/Error: expect(t).to eq(current + 10)
expected: 2017-05-17 15:08:42.678422000 -0400
got: 2017-05-17 19:08:42.678000000 +0000
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-2017-05-17 15:08:42 -0400
+2017-05-17 19:08:42 UTC
# ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:62:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /Users/ph/es/logstash/second/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
# ./rakelib/test.rake:49:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<main>'
3) LogStash::Timestamp numeric casting methods should support to_f
Failure/Error: expect(subject.to_f).to eq(now.to_f)
expected: 1495048112.941092
got: 1495048112.941
(compared using ==)
# ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:107:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /Users/ph/es/logstash/second/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
# ./rakelib/test.rake:49:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<main>'
4) LogStash::Timestamp subtraction should work on with time object
Failure/Error: expect(t - current).to eq(10)
expected: 10
got: 9.999685
(compared using ==)
# ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:76:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /Users/ph/es/logstash/second/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
# ./rakelib/test.rake:49:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<main>'
5) LogStash::Timestamp subtraction should work with numeric value
Failure/Error: expect(t - 10).to eq(current)
expected: 2017-05-17 15:08:32.951839000 -0400
got: 2017-05-17 19:08:32.951000000 +0000
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-2017-05-17 15:08:32 -0400
+2017-05-17 19:08:32 UTC
# ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:82:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /Users/ph/es/logstash/second/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
# ./rakelib/test.rake:49:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<main>'
6) LogStash::Filters::Base should provide class public API
Failure/Error: expect(subject).to respond_to(method)
expected <LogStash::Filters::Base id=>"filter_87c86994-3871-4e0d-b74d-f2b8661c6d02", enable_metric=>true, periodic_flush=>false> to respond to :filter_matched
# ./logstash-core/spec/logstash/filters/base_spec.rb:28:in `block in (root)'
# ./logstash-core/spec/logstash/filters/base_spec.rb:27:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /Users/ph/es/logstash/second/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
# ./rakelib/test.rake:49:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<main>'
7) LogStash::Compiler compiling to Pipeline compiling multiple sources applying protocol and id metadata should apply the correct source metadata to all components
Failure/Error: pipeline.plugin_vertices.each do |pv|
NoMethodError:
undefined method `each' for #<Java::JavaUtilStream::ReferencePipeline::3:0x2489d1ce>
# ./logstash-core/spec/logstash/compiler/compiler_spec.rb:59:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /Users/ph/es/logstash/second/logstash/vendor/bundle/jruby/2.3.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
# ./rakelib/test.rake:49:in `block in (root)'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `block in execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:250:in `execute'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:194:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:216:in `block in invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:214:in `invoke_prerequisites'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:193:in `block in invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:187:in `invoke_with_call_chain'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/task.rb:180:in `invoke'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:152:in `invoke_task'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:108:in `block in top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:117:in `run_with_threads'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:102:in `top_level'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:80:in `block in run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:178:in `standard_exception_handling'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/application.rb:77:in `run'
# ./vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<main>'
Finished in 5 minutes 27 seconds (files took 48.92 seconds to load)
2107 examples, 7 failures, 2 pending
Failed examples:
rspec ./logstash-core/spec/logstash/timestamp_spec.rb:8 # LogStash::Timestamp constructors should work
rspec ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:59 # LogStash::Timestamp should allow unary operation +
rspec ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:106 # LogStash::Timestamp numeric casting methods should support to_f
rspec ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:73 # LogStash::Timestamp subtraction should work on with time object
rspec ./logstash-core/spec/logstash/legacy_ruby_timestamp_spec.rb:79 # LogStash::Timestamp subtraction should work with numeric value
rspec ./logstash-core/spec/logstash/filters/base_spec.rb:26 # LogStash::Filters::Base should provide class public API
rspec ./logstash-core/spec/logstash/compiler/compiler_spec.rb:58 # LogStash::Compiler compiling to Pipeline compiling multiple sources applying protocol and id metadata should apply the correct source metadata to all components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment