avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-2013) Unit test failure in Ruby 1.9
Date Mon, 03 Apr 2017 01:44:41 GMT

     [ https://issues.apache.org/jira/browse/AVRO-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Busbey updated AVRO-2013:
------------------------------
    Attachment: AVRO-2013-branch-1.8.v0.patch

branch-1.8 only differs from master in commit message.

> Unit test failure in Ruby 1.9
> -----------------------------
>
>                 Key: AVRO-2013
>                 URL: https://issues.apache.org/jira/browse/AVRO-2013
>             Project: Avro
>          Issue Type: Bug
>          Components: ruby
>    Affects Versions: 1.7.8
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>            Priority: Critical
>             Fix For: 1.7.8
>
>         Attachments: AVRO-2013.0.patch, AVRO-2013-branch-1.8.v0.patch
>
>
> {code}
>   1) Error:
> test_md5_fingerprint(TestFingerprints):
> JSON::GeneratorError: only generation of JSON objects or arrays allowed
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in
`generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in
`generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in
`dump'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema.rb:143:in `md5_fingerprint'
>     /Users/busbey/projects/avro/lang/ruby/test/test_fingerprints.rb:26:in `test_md5_fingerprint'
>   2) Error:
> test_sha256_fingerprint(TestFingerprints):
> JSON::GeneratorError: only generation of JSON objects or arrays allowed
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in
`generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in
`generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in
`dump'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema.rb:149:in `sha256_fingerprint'
>     /Users/busbey/projects/avro/lang/ruby/test/test_fingerprints.rb:35:in `test_sha256_fingerprint'
>   3) Error:
> test_primitives(TestSchemaNormalization):
> JSON::GeneratorError: only generation of JSON objects or arrays allowed
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in
`generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in
`generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in
`dump'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:28:in `block
in test_primitives'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:23:in `each'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:23:in `test_primitives'
>   4) Error:
> test_shared_dataset(TestSchemaNormalization):
> NameError: uninitialized constant CaseFinder::StringScanner
>     /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:11:in `initialize'
>     /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:7:in `new'
>     /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:7:in `cases'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:166:in `test_shared_dataset'
> 52 tests, 799 assertions, 0 failures, 4 errors, 0 skips
> {code}
> I'm using 1.9.3 installed via RVM.
> {code}
> Busbey-MBA:ruby busbey$ rvm version
> rvm 1.29.1 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/]
> Busbey-MBA:ruby busbey$ rvm list
> rvm rubies
> => ruby-1.9.3-p551 [ x86_64 ]
>  * ruby-2.2.1 [ x86_64 ]
> # => - current
> # =* - current && default
> #  * - default
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message