What's your Ruby environment?

On Wed, Mar 22, 2017 at 5:34 PM, suraj acharya <suraj....@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

Reply via email to