[Pkg-javascript-devel] Bug#1072602: node-parse-json: FTBFS: failing tests
Santiago Vila
sanvila at debian.org
Wed Jun 5 01:17:25 BST 2024
Package: src:node-parse-json
Version: 5.2.0+~cs5.1.7-1
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@types/mocha -> /usr/share/nodejs/@types/mocha
Link lines-and-columns/node_modules/assert -> /usr/share/nodejs/assert
Link lines-and-columns/node_modules/@types/mocha -> /usr/share/nodejs/@types/mocha
Link node_modules/lines-and-columns -> ../lines-and-columns
Link node_modules/@types/parse-json -> ../../types-parse-json
dh_auto_build --buildsystem=nodejs
No build command found, searching known files
Found debian/nodejs/lines-and-columns/build
cd ./lines-and-columns && sh -ex ../debian/nodejs/lines-and-columns/build
+ tsc --build tsconfig.build.json
+ mv build/index.js build/index.mjs
+ babeljs -o build/index.js --presets @babel/preset-env build/index.mjs
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
ok 2 should throw
not ok 3 should throw
---
operator: throws
expected: |-
'/Unexpected token "?}"?.*in foo\\.json/'
actual: |-
ErrorEXError { name: 'JSONError', codeFrame: ' 1 | {\n 2 | \t"foo": true,\n> 3 | }\n | ^', fileName: 'foo.json', message: 'Expected double-quoted property name in JSON at position 16 while parsing \'{\t"foo": true,}\' in foo.json \n\n 1 | {\n 2 | \t"foo": true,\n> 3 | }\n | ^\n' }
at: Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:15:4)
stack: |-
JSONError: Expected double-quoted property name in JSON at position 16 while parsing '{ "foo": true,}' in foo.json
1 | {
2 | "foo": true,
> 3 | }
| ^
at parseJson (/<<PKGBUILDDIR>>/index.js:29:21)
at /<<PKGBUILDDIR>>/test.js:17:4
at Test.throws (/usr/share/nodejs/tape/lib/test.js:630:3)
at Test.bound [as throws] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:15:4)
at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
at Test.bound [as run] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Immediate.next [as _onImmediate] (/usr/share/nodejs/tape/lib/results.js:157:7)
at process.processImmediate (node:internal/timers:478:21)
...
not ok 4 should throw
---
operator: throws
expected: |-
'/Unexpected token "?}"?.*in foo\\.json/'
actual: |-
ErrorEXError { name: 'JSONError', fileName: 'foo.json', codeFrame: ' 1 | {\n 2 | \t"foo": true,\n> 3 | }\n | ^', message: 'Expected double-quoted property name in JSON at position 16 while parsing \'{\t"foo": true,}\' in foo.json \n\n 1 | {\n 2 | \t"foo": true,\n> 3 | }\n | ^\n' }
at: Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:24:4)
stack: |-
JSONError: Expected double-quoted property name in JSON at position 16 while parsing '{ "foo": true,}' in foo.json
1 | {
2 | "foo": true,
> 3 | }
| ^
at parseJson (/<<PKGBUILDDIR>>/index.js:29:21)
at /<<PKGBUILDDIR>>/test.js:25:3
at Test.throws (/usr/share/nodejs/tape/lib/test.js:630:3)
at Test.bound [as throws] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:24:4)
at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
at Test.bound [as run] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Immediate.next [as _onImmediate] (/usr/share/nodejs/tape/lib/results.js:157:7)
at process.processImmediate (node:internal/timers:478:21)
...
not ok 5 should throw
---
operator: throws
expected: |-
'/Unexpected token "?}"?.*in foo\\.json/'
actual: |-
ErrorEXError { name: 'JSONError', fileName: 'foo.json', codeFrame: ' 1 | {\n 2 | \t"foo": true,\n> 3 | }\n | ^', message: 'Expected double-quoted property name in JSON at position 16 while parsing \'{\t"foo": true,}\' in foo.json \n\n 1 | {\n 2 | \t"foo": true,\n> 3 | }\n | ^\n' }
at: Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:28:4)
stack: |-
JSONError: Expected double-quoted property name in JSON at position 16 while parsing '{ "foo": true,}' in foo.json
1 | {
2 | "foo": true,
> 3 | }
| ^
at parseJson (/<<PKGBUILDDIR>>/index.js:29:21)
at /<<PKGBUILDDIR>>/test.js:30:4
at Test.throws (/usr/share/nodejs/tape/lib/test.js:630:3)
at Test.bound [as throws] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Test.<anonymous> (/<<PKGBUILDDIR>>/test.js:28:4)
at Test.bound [as _cb] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Test.run (/usr/share/nodejs/tape/lib/test.js:115:28)
at Test.bound [as run] (/usr/share/nodejs/tape/lib/test.js:95:17)
at Immediate.next [as _onImmediate] (/usr/share/nodejs/tape/lib/results.js:157:7)
at process.processImmediate (node:internal/timers:478:21)
...
# throws exported error error
ok 6 should throw
1..6
# tests 6
# pass 3
# fail 3
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
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202406/
About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.
If you could not 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 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