-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pure-ruby grok fails tests #6
Comments
I'm confused. You're using an older version of grok with tests from the master branch? |
I tried removing the gem and reinstalling from source. Unless I'm screwing
|
What version of jruby are you using? |
Sorry, not at my computer right now. I'll send better bug reports. if it's
|
No worries about bug report quality, easy to ask for more data. I want grok to work for you :) |
Ok, so here's what I've got - again, I'm new to ruby - I'm coming from a Before you go and read the rest of this email, I'm just pulling from So here we go: That said, I've just realized I don't actually need the grok library vic On Wed, Oct 12, 2011 at 6:08 PM, Jordan Sissel <
|
On Wed, Oct 12, 2011 at 5:30 PM, Victor Ng <
If you look at what 'make test-pure' does, it invokes "ruby". The 'pure ruby It is likely that whatever "ruby" runs is not one of these. Here, I can even % ruby --version % make test-pure But if I use a supported version of ruby, it works (ruby 1.9.2, jruby 1.6.4, -Jordan |
bingo. thanks. i didn't see the 'ruby' in there. flipped it to jruby and thanks, On Thu, Oct 13, 2011 at 11:56 AM, Jordan Sissel <
|
The makefile has ruby hardcoded into it, if you flip it to jruby - things work fine. |
On Thu, Oct 13, 2011 at 9:22 AM, Victor Ng <
-Jordan |
I just installed jls-grok 0.9.0 and when I fetch code from the github repository and manually run tests, I get this:
/Users/victorng/dev/grok/ruby/test/pure-ruby $ jruby alltests.rb
Loading tests: ./general/basic_test.rb
Loading tests: ./general/captures_test.rb
Loading tests: ./patterns/day.rb
Loading tests: ./patterns/host.rb
Loading tests: ./patterns/ip.rb
Loading tests: ./patterns/iso8601.rb
Loading tests: ./patterns/month.rb
Loading tests: ./patterns/number.rb
Loading tests: ./patterns/path.rb
Loading tests: ./patterns/prog.rb
Loading tests: ./patterns/quotedstring.rb
Loading tests: ./patterns/uri.rb
Loaded suite alltests
Started
E..EE..EEEEEFEEEEEEEEEEEEEEEEEEEE
Finished in 0.524 seconds.
Error:
test_days(DayPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/day.rb:10:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_grok_expanded_pattern_works_correctly(GrokBasicTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/basic_test.rb:45:in
test_grok_expanded_pattern_works_correctly'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_grok_load_patterns_from_file(GrokBasicTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/basic_test.rb:55:in
test_grok_load_patterns_from_file'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_basic_capture(GrokPatternCapturingTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/captures_test.rb:23:in
test_basic_capture'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_capture_methods(GrokPatternCapturingTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/captures_test.rb:12:in
test_capture_methods'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_multiple_captures(GrokPatternCapturingTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/captures_test.rb:64:in
test_multiple_captures'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_multiple_captures_with_same_name(GrokPatternCapturingTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/captures_test.rb:52:in
test_multiple_captures_with_same_name'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_nested_captures(GrokPatternCapturingTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/captures_test.rb:77:in
test_nested_captures'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Failure:
test_nesting_recursion(GrokPatternCapturingTests)
[./general/captures_test.rb:89:in
test_nesting_recursion' org/jruby/RubyKernel.java:2092:in
send'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each']:exception expected but was
Class:
Message: <"can't convert String into Integer">
---Backtrace---
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/captures_test.rb:90:in
test_nesting_recursion'./general/captures_test.rb:89:in
test_nesting_recursion' org/jruby/RubyKernel.java:2092:in
send'org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyArray.java:1603:in `each'
Error:
test_valid_capture_subnames(GrokPatternCapturingTests):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./general/captures_test.rb:98:in
test_valid_capture_subnames'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_hosts(HostPattternTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/host.rb:10:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_ips(IPPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/ip.rb:13:in
test_ips'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_non_ips(IPPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/ip.rb:23:in
test_non_ips'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_iso8601(ISO8601PatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/iso8601.rb:10:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_iso8601_nomatch(ISO8601PatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/iso8601.rb:10:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_months(MonthPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/month.rb:10:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_match_base16num(NumberPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/number.rb:58:in
test_match_base16num'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_match_number(NumberPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/number.rb:13:in
test_match_number'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_match_number_amid_things(NumberPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/number.rb:37:in
test_match_number_amid_things'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_match_number_float(NumberPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/number.rb:27:in
test_match_number_float'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_no_match_number(NumberPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/number.rb:50:in
test_no_match_number'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_unix_paths(PathPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/path.rb:10:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_windows_paths(PathPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/path.rb:10:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_progs(ProgPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/prog.rb:9:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'Error:
test_escaped_quotes_no_match_quoted_string(QuotedStringPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/quotedstring.rb:38:in
test_escaped_quotes_no_match_quoted_string'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_non_quoted_strings_no_match(QuotedStringPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/quotedstring.rb:47:in
test_non_quoted_strings_no_match'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_quoted_string_common(QuotedStringPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/quotedstring.rb:13:in
test_quoted_string_common'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_quoted_string_inside_escape(QuotedStringPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/quotedstring.rb:27:in
test_quoted_string_inside_escape'org/jruby/RubyKernel.java:2092:in
send' org/jruby/RubyArray.java:1603:in
each'org/jruby/RubyArray.java:1603:in `each'
Error:
test_urls(URIPatternsTest):
TypeError: can't convert String into Integer
org/jruby/RubyArray.java:1338:in
[]' org/jruby/RubyMatchData.java:403:in
[]'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:78:in
compile' org/jruby/RubyKernel.java:1419:in
loop'/Users/victorng/dev/grok/ruby/lib/grok-pure.rb:70:in
compile' ./patterns/uri.rb:9:in
setup'org/jruby/RubyArray.java:1603:in
each' org/jruby/RubyArray.java:1603:in
each'33 tests, 14 assertions, 1 failures, 28 errors
The text was updated successfully, but these errors were encountered: