[Pkg-javascript-devel] Bug#1009601: node-serve-static: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1

Lucas Nussbaum lucas at debian.org
Tue Apr 12 20:22:32 BST 2022


Source: node-serve-static
Version: 1.14.2+~1.13.10-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220412 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  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
>       1) should set Content-Type
> 
> 
>   4 passing (50ms)
>   1 failing
> 
>   1) serveStatic()
>        basic operations
>          should set Content-Type:
>      Error: expected "Content-Type" of "text/plain; charset=UTF-8", got "text/plain"
>       at Context.<anonymous> (test/test.js:44:10)
>       at callFnAsync (/usr/share/nodejs/mocha/lib/runnable.js:394:21)
>       at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:338:7)
>       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:678:10)
>       at /usr/share/nodejs/mocha/lib/runner.js:801:12
>       at next (/usr/share/nodejs/mocha/lib/runner.js:593:14)
>       at /usr/share/nodejs/mocha/lib/runner.js:603:7
>       at next (/usr/share/nodejs/mocha/lib/runner.js:486:14)
>       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:571:5)
>       at processImmediate (internal/timers.js:464:21)
>   ----
>       at Test._assertHeader (/usr/share/nodejs/supertest/lib/test.js:236:14)
>       at /usr/share/nodejs/supertest/lib/test.js:306:17
>       at Test._assertFunction (/usr/share/nodejs/supertest/lib/test.js:285:13)
>       at Test.assert (/usr/share/nodejs/supertest/lib/test.js:164:23)
>       at Server.localAssert (/usr/share/nodejs/supertest/lib/test.js:120:14)
>       at emitCloseNT (net.js:1671:8)
>       at processTicksAndRejections (internal/process/task_queues.js:81:21)
> 
> 
> 
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2022/04/12/node-serve-static_1.14.2+~1.13.10-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list