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

Lucas Nussbaum lucas at debian.org
Sat Dec 5 13:26:43 GMT 2020


Source: node-yargs
Version: 15.3.1+repack-1
Severity: serious
Justification: FTBFS on arm64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201205 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on arm64 (I don't know if it also fails on amd64).

Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
> 
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package node-yargs
> dpkg-buildpackage: info: source version 15.3.1+repack-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Xavier Guimard <yadd at debian.org>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture arm64
>  debian/rules clean
> dh clean
>    dh_auto_clean --buildsystem=nodejs
> 	rm -rf ./node_modules/.cache
> 	rm -rf types-yargs/node_modules/.cache
>    dh_clean
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building node-yargs using existing ./node-yargs_15.3.1+repack.orig-types-yargs.tar.gz
> dpkg-source: info: building node-yargs using existing ./node-yargs_15.3.1+repack.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building node-yargs in node-yargs_15.3.1+repack-1.debian.tar.xz
> dpkg-source: info: building node-yargs in node-yargs_15.3.1+repack-1.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 ../../types-yargs node_modules/\@types/yargs
>    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/yargs
> 	/bin/sh -ex debian/tests/pkg-js/test
> + mocha --require ./test/before.js --timeout=30000 --check-leaks
> /usr/share/nodejs/yargs/yargs.js:1242
>       else throw err
>            ^
> 
> Error: Cannot find module 'cross-spawn'
> Require stack:
> - /<<PKGBUILDDIR>>/test/integration.js
> - /usr/share/nodejs/mocha/lib/mocha.js
> - /usr/share/nodejs/mocha/lib/cli/one-and-dones.js
> - /usr/share/nodejs/mocha/lib/cli/options.js
> - /usr/share/nodejs/mocha/bin/mocha
>     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
>     at Function.Module._load (internal/modules/cjs/loader.js:687:27)
>     at Module.require (internal/modules/cjs/loader.js:903:19)
>     at require (internal/modules/cjs/helpers.js:74:18)
>     at Object.<anonymous> (/<<PKGBUILDDIR>>/test/integration.js:4:15)
>     at Module._compile (internal/modules/cjs/loader.js:1015:30)
>     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
>     at Module.load (internal/modules/cjs/loader.js:879:32)
>     at Function.Module._load (internal/modules/cjs/loader.js:724:14)
>     at Module.require (internal/modules/cjs/loader.js:903:19)
>     at require (internal/modules/cjs/helpers.js:74:18)
>     at /usr/share/nodejs/mocha/lib/mocha.js:311:36
>     at Array.forEach (<anonymous>)
>     at Mocha.loadFiles (/usr/share/nodejs/mocha/lib/mocha.js:308:14)
>     at Mocha.run (/usr/share/nodejs/mocha/lib/mocha.js:849:10)
>     at Object.exports.singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:108:16)
>     at exports.runMocha (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:143:13)
>     at Object.exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:305:3)
>     at Object.runCommand (/usr/share/nodejs/yargs/lib/command.js:240:40)
>     at Object.parseArgs [as _parseArgs] (/usr/share/nodejs/yargs/yargs.js:1182:35)
>     at Object.parse (/usr/share/nodejs/yargs/yargs.js:627:25)
>     at Object.exports.main (/usr/share/nodejs/mocha/lib/cli/cli.js:68:6)
>     at Object.<anonymous> (/usr/share/nodejs/mocha/bin/mocha:133:29)
>     at Module._compile (internal/modules/cjs/loader.js:1015:30)
>     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
>     at Module.load (internal/modules/cjs/loader.js:879:32)
>     at Function.Module._load (internal/modules/cjs/loader.js:724:14)
>     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
>     at internal/main/run_main_module.js:17:47 {
>   code: 'MODULE_NOT_FOUND',
>   requireStack: [
>     '/<<PKGBUILDDIR>>/test/integration.js',
>     '/usr/share/nodejs/mocha/lib/mocha.js',
>     '/usr/share/nodejs/mocha/lib/cli/one-and-dones.js',
>     '/usr/share/nodejs/mocha/lib/cli/options.js',
>     '/usr/share/nodejs/mocha/bin/mocha'
>   ]
> }
> 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/2020/12/05/node-yargs_15.3.1+repack-1_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 me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-javascript-devel mailing list