[Pkg-javascript-devel] Bug#1025963: FTBFS: node-latest-version: tests use network

Andrey Feofilaktov andarpolis at gmail.com
Mon Dec 12 15:30:48 GMT 2022


Package: node-latest-version
Version: 7.0.0-2

Package fails to build in an isolated environment (reproducible builds
invocation for unstable
<https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/node-latest-version.html>
).

The package accesses the npm registry from tests, but Debian policy only
allows tests to access local network resources explicitly set up during the
test.
Tests are run as part of the required "build" target and policy 4.9
<https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules>
says:
"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."

Relevant links:
Test code:
https://salsa.debian.org/js-team/node-latest-version/-/blob/master/test.js#L11
The function being tested:
https://salsa.debian.org/js-team/node-latest-version/-/blob/master/index.js#L4
Function that uses network:
https://salsa.debian.org/js-team/node-package-json/-/blob/master/index.js#L33

-- 
Regards,
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20221212/1714ee1b/attachment.htm>


More information about the Pkg-javascript-devel mailing list