avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <bus...@cloudera.com>
Subject Re: Test Failure in Ruby - AVRO-1.7
Date Thu, 23 Mar 2017 20:05:32 GMT
Ruby 1.8 not working on branch-1.7 might be something I want to fix,
since I think that's the version we rely on in HBase (and we rely on
Ruby 1.8).

On Thu, Mar 23, 2017 at 3:04 PM, Sean Busbey <busbey@cloudera.com> wrote:
> Short version: we don't sufficiently document what version(s) of Ruby
> we expect to work.
>
> We have AVRO-1559 for dropping Ruby 1.8 support, but it's open. There
> are several tickets referenced from there that mention not working
> with Ruby 1.8. (AVRO-1694, AVRO-1783). AVRO-1775 mentions having Ruby
> 2.2 working for branch-1.8, but AVRO-1516 shows 2.0+ broken on 1.7+.
>
> So I think we want to work for Ruby 1.9 - 2.2, but 2.0+ is broken. Can
> you test in Ruby 1.9?
>
>
>
> On Thu, Mar 23, 2017 at 11:32 AM, Sean Busbey <busbey@cloudera.com> wrote:
>> Hurm. I didn't think our Avro stuff in the 1.7 branch worked with Ruby 2.1.
>> lemme see if we doc this anywhere.
>>
>> On Thu, Mar 23, 2017 at 11:20 AM, suraj acharya <suraj.spa@gmail.com> wrote:
>>> This is what I am using.
>>> ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
>>>
>>> Hope that helps.
>>>
>>> S
>>>
>>> -Suraj Acharya
>>>
>>> On Thu, Mar 23, 2017 at 8:51 AM, Sean Busbey <busbey@cloudera.com> wrote:
>>>
>>>> What's your Ruby environment?
>>>>
>>>> On Wed, Mar 22, 2017 at 5:34 PM, suraj acharya <suraj.spa@gmail.com>
>>>> wrote:
>>>> > Hi,
>>>> >
>>>> > I was trying to make a release for 1.7 and I am seeing 3 tests fail
in
>>>> ruby.
>>>> > I was wondering if someone in the community can help resolve these issues
>>>> > so we can go ahead and work on getting a release.
>>>> >
>>>> > I have attached a sample of the error.
>>>> >
>>>> >   1) Error:
>>>> > TestFingerprints#test_md5_fingerprint:
>>>> > JSON::GeneratorError: only generation of JSON objects or arrays allowed
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:394:in
>>>> > `dump'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema.rb:143:in
>>>> > `md5_fingerprint'
>>>> >     /home/sacharya/avro/lang/ruby/test/test_fingerprints.rb:26:in
>>>> > `test_md5_fingerprint'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1265:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit/testcase.rb:17:in `run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:940:in `block in _run_suite'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `map'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `_run_suite'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:663:in `block in _run_suites'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `each'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `_run_suites'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:884:in `_run_anything'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1092:in `run_tests'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1079:in `block in _run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `each'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `_run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1066:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:27:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:780:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:372:in `block (2 levels) in
>>>> autorun'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:33:in `run_once'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:371:in `block in autorun'
>>>> >
>>>> > [ 8/52] TestFingerprints#test_sha256_fingerprint = 0.00 s
>>>> >   2) Error:
>>>> > TestFingerprints#test_sha256_fingerprint:
>>>> > JSON::GeneratorError: only generation of JSON objects or arrays allowed
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:394:in
>>>> > `dump'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema.rb:149:in
>>>> > `sha256_fingerprint'
>>>> >     /home/sacharya/avro/lang/ruby/test/test_fingerprints.rb:35:in
>>>> > `test_sha256_fingerprint'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1265:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit/testcase.rb:17:in `run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:940:in `block in _run_suite'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `map'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `_run_suite'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:663:in `block in _run_suites'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `each'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `_run_suites'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:884:in `_run_anything'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1092:in `run_tests'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1079:in `block in _run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `each'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `_run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1066:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:27:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:780:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:372:in `block (2 levels) in
>>>> autorun'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:33:in `run_once'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:371:in `block in autorun'
>>>> >
>>>> > [16/52]
>>>> > TestIO#test_enum_with_duplicate/home/sacharya/avro/
>>>> lang/ruby/lib/avro/schema.rb:316:
>>>> > warning: too many arguments for format string
>>>> > [32/52] TestIO#test_union = 0.00 s
>>>> >   3) Failure:
>>>> > TestIO#test_union [/home/sacharya/avro/lang/ruby/test/test_io.rb:337]:
>>>> > <-3372032630846393039> expected but was
>>>> > <-3.372032630846393e+18>.
>>>> >   1) Error:
>>>> > TestFingerprints#test_md5_fingerprint:
>>>> > JSON::GeneratorError: only generation of JSON objects or arrays allowed
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:394:in
>>>> > `dump'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema.rb:143:in
>>>> > `md5_fingerprint'
>>>> >     /home/sacharya/avro/lang/ruby/test/test_fingerprints.rb:26:in
>>>> > `test_md5_fingerprint'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1265:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit/testcase.rb:17:in `run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:940:in `block in _run_suite'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `map'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `_run_suite'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:663:in `block in _run_suites'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `each'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `_run_suites'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:884:in `_run_anything'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1092:in `run_tests'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1079:in `block in _run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `each'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `_run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1066:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:27:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:780:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:372:in `block (2 levels) in
>>>> autorun'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:33:in `run_once'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:371:in `block in autorun'
>>>> >
>>>> > [ 8/52] TestFingerprints#test_sha256_fingerprint = 0.00 s
>>>> >   2) Error:
>>>> > TestFingerprints#test_sha256_fingerprint:
>>>> > JSON::GeneratorError: only generation of JSON objects or arrays allowed
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:224:in
>>>> > `generate'
>>>> >
>>>> > /home/sacharya/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/
>>>> json/common.rb:394:in
>>>> > `dump'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in
>>>> > `to_parsing_form'
>>>> >     /home/sacharya/avro/lang/ruby/lib/avro/schema.rb:149:in
>>>> > `sha256_fingerprint'
>>>> >     /home/sacharya/avro/lang/ruby/test/test_fingerprints.rb:35:in
>>>> > `test_sha256_fingerprint'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1265:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit/testcase.rb:17:in `run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:940:in `block in _run_suite'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `map'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:933:in `_run_suite'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:663:in `block in _run_suites'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `each'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:661:in `_run_suites'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:884:in `_run_anything'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1092:in `run_tests'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1079:in `block in _run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `each'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1078:in `_run'
>>>> >     /usr/lib/ruby/2.1.0/minitest/unit.rb:1066:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:27:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:780:in `run'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:372:in `block (2 levels) in
>>>> autorun'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:33:in `run_once'
>>>> >     /usr/lib/ruby/2.1.0/test/unit.rb:371:in `block in autorun'
>>>> >
>>>> > [16/52]
>>>> > TestIO#test_enum_with_duplicate/home/sacharya/avro/
>>>> lang/ruby/lib/avro/schema.rb:316:
>>>> > warning: too many arguments for format string
>>>> > [32/52] TestIO#test_union = 0.00 s
>>>> >   3) Failure:
>>>> > TestIO#test_union [/home/sacharya/avro/lang/ruby/test/test_io.rb:337]:
>>>> > <-3372032630846393039> expected but was
>>>> > <-3.372032630846393e+18>.
>>>> >
>>>> >
>>>> > -Suraj Acharya
>>>>
>>>>
>>>>
>>>> --
>>>> busbey
>>>>
>>
>>
>>
>> --
>> busbey
>
>
>
> --
> busbey



-- 
busbey

Mime
View raw message