[Pkg-javascript-devel] Bug#978313: node-postgres: FTBFS: dh_auto_test: error: cd ./buffer-writer && sh -ex ../debian/nodejs/buffer-writer/test returned exit code 1

Lucas Nussbaum lucas at debian.org
Sat Dec 26 21:54:51 GMT 2020


Source: node-postgres
Version: 7.14.0-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201226 ftbfs-bullseye

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-postgres
> dpkg-buildpackage: info: source version 7.14.0-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 amd64
>  debian/rules clean
> dh clean --with nodejs
>    dh_auto_clean --buildsystem=nodejs
> 	rm -rf ./node_modules/.cache
> 	rm -rf buffer-writer/node_modules/.cache
> 	rm -rf packet-reader/node_modules/.cache
> 	rm -rf pg-connection-string/node_modules/.cache
> 	rm -rf pg-cursor/node_modules/.cache
> 	rm -rf pg-int8/node_modules/.cache
> 	rm -rf pg-numeric/node_modules/.cache
> 	rm -rf pg-pool/node_modules/.cache
> 	rm -rf pg-types/node_modules/.cache
> 	rm -rf pgpass/node_modules/.cache
> 	rm -rf postgres-array/node_modules/.cache
> 	rm -rf postgres-bytea/node_modules/.cache
> 	rm -rf postgres-date/node_modules/.cache
> 	rm -rf postgres-interval/node_modules/.cache
>    dh_clean
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-buffer-writer.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-packet-reader.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-pg-connection-string.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-pg-cursor.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-pg-int8.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-pg-numeric.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-pg-pool.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-pg-types.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-pgpass.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-postgres-array.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-postgres-bytea.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-postgres-date.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig-postgres-interval.tar.gz
> dpkg-source: info: building node-postgres using existing ./node-postgres_7.14.0.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building node-postgres in node-postgres_7.14.0-1.debian.tar.xz
> dpkg-source: info: building node-postgres in node-postgres_7.14.0-1.dsc
>  debian/rules binary
> dh binary --with nodejs
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure --buildsystem=nodejs
> 	mkdir node_modules
> 	ln -s ../buffer-writer node_modules/buffer-writer
> 	ln -s ../packet-reader node_modules/packet-reader
> 	ln -s ../pg-connection-string node_modules/pg-connection-string
> 	ln -s ../pg-cursor node_modules/pg-cursor
> 	ln -s ../pg-int8 node_modules/pg-int8
> 	ln -s ../pg-numeric node_modules/pg-numeric
> 	ln -s ../pg-pool node_modules/pg-pool
> 	ln -s ../pg-types node_modules/pg-types
> 	ln -s ../pgpass node_modules/pgpass
> 	ln -s ../postgres-array node_modules/postgres-array
> 	ln -s ../postgres-bytea node_modules/postgres-bytea
> 	ln -s ../postgres-date node_modules/postgres-date
> 	ln -s ../postgres-interval node_modules/postgres-interval
> 	mkdir -p pg-types/node_modules
> 	ln -s ../../pg-int8 pg-types/node_modules/pg-int8
> 	mkdir -p pg-pool/node_modules
> 	ln -s ../../pg-cursor pg-pool/node_modules/pg-cursor
>    dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
>    dh_auto_test --buildsystem=nodejs
> 	ln -s ../debian/tests/test_modules/pff node_modules/pff
> 	ln -s ../. node_modules/pg
> 	cd ./buffer-writer && sh -ex ../debian/nodejs/buffer-writer/test
> + mocha
> 
> ReferenceError: suite is not defined
>     at Object.<anonymous> (/<<PKGBUILDDIR>>/buffer-writer/test/writer-tests.js:25:1)
>     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 Object.exports.requireOrImport (/usr/share/nodejs/mocha/lib/esm-utils.js:20:12)
>     at Object.exports.loadFilesAsync (/usr/share/nodejs/mocha/lib/esm-utils.js:33:34)
>     at Mocha.loadFilesAsync (/usr/share/nodejs/mocha/lib/mocha.js:431:19)
>     at singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:125:15)
>     at exports.runMocha (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:190:10)
>     at Object.exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:362:11)
>     at /usr/share/nodejs/yargs/lib/command.js:238:63
> dh_auto_test: error: cd ./buffer-writer && sh -ex ../debian/nodejs/buffer-writer/test returned exit code 1

The full build log is available from:
   http://qa-logs.debian.net/2020/12/26/node-postgres_7.14.0-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