[Pkg-javascript-devel] Bug#1120198: node-serve-static: 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:36 GMT 2025


Package: src:node-serve-static
Version: 2.2.0+~1.15.9-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-static, 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-static/node_modules/.cache types-serve-static/.nyc_output
rm ./node_modules/.cache
rm types-serve-static/node_modules/.cache
rm ./node_modules/.cache
unlink node_modules/@types/serve-static
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link node_modules/@types/serve-static -> ../../types-serve-static
   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-static
	/bin/sh -ex debian/tests/pkg-js/test
+ mocha -C --timeout 10000 --bail --check-leaks --require should


  serveStatic()
    basic operations
      undefined should require root path
      undefined should require root path to be string
      undefined should serve static files
      undefined should support nesting
      undefined should set Content-Type
      undefined should set Last-Modified
      undefined should default max-age=0
      undefined should support urlencoded pathnames
      undefined should not choke on auth-looking URL
      undefined should support index.html
      undefined should support ../
      undefined should support HEAD
      undefined should skip POST requests
      undefined should support conditional requests
      undefined should support precondition checks
      undefined should serve zero-length files
      undefined should ignore hidden files
    current dir
      undefined should be served with "."
    acceptRanges
      when false
        undefined should not include Accept-Ranges
        undefined should ignore Rage request header
      when true
        undefined should include Accept-Ranges
        undefined should obey Rage request header
    cacheControl
      when false
        undefined should not include Cache-Control
        undefined should ignore maxAge
      when true
        undefined should include Cache-Control
    extensions
      undefined should be not be enabled by default
      undefined should be configurable
      undefined should support disabling extensions
      undefined should support fallbacks
      undefined should 404 if nothing found
    fallthrough
      undefined should default to true
      when true
        undefined should fall-through when OPTIONS request
        undefined should fall-through when URL malformed
        1) should fall-through when traversing past root


  33 passing (86ms)
  1 failing

  1) serveStatic()
       fallthrough
         when true
           should fall-through when traversing past root:
     Error: expected 404 "Not Found", got 200 "OK"
      at Context.<anonymous> (test/test.js:283:12)
      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