[Pkg-javascript-devel] Bug#1120240: node-serve-index: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
Santiago Vila
sanvila at debian.org
Thu Nov 6 11:59:34 GMT 2025
Package: src:node-serve-index
Version: 1.9.1+~1.9.4-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202511/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-serve-index, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean --buildsystem=nodejs
rm -rf ./node_modules/.cache ./.nyc_output
rm -rf types-serve-index/node_modules/.cache types-serve-index/.nyc_output
rm ./node_modules/.cache
rm types-serve-index/node_modules/.cache
rm ./node_modules/.cache
unlink node_modules/@types/serve-index
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure --buildsystem=nodejs
Link node_modules/@types/serve-index -> ../../types-serve-index
dh_auto_build --buildsystem=nodejs
No build command found, searching known files
No build command found, searching known files
dh_auto_test --buildsystem=nodejs
ln -s ../. node_modules/serve-index
/bin/sh -ex debian/tests/pkg-js/test
+ mocha -C --reporter spec --bail --check-leaks test/
serveIndex(root)
undefined should require root
undefined should serve text/html without Accept header
undefined should include security header
undefined should serve a directory index
undefined should work with HEAD requests
undefined should work with OPTIONS requests
undefined should deny POST requests
undefined should deny path will NULL byte
1) should deny path outside root
8 passing (53ms)
1 failing
1) serveIndex(root)
should deny path outside root:
Error: expected 403 "Forbidden", got 200 "OK"
at Context.<anonymous> (test/test.js:84:6)
at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:392:21)
at Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:336:7)
at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
at /usr/share/nodejs/mocha/lib/runner.js:800:12
at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
at /usr/share/nodejs/mocha/lib/runner.js:602:7
at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
at process.processImmediate (node:internal/timers:483:21)
----
at Test._assertStatus (/usr/share/nodejs/supertest/lib/test.js:309:14)
at /usr/share/nodejs/supertest/lib/test.js:365:13
at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:342:13)
at Test.assert (/usr/share/nodejs/supertest/lib/test.js:195:23)
at localAssert (/usr/share/nodejs/supertest/lib/test.js:138:14)
at Server.<anonymous> (/usr/share/nodejs/supertest/lib/test.js:152:11)
at Object.onceWrapper (node:events:638:28)
at Server.emit (node:events:524:28)
at emitCloseNT (node:net:2338:8)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-javascript-devel
mailing list