avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey"<bus...@apache.org>
Subject Re: Test Failure in Ruby - AVRO-1.7
Date Wed, 12 Apr 2017 03:44:14 GMT
the Ruby library is now passing tests on Ruby 1.9 - 2.4 for branch-1.7. I ended up backporting
several things that were fixed in branch-1.8:

* 835bcba - (HEAD -> branch-1.7, apache/branch-1.7) AVRO-1775. Ruby: Use test-unit gem
for running tests. (3 minutes ago)
* c235b4c - AVRO-1782. Ruby: Fix unit test failures in new versions of Ruby. (3 minutes ago)
* ff2c83f - AVRO-1688. Ruby test_union(TestIO) is failing. (4 minutes ago)

Probably worth a different thread, but I think we have a different problem on branch-1.7.
AVRO-1722 was a 1.8.0+ fix. A preliminary look at branch-1.7 suggests its licensing info was
never fixed (and there is atleast one rat failure).

On 2017-03-28 09:45 (-0500), Sean Busbey <busbey@cloudera.com> wrote: 
> Okay, I filed AVRO-2013 and I upgraded AVRO-1516 to critical.
> 
> On Tue, Mar 28, 2017 at 9:42 AM, Sean Busbey <busbey@cloudera.com> wrote:
> > Okay, I tried over the weekend to get a Ruby 1.8 install on my OS X
> > 10.11 laptop and failed. So I'm definitely not going to try to get
> > Ruby 1.8 support working in 1.7 again for this release cycle.
> >
> > With Ruby 1.9.3 I get 4 errors, three of which look like your
> > JSON::GeneratorError. I don't have one that looks like your last
> > issue, which is AVRO-1516.
> >
> > I'll file a jira for the 1.9.3 problems. What do folks think is a
> > reasonable amount of time for us to hold the 1.7.8 RCs while trying to
> > get these issues closed out?
> >
> > On Thu, Mar 23, 2017 at 3:05 PM, Sean Busbey <busbey@cloudera.com> wrote:
> >> 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
> >
> >
> >
> > --
> > busbey
> 
> 
> 
> -- 
> busbey
> 

Mime
View raw message