[DRE-maint] Bug#996293: ruby-httparty: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: ArgumentError:

Antonio Terceiro terceiro at debian.org
Tue Oct 12 23:18:24 BST 2021


Source: ruby-httparty
Version: 0.18.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-httparty was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
>      ArgumentError:
>        wrong number of arguments (given 2, expected 1)
>      # ./lib/httparty/request/body.rb:6:in `initialize'
>      # ./spec/httparty/request/body_spec.rb:10:in `new'
>      # ./spec/httparty/request/body_spec.rb:10:in `block (3 levels) in <top (required)>'
>      # ./spec/httparty/request/body_spec.rb:15:in `block (4 levels) in <top (required)>'
> 
> Top 10 slowest examples (1.21 seconds, 28.9% of total time):
>   HTTParty#get should be able parse response type xml automatically
>     0.21851 seconds ./spec/httparty_spec.rb:906
>   HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, when the verify option is set to false
>     0.16157 seconds ./spec/httparty/ssl_spec.rb:19
>   HTTParty::Request SSL certificate verification should provide the certificate used by the server via peer_cert
>     0.15752 seconds ./spec/httparty/ssl_spec.rb:74
>   HTTParty::Request SSL certificate verification should work when no trusted CA list is specified, even with a bogus hostname, when the verify option is set to true
>     0.15627 seconds ./spec/httparty/ssl_spec.rb:29
>   HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a certificate authority
>     0.14463 seconds ./spec/httparty/ssl_spec.rb:37
>   HTTParty::Request SSL certificate verification should work when using ssl_ca_file with a self-signed CA
>     0.14422 seconds ./spec/httparty/ssl_spec.rb:33
>   HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses an unrecognized certificate authority
>     0.06358 seconds ./spec/httparty/ssl_spec.rb:50
>   HTTParty::Request SSL certificate verification should fail when using ssl_ca_path and the server uses an unrecognized certificate authority
>     0.06255 seconds ./spec/httparty/ssl_spec.rb:56
>   HTTParty::Request SSL certificate verification should fail when using ssl_ca_file and the server uses a bogus hostname
>     0.05454 seconds ./spec/httparty/ssl_spec.rb:62
>   HTTParty::Request SSL certificate verification should fail when no trusted CA list is specified, with a bogus hostname, by default
>     0.04319 seconds ./spec/httparty/ssl_spec.rb:23
> 
> Top 10 slowest example groups:
>   HTTParty::Request
>     0.08922 seconds average (1.07 seconds / 12 examples) ./spec/httparty/ssl_spec.rb:3
>   HTTParty::Logger::LogstashFormatter
>     0.0175 seconds average (0.0175 seconds / 1 example) ./spec/httparty/logger/logstash_formatter_spec.rb:3
>   HTTParty::Request
>     0.00609 seconds average (1.57 seconds / 258 examples) ./spec/httparty/request_spec.rb:3
>   HTTParty::ConnectionAdapter
>     0.00583 seconds average (0.40809 seconds / 70 examples) ./spec/httparty/connection_adapter_spec.rb:3
>   HTTParty
>     0.00515 seconds average (0.60239 seconds / 117 examples) ./spec/httparty_spec.rb:3
>   HTTParty::Logger::CurlFormatter
>     0.00417 seconds average (0.05416 seconds / 13 examples) ./spec/httparty/logger/curl_formatter_spec.rb:3
>   HTTParty::HeadersProcessor
>     0.00373 seconds average (0.01866 seconds / 5 examples) ./spec/httparty/headers_processor_spec.rb:3
>   Net::HTTPHeader::DigestAuthenticator
>     0.0036 seconds average (0.11892 seconds / 33 examples) ./spec/httparty/net_digest_auth_spec.rb:3
>   HTTParty::Request::Body
>     0.00245 seconds average (0.02204 seconds / 9 examples) ./spec/httparty/request/body_spec.rb:6
>   HTTParty::Response
>     0.00242 seconds average (0.22293 seconds / 92 examples) ./spec/httparty/response_spec.rb:3
> 
> Finished in 4.18 seconds (files took 2.99 seconds to load)
> 673 examples, 5 failures, 1 pending
> 
> Failed examples:
> 
> rspec ./spec/httparty/request/body_spec.rb:22 # HTTParty::Request::Body#call when params is hash 
> rspec ./spec/httparty/request/body_spec.rb:65 # HTTParty::Request::Body#call when params is hash when params has file 
> rspec ./spec/httparty/request/body_spec.rb:106 # HTTParty::Request::Body#call when params is hash when params has file file object responds to original_filename 
> rspec ./spec/httparty/request/body_spec.rb:94 # HTTParty::Request::Body#call when params is hash when params has file when passing multipart as an option 
> rspec ./spec/httparty/request/body_spec.rb:15 # HTTParty::Request::Body#call when params is string 
> 
> Randomized with seed 45873
> 
> Coverage report generated for RSpec to /<<PKGBUILDDIR>>/coverage. 995 / 1033 LOC (96.32%) covered.
> Stopped processing SimpleCov as a previous error not related to SimpleCov has been detected
> /usr/bin/ruby3.0 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-httparty/ruby-httparty_0.18.1-2+rebuild1633383060_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211012/bc9071db/attachment.sig>


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