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

Lucas Nussbaum lucas at debian.org
Mon Jul 29 06:54:02 BST 2024


Source: node-ajv
Version: 8.12.0~ds+~2.1.1-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240728 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> tsc
> cp -r lib/refs dist
> rm dist/refs/json-schema-2019-09/index.ts
> rm dist/refs/json-schema-2020-12/index.ts
> rm dist/refs/jtd-schema.ts
> dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/ajv-formats/build
> 	cd ./ajv-formats && sh -ex ../debian/nodejs/ajv-formats/build
> + mkdir -p node_modules
> + ln -s ../.. node_modules/ajv
> + tsc
> + rm -rf node_modules
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	ln -s ../debian/tests/test_modules/fast-uri node_modules/fast-uri
> 	ln -s ../debian/tests/test_modules/json-schema-test node_modules/json-schema-test
> 	ln -s ../debian/tests/test_modules/module-from-string node_modules/module-from-string
> 	ln -s ../. node_modules/ajv
> 	/bin/sh -ex debian/tests/pkg-js/test
> + rm -f spec/_json/*.js
> + node scripts/jsontests
> + test  != 
> + TS_NODE_PROJECT=spec/tsconfig.json mocha --bail --exit --timeout 100000 -r ts-node/register spec/**/*.spec.{ts,js}
> 
>  Exception during run: Error: Package subpath './async' is not defined by "exports" in /usr/share/nodejs/nanoid/package.json
>     at exportsNotFound (node:internal/modules/esm/resolve:304:10)
>     at packageExportsResolve (node:internal/modules/esm/resolve:651:9)
>     at resolveExports (node:internal/modules/cjs/loader:592:36)
>     at Function.Module._findPath (node:internal/modules/cjs/loader:669:31)
>     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1131:27)
>     at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/usr/share/nodejs/@cspotcode/source-map-support/source-map-support.js:811:30)
>     at Function.Module._load (node:internal/modules/cjs/loader:986:27)
>     at Module.require (node:internal/modules/cjs/loader:1233:19)
>     at require (node:internal/modules/helpers:179:18)
>     at Module.<anonymous> (/<<PKGBUILDDIR>>/debian/tests/test_modules/module-from-string/dist/index.js:9:15)
>     at Module._compile (node:internal/modules/cjs/loader:1358:14)
>     at Module.m._compile (/usr/share/nodejs/ts-node/src/index.ts:1624:23)
>     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
>     at Object.require.extensions.<computed> [as .js] (/usr/share/nodejs/ts-node/src/index.ts:1627:12)
>     at Module.load (node:internal/modules/cjs/loader:1208:32)
>     at Function.Module._load (node:internal/modules/cjs/loader:1024:12)
>     at Module.require (node:internal/modules/cjs/loader:1233:19)
>     at require (node:internal/modules/helpers:179:18)
>     at Object.<anonymous> (/<<PKGBUILDDIR>>/spec/standalone.spec.ts:7:1)
>     at Module._compile (node:internal/modules/cjs/loader:1358:14)
>     at Module.m._compile (/usr/share/nodejs/ts-node/src/index.ts:1624:23)
>     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
>     at Object.require.extensions.<computed> [as .ts] (/usr/share/nodejs/ts-node/src/index.ts:1627:12)
>     at Module.load (node:internal/modules/cjs/loader:1208:32)
>     at Function.Module._load (node:internal/modules/cjs/loader:1024:12)
>     at Module.require (node:internal/modules/cjs/loader:1233:19)
>     at require (node:internal/modules/helpers:179:18)
>     at Object.exports.requireOrImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:53:16)
>     at async Object.exports.loadFilesAsync (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:100:20)
>     at async singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:125:3)
>     at async Object.exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:370:5) {
>   code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
> }
> 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/2024/07/28/node-ajv_8.12.0~ds+~2.1.1-4_unstable.log

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