[DRE-maint] Bug#867647: ruby-rest-client: FTBFS: ERROR: Test "ruby2.3" failed: Failure/Error: return http.request(req, body, &block)

Lucas Nussbaum lucas at debian.org
Sat Jul 8 06:28:17 UTC 2017


Source: ruby-rest-client
Version: 1.8.0-3
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170707 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
>      Failure/Error: return http.request(req, body, &block)
> 
>      WebMock::NetConnectNotAllowedError:
>        Real HTTP connections are disabled. Unregistered request: GET http://some/resource with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip, deflate', 'Authorization'=>'Basic Zm9vOmJhcg==', 'User-Agent'=>'Ruby'}
> 
>        You can stub this request with the following snippet:
> 
>        stub_request(:get, "http://some/resource").
>          with(headers: {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip, deflate', 'Authorization'=>'Basic Zm9vOmJhcg==', 'User-Agent'=>'Ruby'}).
>          to_return(status: 200, body: "", headers: {})
> 
>        registered request stubs:
> 
>        stub_request(:get, "http://foo:bar@new/resource").
>          with(headers: {'Accept'=>'application/json'})
>        stub_request(:get, "http://foo:bar@some/resource").
>          with(headers: {'Accept'=>'application/json'})
> 
>        ============================================================
>      # ./lib/restclient/request.rb:270:in `net_http_do_request'
>      # ./lib/restclient/request.rb:418:in `block in transmit'
>      # ./lib/restclient/request.rb:413:in `transmit'
>      # ./lib/restclient/request.rb:176:in `execute'
>      # ./lib/restclient/request.rb:41:in `execute'
>      # ./spec/unit/response_spec.rb:90:in `block (3 levels) in <top (required)>'
> 
> Finished in 0.26307 seconds (files took 0.67677 seconds to load)
> 217 examples, 1 failure
> 
> Failed examples:
> 
> rspec ./spec/unit/response_spec.rb:87 # RestClient::Response redirection follows a redirection and keep the parameters
> 
> Randomized with seed 14583
> 
> /usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby2.3" failed: 

The full build log is available from:
   http://aws-logs.debian.net/2017/07/07/ruby-rest-client_1.8.0-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



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