[Pkg-javascript-devel] Bug#1011795: node-fastcgi: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 2

Lucas Nussbaum lucas at debian.org
Thu May 26 20:10:58 BST 2022


Source: node-fastcgi
Version: 1.3.3-6
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 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
>    dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../debian/tests/test_modules/cgi-env node_modules/cgi-env
> 	ln -s ../debian/tests/test_modules/fastcgi-parser node_modules/fastcgi-parser
> 	ln -s ../debian/tests/test_modules/fcgi-handler node_modules/fcgi-handler
> 	ln -s ../debian/tests/test_modules/fcgi-stream node_modules/fcgi-stream
> 	ln -s ../debian/tests/test_modules/request node_modules/request
> 	ln -s ../. node_modules/node-fastcgi
> 	/bin/sh -ex debian/tests/pkg-js/test
> + mocha --exit ./test/mocha/integration
> 
> 
>   echo Server
> cgi app listen on socket:/<<PKGBUILDDIR>>/test/mocha/integration/Sock11306
> (node:912080) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
> (Use `node --trace-deprecation ...` to show where the warning was created)
>     undefined should answer with the request (50ms)
>     undefined should answer with the request data
>     undefined should answer with the request querystring
>     1) should answer with the request auth
>     2) should answer with correct request header names
> 
>   multiwrite Server
> cgi app listen on socket:/<<PKGBUILDDIR>>/test/mocha/integration/Sock21203
>     undefined should answer with the expected response
> 
>   multiwrite Server (no content-length)
> cgi app listen on socket:/<<PKGBUILDDIR>>/test/mocha/integration/Sock31885
>     undefined should answer with the expected response
> 
> 
>   5 passing (107ms)
>   2 failing
> 
>   1) echo Server
>        should answer with the request auth:
>      Uncaught AssertionError: expected { _eventsCount: 3, …(15) } to have nested property 'headers.authorization'
>       at Request._callback (test/mocha/integration/echo.js:189:41)
>       at Request.self.callback (debian/tests/test_modules/request/request.js:185:22)
>       at Request.emit (node:events:526:28)
>       at Request.<anonymous> (debian/tests/test_modules/request/request.js:1161:10)
>       at Request.emit (node:events:526:28)
>       at IncomingMessage.<anonymous> (debian/tests/test_modules/request/request.js:1083:12)
>       at Object.onceWrapper (node:events:645:28)
>       at IncomingMessage.emit (node:events:538:35)
>       at endReadableNT (node:internal/streams/readable:1345:12)
>       at processTicksAndRejections (node:internal/process/task_queues:83:21)
> 
>   2) echo Server
>        should answer with correct request header names:
>      Uncaught AssertionError: expected { _eventsCount: 3, …(15) } to have nested property 'headers.x-testhdr'
>       at Request._callback (test/mocha/integration/echo.js:215:41)
>       at Request.self.callback (debian/tests/test_modules/request/request.js:185:22)
>       at Request.emit (node:events:526:28)
>       at Request.<anonymous> (debian/tests/test_modules/request/request.js:1161:10)
>       at Request.emit (node:events:526:28)
>       at IncomingMessage.<anonymous> (debian/tests/test_modules/request/request.js:1083:12)
>       at Object.onceWrapper (node:events:645:28)
>       at IncomingMessage.emit (node:events:538:35)
>       at endReadableNT (node:internal/streams/readable:1345:12)
>       at processTicksAndRejections (node:internal/process/task_queues:83:21)
> 
> 
> 
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 2


The full build log is available from:
http://qa-logs.debian.net/2022/05/25/node-fastcgi_1.3.3-6_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&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