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

Lucas Nussbaum lucas at debian.org
Sat Oct 23 22:06:21 BST 2021


Source: node-parse-json
Version: 5.1.0+~cs5.1.6-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
> 
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package node-parse-json
> dpkg-buildpackage: info: source version 5.1.0+~cs5.1.6-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Jonas Smedegaard <dr at jones.dk>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  debian/rules clean
> dh clean
>    dh_auto_clean --buildsystem=nodejs
> 	rm -rf ./node_modules/.cache
> 	rm -rf lines-and-columns/node_modules/.cache
> 	rm -rf types-parse-json/node_modules/.cache
>    dh_clean
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building node-parse-json using existing ./node-parse-json_5.1.0+~cs5.1.6.orig-lines-and-columns.tar.gz
> dpkg-source: info: building node-parse-json using existing ./node-parse-json_5.1.0+~cs5.1.6.orig-types-parse-json.tar.gz
> dpkg-source: info: building node-parse-json using existing ./node-parse-json_5.1.0+~cs5.1.6.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building node-parse-json in node-parse-json_5.1.0+~cs5.1.6-2.debian.tar.xz
> dpkg-source: info: building node-parse-json in node-parse-json_5.1.0+~cs5.1.6-2.dsc
>  debian/rules binary
> dh binary
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure --buildsystem=nodejs
> 	mkdir node_modules
> 	mkdir -p ./node_modules/\@types
> 	ln -s /usr/share/nodejs/\@types/mocha ./node_modules/\@types/
> 	mkdir -p lines-and-columns/node_modules
> 	ln -s /usr/share/nodejs/assert lines-and-columns/node_modules/
> 	mkdir -p lines-and-columns/node_modules/\@types
> 	ln -s /usr/share/nodejs/\@types/mocha lines-and-columns/node_modules/\@types/
> 	ln -s ../lines-and-columns node_modules/lines-and-columns
> 	ln -s ../../types-parse-json node_modules/\@types/parse-json
>    dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/lines-and-columns/build
> 	cd ./lines-and-columns && sh -ex ../debian/nodejs/lines-and-columns/build
> + TSC=tsc ./script/build
> Building ES module version.
> Building CommonJS version.
> No build command found, searching known files
> No build command found, searching known files
>    dh_auto_test --buildsystem=nodejs
> 	ln -s ../. node_modules/parse-json
> 	/bin/sh -ex debian/tests/pkg-js/test
> + tape test.js
> TAP version 13
> # main
> ok 1 should be truthy
> not ok 2 should throw
>   ---
>     operator: throws
>     expected: |-
>       { name: 'JSONError', message: /Unexpected token "}"/ }
>     actual: |-
>       ErrorEXError { name: 'JSONError', codeFrame: '  1 | {\n  2 | \t"foo": true,\n> 3 | }\n    | ^', message: 'Unexpected token } in JSON at position 16 while parsing near \'{\t"foo": true,}\' \n\n  1 | {\n  2 | \t"foo": true,\n> 3 | }\n    | ^\n' }
>     at: Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:9:4)
>     stack: |-
>       JSONError: Unexpected token } in JSON at position 16 while parsing near '{	"foo": true,}' 
>       
>         1 | {
>         2 | 	"foo": true,
>       > 3 | }
>           | ^
>       
>           at module.exports (/<<PKGBUILDDIR>>/index.js:29:21)
>           at t.throws.name (/<<PKGBUILDDIR>>/test.js:10:3)
>           at Test.throws (/usr/share/nodejs/tape/lib/test.js:629:9)
>           at Test.bound [as throws] (/usr/share/nodejs/tape/lib/test.js:96:32)
>           at Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:9:4)
>           at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:96:32)
>           at Test.run (/usr/share/nodejs/tape/lib/test.js:114:31)
>           at Test.bound [as run] (/usr/share/nodejs/tape/lib/test.js:96:32)
>           at Immediate.next [as _onImmediate] (/usr/share/nodejs/tape/lib/results.js:88:19)
>           at processImmediate (internal/timers.js:461:21)
>   ...
> ok 3 should throw
> ok 4 should throw
> ok 5 should throw
> 
> 1..5
> # tests 5
> # pass  4
> # fail  1
> 
> 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/2021/10/23/node-parse-json_5.1.0+~cs5.1.6-2_unstable.log

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