logstash-plugins / logstash-filter-date

Apache License 2.0
7 stars 43 forks source link

JRuby 9k job failure #102

Closed ph closed 7 years ago

ph commented 7 years ago

https://travis-ci.org/logstash-plugins/logstash-filter-date/jobs/236449625


F.....FF..............................................F.................F.....F...F..
Failures:
  1) LogStash::Filters::Date failing to parse should not apply on_success config(add_tag,add_field...) "{"thedate":"2013/Apr/21"}" when processed
     Failure/Error: insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"

     NoMethodError:
       undefined method `time' for "2013-04-21T00:00:00.000Z":String
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/logstash-core-5.4.0-java/lib/logstash/timestamp.rb:13:in `<=>'
     # uri:classloader:/jruby/kernel/basicobject.rb:4:in `!='
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/comparators19.rb:6:in `!='
     # ./spec/filters/date_spec.rb:356:in `block in (root)'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in (root)'
  2) LogStash::Filters::Date parsing microsecond-precise times with UNIX (#213) "{"mydate":"%{bad_value}"}" when processed
     Failure/Error: insist { subject.get("@timestamp") } != Time.iso8601("1970-01-01T00:00:00.000Z").utc

     NoMethodError:
       undefined method `time' for 1970-01-01 00:00:00 UTC:Time
       Did you mean?  ctime
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/logstash-core-5.4.0-java/lib/logstash/timestamp.rb:13:in `<=>'
     # uri:classloader:/jruby/kernel/basicobject.rb:4:in `!='
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/comparators19.rb:6:in `!='
     # ./spec/filters/date_spec.rb:158:in `block in (root)'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in (root)'
  3) LogStash::Filters::Date parsing microsecond-precise times with UNIX (#213) "{"mydate":1350414944.123456}" when processed
     Failure/Error: insist { subject.get("mydate") } == 1350414944.123456

     Insist::Failure:
       Expected 1350414944.123456, but got #<BigDecimal:5906ebfb,'0.1350414944123456E10',16(20)>
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/assert.rb:8:in `assert'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/comparators.rb:14:in `=='
     # ./spec/filters/date_spec.rb:165:in `block in (root)'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in (root)'
  4) LogStash::Filters::Date failing to parse should not throw an exception "{"thedate":"2013/Apr/21"}" when processed
     Failure/Error: insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"

     NoMethodError:
       undefined method `time' for "2013-04-21T00:00:00.000Z":String
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/logstash-core-5.4.0-java/lib/logstash/timestamp.rb:13:in `<=>'
     # uri:classloader:/jruby/kernel/basicobject.rb:4:in `!='
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/comparators19.rb:6:in `!='
     # ./spec/filters/date_spec.rb:325:in `block in (root)'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
  5) LogStash::Filters::Date failing to parse should apply tag_on_failure "{"thedate":"2013/Apr/21"}" when processed
     Failure/Error: insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"

     NoMethodError:
       undefined method `time' for "2013-04-21T00:00:00.000Z":String
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/logstash-core-5.4.0-java/lib/logstash/timestamp.rb:13:in `<=>'
     # uri:classloader:/jruby/kernel/basicobject.rb:4:in `!='
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/comparators19.rb:6:in `!='
     # ./spec/filters/date_spec.rb:372:in `block in (root)'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
  6) LogStash::Filters::Date parsing with UNIX "{"mydate":"%{bad_value}"}" when processed
     Failure/Error: insist { subject.get("@timestamp") } != Time.iso8601("1970-01-01T00:00:00.000Z").utc

     NoMethodError:
       undefined method `time' for 1970-01-01 00:00:00 UTC:Time
       Did you mean?  ctime
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/logstash-core-5.4.0-java/lib/logstash/timestamp.rb:13:in `<=>'
     # uri:classloader:/jruby/kernel/basicobject.rb:4:in `!='
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/comparators19.rb:6:in `!='
     # ./spec/filters/date_spec.rb:130:in `block in (root)'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
  7) LogStash::Filters::Date success to parse should apply on_success config(add_tag,add_field...) "{"thedate":"2013/04/21"}" when processed
     Failure/Error: insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"

     NoMethodError:
       undefined method `time' for "2013-04-21T00:00:00.000Z":String
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/logstash-core-5.4.0-java/lib/logstash/timestamp.rb:13:in `<=>'
     # uri:classloader:/jruby/kernel/basicobject.rb:4:in `!='
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/insist-1.0.0/lib/insist/comparators19.rb:6:in `!='
     # ./spec/filters/date_spec.rb:340:in `block in (root)'
     # /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block in /home/travis/.rvm/gems/jruby-9.1.9.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb'
Finished in 3.35 seconds (files took 4.07 seconds to load)
85 examples, 7 failures
Failed examples:
rspec ./spec/filters/date_spec.rb:355 # LogStash::Filters::Date failing to parse should not apply on_success config(add_tag,add_field...) "{"thedate":"2013/Apr/21"}" when processed
rspec ./spec/filters/date_spec.rb:156 # LogStash::Filters::Date parsing microsecond-precise times with UNIX (#213) "{"mydate":"%{bad_value}"}" when processed
rspec ./spec/filters/date_spec.rb:164 # LogStash::Filters::Date parsing microsecond-precise times with UNIX (#213) "{"mydate":1350414944.123456}" when processed
rspec ./spec/filters/date_spec.rb:324 # LogStash::Filters::Date failing to parse should not throw an exception "{"thedate":"2013/Apr/21"}" when processed
rspec ./spec/filters/date_spec.rb:371 # LogStash::Filters::Date failing to parse should apply tag_on_failure "{"thedate":"2013/Apr/21"}" when processed
rspec ./spec/filters/date_spec.rb:128 # LogStash::Filters::Date parsing with UNIX "{"mydate":"%{bad_value}"}" when processed
rspec ./spec/filters/date_spec.rb:339 # LogStash::Filters::Date success to parse should apply on_success config(add_tag,add_field...) "{"thedate":"2013/04/21"}" when processed
Randomized with seed 29039