[Qa-jenkins-dev] Bug#897662: Bug#897662: reproducible: is localhost unresolvable in the build chroot?

Holger Levsen holger at layer-acht.org
Thu May 10 13:41:25 BST 2018


Hi Simon,

thanks for your caring about tests.r-b.o and sending this bug report!

On Fri, May 04, 2018 at 12:03:03AM +0100, Simon McVittie wrote:
> dbus has been failing to build on reproducible.debian.org for a while,
> with test failures. In the version in experimental (which has better
> diagnostics for unexpected errors in testing) I see[1]:
> 
>     Failed to lookup host/port: "localhost:0": Name or service not known (-2)
> 
> Is this accurate? Is `getent hosts localhost` something that is expected
> to fail in the reproducible-builds chroots?
 
we build with pbuilder and disabling network access during build is the
default for some time.

see #748967 and #806386

> If so, I don't think that's a good idea. Resolving arbitrary DNS names
> and contacting remote machines is not something that a build should be
> doing; but if we want to run build-time tests for anything that does
> networking, then I don't think these actions should be counted as network
> access:

I disagree: if the tests are part of the build process, there should be no
external network access be involved in the tests neither, else tests might
or not fail depending on the network, or produce otherwise different results…

that said, localhost is probably a special host on the network…


-- 
cheers,
	Holger
-------------- 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/qa-jenkins-dev/attachments/20180510/38e78021/attachment.sig>


More information about the Qa-jenkins-dev mailing list