[DRE-maint] Bug#1020580: FTBFS: ruby3.1 needs network/DNS during tests

Antonio Terceiro terceiro at debian.org
Fri Sep 23 18:37:00 BST 2022


On Fri, Sep 23, 2022 at 06:37:02PM +0200, Sven Mueller wrote:
> Package: ruby3.1
> Version: 3.1.2-3
> 
> The package violates policy 4.9, namely:
> 
> For packages in the main archive, required targets must not attempt
> network access, except, via the loopback interface, to services on the
> build host that have been started by the build.
> 
> The relevant snippet from a build with restricted network (only
> internal Debian mirror available):
> 
>   1) Error:
> TestAddressResolve#test_socket_getnameinfo_domain_blocking:
> SocketError: getnameinfo: Temporary failure in name resolution
>     /<<PKGBUILDDIR>>/test/fiber/test_address_resolve.rb:272:in `getnameinfo'
>     /<<PKGBUILDDIR>>/test/fiber/test_address_resolve.rb:272:in `block
> (2 levels) in test_socket_getnameinfo_domain_blocking'
> 
> The test attempts to resolve example.com which our resolver returns a
> temporary error for.
> 
> The interesting part is: Why does it? If I read the source correctly,
> it *should* use a stub resolver? And if it doesn't use the stub: Why
> would the test succeed on the Debian autobuilders?
> So this might point at some more serious issue?

I can reproduce this failure either by going offline, or by emptying
/etc/resolv.conf while still online.
-------------- 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/20220923/7f8e1037/attachment.sig>


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