[DRE-maint] Bug#895132: ruby-grape-msgpack: FTBFS and Debci failure

Adrian Bunk bunk at debian.org
Sat Apr 7 14:00:11 BST 2018


Source: ruby-grape-msgpack
Version: 0.2.0-1
Severity: serious
Tags: buster sid

https://ci.debian.net/packages/r/ruby-grape-msgpack/unstable/amd64/
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ruby-grape-msgpack.html

...
Failures:

  1) MockAPI GET /exception 
     Failure/Error:
       def call(message, backtrace, options = {}, env = nil)
         result = message.is_a?(Hash) ? message : { error: message }
         if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
           result = result.merge(backtrace: backtrace)
         end
         MessagePack.pack(result)

     ArgumentError:
       wrong number of arguments (given 5, expected 2..4)
     # ./lib/grape/msgpack.rb:19:in `call'
     # ./spec/grape/msgpack_spec.rb:89:in `block (3 levels) in <top (required)>'
     # ./spec/grape/msgpack_spec.rb:93:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # StandardError:
     #   an error occurred
     #   ./spec/grape/msgpack_spec.rb:36:in `block in <class:MockAPI>'

  2) MockAPI GET /exception 
     Failure/Error:
       def call(message, backtrace, options = {}, env = nil)
         result = message.is_a?(Hash) ? message : { error: message }
         if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
           result = result.merge(backtrace: backtrace)
         end
         MessagePack.pack(result)

     ArgumentError:
       wrong number of arguments (given 5, expected 2..4)
     # ./lib/grape/msgpack.rb:19:in `call'
     # ./spec/grape/msgpack_spec.rb:89:in `block (3 levels) in <top (required)>'
     # ./spec/grape/msgpack_spec.rb:94:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # StandardError:
     #   an error occurred
     #   ./spec/grape/msgpack_spec.rb:36:in `block in <class:MockAPI>'

  3) MockAPI GET /exception 
     Failure/Error:
       def call(message, backtrace, options = {}, env = nil)
         result = message.is_a?(Hash) ? message : { error: message }
         if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
           result = result.merge(backtrace: backtrace)
         end
         MessagePack.pack(result)

     ArgumentError:
       wrong number of arguments (given 5, expected 2..4)
     # ./lib/grape/msgpack.rb:19:in `call'
     # ./spec/grape/msgpack_spec.rb:89:in `block (3 levels) in <top (required)>'
     # ./spec/grape/msgpack_spec.rb:95:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # StandardError:
     #   an error occurred
     #   ./spec/grape/msgpack_spec.rb:36:in `block in <class:MockAPI>'

  4) MockAPI POST /input 
     Failure/Error:
       def call(message, backtrace, options = {}, env = nil)
         result = message.is_a?(Hash) ? message : { error: message }
         if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
           result = result.merge(backtrace: backtrace)
         end
         MessagePack.pack(result)

     ArgumentError:
       wrong number of arguments (given 5, expected 2..4)
     # ./lib/grape/msgpack.rb:19:in `call'
     # ./spec/grape/msgpack_spec.rb:101:in `block (3 levels) in <top (required)>'
     # ./spec/grape/msgpack_spec.rb:105:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # NoMethodError:
     #   undefined method `name' for {"name"=>"joe"}:ActiveSupport::HashWithIndifferentAccess
     #   ./spec/grape/msgpack_spec.rb:43:in `block in <class:MockAPI>'

  5) MockAPI POST /input 
     Failure/Error:
       def call(message, backtrace, options = {}, env = nil)
         result = message.is_a?(Hash) ? message : { error: message }
         if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
           result = result.merge(backtrace: backtrace)
         end
         MessagePack.pack(result)

     ArgumentError:
       wrong number of arguments (given 5, expected 2..4)
     # ./lib/grape/msgpack.rb:19:in `call'
     # ./spec/grape/msgpack_spec.rb:101:in `block (3 levels) in <top (required)>'
     # ./spec/grape/msgpack_spec.rb:106:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # NoMethodError:
     #   undefined method `name' for {"name"=>"joe"}:ActiveSupport::HashWithIndifferentAccess
     #   ./spec/grape/msgpack_spec.rb:43:in `block in <class:MockAPI>'

  6) MockAPI POST /input 
     Failure/Error:
       def call(message, backtrace, options = {}, env = nil)
         result = message.is_a?(Hash) ? message : { error: message }
         if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
           result = result.merge(backtrace: backtrace)
         end
         MessagePack.pack(result)

     ArgumentError:
       wrong number of arguments (given 5, expected 2..4)
     # ./lib/grape/msgpack.rb:19:in `call'
     # ./spec/grape/msgpack_spec.rb:101:in `block (3 levels) in <top (required)>'
     # ./spec/grape/msgpack_spec.rb:107:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # NoMethodError:
     #   undefined method `name' for {"name"=>"joe"}:ActiveSupport::HashWithIndifferentAccess
     #   ./spec/grape/msgpack_spec.rb:43:in `block in <class:MockAPI>'

Finished in 0.0828 seconds (files took 0.68182 seconds to load)
15 examples, 6 failures

Failed examples:

rspec ./spec/grape/msgpack_spec.rb:93 # MockAPI GET /exception 
rspec ./spec/grape/msgpack_spec.rb:94 # MockAPI GET /exception 
rspec ./spec/grape/msgpack_spec.rb:95 # MockAPI GET /exception 
rspec ./spec/grape/msgpack_spec.rb:105 # MockAPI POST /input 
rspec ./spec/grape/msgpack_spec.rb:106 # MockAPI POST /input 
rspec ./spec/grape/msgpack_spec.rb:107 # MockAPI POST /input 

/usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby2.5" failed. Exiting.
dh_auto_install: dh_ruby --install /build/1st/ruby-grape-msgpack-0.2.0/debian/ruby-grape-msgpack returned exit code 1
make: *** [debian/rules:18: binary] Error 1



More information about the Pkg-ruby-extras-maintainers mailing list