[Pkg-javascript-devel] Bug#927015: node-serve-static: FTBFS (failing tests)

Santiago Vila sanvila at debian.org
Sat Apr 13 17:17:57 BST 2019


Package: src:node-serve-static
Version: 1.6.4-2
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep
dh: Compatibility levels before 9 are deprecated (level 8 in use)
   dh_update_autotools_config -i
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mocha -C --reporter spec --bail --check-leaks --require should test/


  serveStatic()
    basic operations
      ✓ should require root path
      ✓ should require root path to be string
      ✓ should serve static files (125ms)
      ✓ should support nesting
      ✓ should set Content-Type
      ✓ should set Last-Modified
      ✓ should default max-age=0
      ✓ should support urlencoded pathnames
      ✓ should not choke on auth-looking URL
      ✓ should support index.html
      ✓ should support ../
      ✓ should support HEAD
      ✓ should skip POST requests
      ✓ should support conditional requests
      ✓ should ignore hidden files
      ✓ should set max-age=0 by default
    current dir
      ✓ should be served with "."
    extensions
      ✓ should be not be enabled by default
      ✓ should be configurable
      ✓ should support disabling extensions
      ✓ should support fallbacks
      ✓ should 404 if nothing found
    hidden files
      ✓ should be served when dotfiles: "allow" is given
    lastModified
      when false
        ✓ should not include Last-Modifed
      when true
        ✓ should include Last-Modifed
    maxAge
      ✓ should accept string
      ✓ should be reasonable when infinite
    redirect
      ✓ should redirect directories
      ✓ should include HTML link
      ✓ should redirect directories with query string
      ✓ should not redirect to protocol-relative locations
      ✓ should not redirect incorrectly
      when false
        1) should disable redirect


  32 passing (378ms)
  1 failing

  1) serveStatic()
       redirect
         when false
           should disable redirect:
     Error: expected 404 "Not Found", got 500 "Internal Server Error"
      at Test.assert (/usr/lib/nodejs/supertest/lib/test.js:205:15)
      at Server.assert (/usr/lib/nodejs/supertest/lib/test.js:132:12)
      at emitCloseNT (net.js:1616:8)
      at process._tickCallback (internal/process/next_tick.js:63:19)



make[1]: *** [debian/rules:13: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
and it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/node-serve-static.html

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



More information about the Pkg-javascript-devel mailing list