[ 
https://issues.apache.org/jira/browse/AVRO-3203?focusedWorklogId=650003&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-650003
 ]

ASF GitHub Bot logged work on AVRO-3203:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Sep/21 13:09
            Start Date: 13/Sep/21 13:09
    Worklog Time Spent: 10m 
      Work Description: RyanSkraba commented on pull request #1330:
URL: https://github.com/apache/avro/pull/1330#issuecomment-918173657


   Thanks so much for the fix!  
   
   When I rebase this on master, I get errors with both `./build.sh test` and 
`./build.sh dist` -- has something changed with the ubuntu 20.04 base image?
   
   ## ./build.sh test:
   
   ```
   + cd lang/ruby
   + rake generate_interop
   rake aborted!
   LoadError: cannot load such file -- echoe
   /home/rskraba/avro/lang/ruby/Rakefile:19:in `<top (required)>'
   /usr/share/rubygems-integration/all/gems/rake-13.0.1/exe/rake:27:in `<top 
(required)>'
   (See full trace by running task with --trace)
   ```
   
   ## ./build.sh dist:
   
   ```
   ~/avro/lang/ruby$ ./build.sh dist
   Successfully installed bundler-1.17.3
   1 gem installed
   Not using rbenv
   Using rake 13.0.6
   Using allison 2.0.3
   Using ast 2.4.2
   Using bundler 2.1.2
   Using rdoc 6.3.2
   Using json_pure 2.5.1
   Using rubyforge 2.0.4
   Using echoe 4.6.6
   Using memory_profiler 1.0.0
   Using multi_json 1.15.0
   Using parallel 1.21.0
   Using parser 3.0.2.0
   Using power_assert 2.0.1
   Using rainbow 3.0.0
   Using regexp_parser 2.1.1
   Using rexml 3.2.5
   Using rubocop-ast 1.11.0
   Using ruby-progressbar 1.11.0
   Using unicode-display_width 2.0.0
   Using rubocop 1.20.0
   Using snappy 0.2.0
   Using test-unit 3.4.6
   Using webrick 1.7.0
   Using zstd-ruby 1.5.0.0
   Bundle complete! 11 Gemfile dependencies, 24 gems now installed.
   Use `bundle info [gemname]` to see where a bundled gem is installed.
   mkdir -p pkg
   Gemspec generated
   mkdir -p pkg/avro-1.11.0.pre1
   rm -f pkg/avro-1.11.0.pre1/CHANGELOG
   ln CHANGELOG pkg/avro-1.11.0.pre1/CHANGELOG
   rm -f pkg/avro-1.11.0.pre1/LICENSE
   ln LICENSE pkg/avro-1.11.0.pre1/LICENSE
   rm -f pkg/avro-1.11.0.pre1/Manifest
   ln Manifest pkg/avro-1.11.0.pre1/Manifest
   rm -f pkg/avro-1.11.0.pre1/NOTICE
   ln NOTICE pkg/avro-1.11.0.pre1/NOTICE
   rm -f pkg/avro-1.11.0.pre1/Rakefile
   ln Rakefile pkg/avro-1.11.0.pre1/Rakefile
   rm -f pkg/avro-1.11.0.pre1/avro.gemspec
   ln avro.gemspec pkg/avro-1.11.0.pre1/avro.gemspec
   mkdir -p pkg/avro-1.11.0.pre1/interop
   rm -f pkg/avro-1.11.0.pre1/interop/test_interop.rb
   ln interop/test_interop.rb pkg/avro-1.11.0.pre1/interop/test_interop.rb
   mkdir -p pkg/avro-1.11.0.pre1/lib
   rm -f pkg/avro-1.11.0.pre1/lib/avro.rb
   ln lib/avro.rb pkg/avro-1.11.0.pre1/lib/avro.rb
   mkdir -p pkg/avro-1.11.0.pre1/lib/avro
   rm -f pkg/avro-1.11.0.pre1/lib/avro/VERSION.txt
   ln lib/avro/VERSION.txt pkg/avro-1.11.0.pre1/lib/avro/VERSION.txt
   rm -f pkg/avro-1.11.0.pre1/lib/avro/data_file.rb
   ln lib/avro/data_file.rb pkg/avro-1.11.0.pre1/lib/avro/data_file.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/io.rb
   ln lib/avro/io.rb pkg/avro-1.11.0.pre1/lib/avro/io.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/ipc.rb
   ln lib/avro/ipc.rb pkg/avro-1.11.0.pre1/lib/avro/ipc.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/logical_types.rb
   ln lib/avro/logical_types.rb pkg/avro-1.11.0.pre1/lib/avro/logical_types.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/protocol.rb
   ln lib/avro/protocol.rb pkg/avro-1.11.0.pre1/lib/avro/protocol.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/schema.rb
   ln lib/avro/schema.rb pkg/avro-1.11.0.pre1/lib/avro/schema.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/schema_compatibility.rb
   ln lib/avro/schema_compatibility.rb 
pkg/avro-1.11.0.pre1/lib/avro/schema_compatibility.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/schema_normalization.rb
   ln lib/avro/schema_normalization.rb 
pkg/avro-1.11.0.pre1/lib/avro/schema_normalization.rb
   rm -f pkg/avro-1.11.0.pre1/lib/avro/schema_validator.rb
   ln lib/avro/schema_validator.rb 
pkg/avro-1.11.0.pre1/lib/avro/schema_validator.rb
   mkdir -p pkg/avro-1.11.0.pre1/test
   rm -f pkg/avro-1.11.0.pre1/test/case_finder.rb
   ln test/case_finder.rb pkg/avro-1.11.0.pre1/test/case_finder.rb
   rm -f pkg/avro-1.11.0.pre1/test/random_data.rb
   ln test/random_data.rb pkg/avro-1.11.0.pre1/test/random_data.rb
   rm -f pkg/avro-1.11.0.pre1/test/sample_ipc_client.rb
   ln test/sample_ipc_client.rb pkg/avro-1.11.0.pre1/test/sample_ipc_client.rb
   rm -f pkg/avro-1.11.0.pre1/test/sample_ipc_http_client.rb
   ln test/sample_ipc_http_client.rb 
pkg/avro-1.11.0.pre1/test/sample_ipc_http_client.rb
   rm -f pkg/avro-1.11.0.pre1/test/sample_ipc_http_server.rb
   ln test/sample_ipc_http_server.rb 
pkg/avro-1.11.0.pre1/test/sample_ipc_http_server.rb
   rm -f pkg/avro-1.11.0.pre1/test/sample_ipc_server.rb
   ln test/sample_ipc_server.rb pkg/avro-1.11.0.pre1/test/sample_ipc_server.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_datafile.rb
   ln test/test_datafile.rb pkg/avro-1.11.0.pre1/test/test_datafile.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_fingerprints.rb
   ln test/test_fingerprints.rb pkg/avro-1.11.0.pre1/test/test_fingerprints.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_help.rb
   ln test/test_help.rb pkg/avro-1.11.0.pre1/test/test_help.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_io.rb
   ln test/test_io.rb pkg/avro-1.11.0.pre1/test/test_io.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_logical_types.rb
   ln test/test_logical_types.rb pkg/avro-1.11.0.pre1/test/test_logical_types.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_protocol.rb
   ln test/test_protocol.rb pkg/avro-1.11.0.pre1/test/test_protocol.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_schema.rb
   ln test/test_schema.rb pkg/avro-1.11.0.pre1/test/test_schema.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_schema_compatibility.rb
   ln test/test_schema_compatibility.rb 
pkg/avro-1.11.0.pre1/test/test_schema_compatibility.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_schema_normalization.rb
   ln test/test_schema_normalization.rb 
pkg/avro-1.11.0.pre1/test/test_schema_normalization.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_schema_validator.rb
   ln test/test_schema_validator.rb 
pkg/avro-1.11.0.pre1/test/test_schema_validator.rb
   rm -f pkg/avro-1.11.0.pre1/test/test_socket_transport.rb
   ln test/test_socket_transport.rb 
pkg/avro-1.11.0.pre1/test/test_socket_transport.rb
   rm -f pkg/avro-1.11.0.pre1/test/tool.rb
   ln test/tool.rb pkg/avro-1.11.0.pre1/test/tool.rb
   cd pkg/avro-1.11.0.pre1
   rake aborted!
   ArgumentError: wrong number of arguments (given 2, expected 0)
   
/home/rskraba/avro/lang/ruby/.gem/gems/echoe-4.6.6/lib/echoe/rubygems.rb:10:in 
`validate'
   /home/rskraba/avro/lang/ruby/.gem/gems/rake-13.0.6/exe/rake:27:in `<top 
(required)>'
   Tasks: TOP => dist => gem => pkg/avro-1.11.0.pre1.gem
   (See full trace by running task with --trace)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 650003)
    Time Spent: 20m  (was: 10m)

> Fix the Ruby distribution build to work
> ---------------------------------------
>
>                 Key: AVRO-3203
>                 URL: https://issues.apache.org/jira/browse/AVRO-3203
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: build, ruby
>            Reporter: Kengo Seki
>            Assignee: Kengo Seki
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently, building the Ruby distribution in the Docker container fails as 
> follows.
> {code:java}
> $ ./build.sh docker
> $ cd lang/ruby 
> $ ./build.sh clean dist
> ...
> rake aborted!
> ArgumentError: wrong number of arguments (given 2, expected 0)
> /home/sekikn/avro/lang/ruby/.gem/gems/echoe-4.6.6/lib/echoe/rubygems.rb:10:in 
> `validate'
> /home/sekikn/avro/lang/ruby/.gem/gems/rake-13.0.6/exe/rake:27:in `<top 
> (required)>'
> Tasks: TOP => dist => gem => pkg/avro-1.11.0.pre1.gem
> (See full trace by running task with --trace)
> {code}
> This is because Ruby 2.7 is used in the Docker container and its rubygems 
> library version is 3.1.2.
>  [rubygems have changed the semantics of its validate function from 
> v3.x|https://github.com/rubygems/rubygems/commit/3966078e62c6b048cd8d2435b9399a9688c6f8f1#diff-8f51ef27aa7c1bf289ef010df42fb4a5f0635d0149776e57bc86985c98bc6480L262-R264],
>  and echoe doesn't seem to be compatible with that change.
> We should replace echoe with something simliar since it has not been 
> maintained for several years, but it looks a bit tough to me, so I propose an 
> easy workaround that building gem with the {{gem build}} command directly 
> instead of via bundler, and using echoe only to generate avro.gemspec.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to