[Pkg-javascript-devel] Bug#1054766: node-signal-exit: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Fri Oct 27 20:31:33 BST 2023
Source: node-signal-exit
Version: 4.1.0-5
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20231027 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 -p tsconfig.json
> tsc -p tsconfig-esm.json
> sh ./scripts/fixup.sh
> #cp debian/index.cjs dist/cjs/
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test --buildsystem=nodejs
> ln -s ../. node_modules/signal-exit
> /bin/sh -ex debian/tests/pkg-js/test
> + tap -T -R spec
>
> test/all-integration-test.ts
> exits properly: SIGINT
>
> ✓ should be equal
>
> exits properly: SIGTERM
>
> ✓ should be equal
>
> exits properly: SIGALRM
>
> ✓ should be equal
>
> exits properly: SIGABRT
>
> ✓ expect truthy value
>
> exits properly: SIGVTALRM
>
> ✓ should be equal
>
> exits properly: SIGXCPU
>
> ✓ should be equal
>
> exits properly: SIGXFSZ
>
> ✓ should be equal
>
> exits properly: SIGUSR2
>
> ✓ should be equal
>
> exits properly: SIGTRAP
>
> ✓ should be equal
>
> exits properly: SIGSYS
>
> ✓ expect truthy value
>
> exits properly: SIGQUIT
>
> ✓ should be equal
>
> exits properly: SIGIOT
>
> ✓ expect truthy value
>
> exits properly: SIGIO
>
> ✓ expect truthy value
>
> exits properly: SIGPOLL
>
> ✓ expect truthy value
>
> exits properly: SIGPWR
>
> ✓ should be equal
>
> exits properly: SIGSTKFLT
>
> ✓ should be equal
>
>
> ✓ exits properly: (222.342ms)
>
> ✓ exits properly: 0 (257.513ms)
> exits properly: 1
>
> ✓ should be equal
>
> exits properly: 2
>
> ✓ should be equal
>
> exits properly: 3
>
> ✓ should be equal
>
> exits properly: 54
>
> ✓ should be equal
>
> exits properly: (external sig) SIGINT
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGTERM
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGALRM
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGABRT
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGVTALRM
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGXCPU
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGXFSZ
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGUSR2
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGTRAP
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGSYS
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGQUIT
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGIOT
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGIO
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGPOLL
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGPWR
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> exits properly: (external sig) SIGSTKFLT
>
> ✓ should be equivalent
>
> ✓ should be equivalent
>
> test/fallback.ts
>
> ✓ this is fine
> test/many-handlers.js
> parent
>
> ✓ should be equal
>
> ✓ should be equal
>
> ✓ should be equal
>
> ✓ should be equal
>
> test/multi-exit.js
> explicit 0 nochange sigexit
>
> ✓ explicit 0 nochange sigexit
>
> explicit 0 nochange nosigexit
>
> ✓ explicit 0 nochange nosigexit
>
> explicit 0 change sigexit
>
> ✓ explicit 0 change sigexit
>
> explicit 0 change nosigexit
>
> ✓ explicit 0 change nosigexit
>
> explicit 0 twice sigexit
>
> ✓ explicit 0 twice sigexit
>
> explicit 0 twice nosigexit
>
> ✓ explicit 0 twice nosigexit
>
> explicit 0 code sigexit
>
> ✓ explicit 0 code sigexit
>
> explicit 0 code nosigexit
>
> ✓ explicit 0 code nosigexit
>
> explicit 0 twicecode sigexit
>
> ✓ explicit 0 twicecode sigexit
>
> explicit 0 twicecode nosigexit
>
> ✓ explicit 0 twicecode nosigexit
>
> explicit 2 nochange sigexit
>
> ✓ explicit 2 nochange sigexit
>
> explicit 2 nochange nosigexit
>
> ✓ explicit 2 nochange nosigexit
>
> explicit 2 change sigexit
>
> ✓ explicit 2 change sigexit
>
> explicit 2 change nosigexit
>
> ✓ explicit 2 change nosigexit
>
> explicit 2 twice sigexit
>
> ✓ explicit 2 twice sigexit
>
> explicit 2 twice nosigexit
>
> ✓ explicit 2 twice nosigexit
>
> explicit 2 code sigexit
>
> ✓ explicit 2 code sigexit
>
> explicit 2 code nosigexit
>
> ✓ explicit 2 code nosigexit
>
> explicit 2 twicecode sigexit
>
> ✓ explicit 2 twicecode sigexit
>
> explicit 2 twicecode nosigexit
>
> ✓ explicit 2 twicecode nosigexit
>
> explicit null nochange sigexit
>
> ✓ explicit null nochange sigexit
>
> explicit null nochange nosigexit
>
> ✓ explicit null nochange nosigexit
>
> explicit null change sigexit
>
> ✓ explicit null change sigexit
>
> explicit null change nosigexit
>
> ✓ explicit null change nosigexit
>
> explicit null twice sigexit
>
> ✓ explicit null twice sigexit
>
> explicit null twice nosigexit
>
> ✓ explicit null twice nosigexit
>
> explicit null code sigexit
>
> ✓ explicit null code sigexit
>
> explicit null code nosigexit
>
> ✓ explicit null code nosigexit
>
> explicit null twicecode sigexit
>
> ✓ explicit null twicecode sigexit
>
> explicit null twicecode nosigexit
>
> ✓ explicit null twicecode nosigexit
>
> normal 0 nochange sigexit
>
> ✓ normal 0 nochange sigexit
>
> normal 0 nochange nosigexit
>
> ✓ normal 0 nochange nosigexit
>
> normal 0 change sigexit
>
> ✓ normal 0 change sigexit
>
> normal 0 change nosigexit
>
> ✓ normal 0 change nosigexit
>
> normal 0 twice sigexit
>
> ✓ normal 0 twice sigexit
>
> normal 0 twice nosigexit
>
> ✓ normal 0 twice nosigexit
>
> normal 0 code sigexit
>
> ✓ normal 0 code sigexit
>
> normal 0 code nosigexit
>
> ✓ normal 0 code nosigexit
>
> normal 0 twicecode sigexit
>
> ✓ normal 0 twicecode sigexit
>
> normal 0 twicecode nosigexit
>
> ✓ normal 0 twicecode nosigexit
>
> code 0 nochange sigexit
>
> ✓ code 0 nochange sigexit
>
> code 0 nochange nosigexit
>
> ✓ code 0 nochange nosigexit
>
> code 0 change sigexit
>
> ✓ code 0 change sigexit
>
> code 0 change nosigexit
>
> ✓ code 0 change nosigexit
>
> code 0 twice sigexit
>
> ✓ code 0 twice sigexit
>
> code 0 twice nosigexit
>
> ✓ code 0 twice nosigexit
>
> code 0 code sigexit
>
> ✓ code 0 code sigexit
>
> code 0 code nosigexit
>
> ✓ code 0 code nosigexit
>
> code 0 twicecode sigexit
>
> ✓ code 0 twicecode sigexit
>
> code 0 twicecode nosigexit
>
> ✓ code 0 twicecode nosigexit
>
> code 2 nochange sigexit
>
> ✓ code 2 nochange sigexit
>
> code 2 nochange nosigexit
>
> ✓ code 2 nochange nosigexit
>
> code 2 change sigexit
>
> ✓ code 2 change sigexit
>
> code 2 change nosigexit
>
> ✓ code 2 change nosigexit
>
> code 2 twice sigexit
>
> ✓ code 2 twice sigexit
>
> code 2 twice nosigexit
>
> ✓ code 2 twice nosigexit
>
> code 2 code sigexit
>
> ✓ code 2 code sigexit
>
> code 2 code nosigexit
>
> ✓ code 2 code nosigexit
>
> code 2 twicecode sigexit
>
> ✓ code 2 twicecode sigexit
>
> code 2 twicecode nosigexit
>
> ✓ code 2 twicecode nosigexit
>
> code null nochange sigexit
>
> ✓ code null nochange sigexit
>
> code null nochange nosigexit
>
> ✓ code null nochange nosigexit
>
> code null change sigexit
>
> ✓ code null change sigexit
>
> code null change nosigexit
>
> ✓ code null change nosigexit
>
> code null twice sigexit
>
> ✓ code null twice sigexit
>
> code null twice nosigexit
>
> ✓ code null twice nosigexit
>
> code null code sigexit
>
> ✓ code null code sigexit
>
> code null code nosigexit
>
> ✓ code null code nosigexit
>
> code null twicecode sigexit
>
> ✓ code null twicecode sigexit
>
> code null twicecode nosigexit
>
> ✓ code null twicecode nosigexit
>
> test/no-process.js
> process missing from the start
>
> ✓ should be equal
>
> ✓ should be equal
>
> ✓ should be equal
>
> process goes missing before onExit() call
>
> ✓ should be equal
>
> ✓ should be equal
>
> ✓ should be equal
>
> process goes missing after onExit() call, before exit
>
> ✓ should be equivalent strictly
>
> test/signal-capture.ts
> graceful exit
>
> ✓ should match pattern provided
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> exit 0
>
> ✓ should match pattern provided
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> exit 1
>
> ✓ should match pattern provided
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> signal, no capture
>
> ✓ should match pattern provided
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> signal, capture exit
>
> ✓ should match pattern provided
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> signal, capture afterExit
>
> ✓ should match pattern provided
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> signal, capture both
>
> ✓ should match pattern provided
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> test/signal-exit-test.ts
> receives an exit event when a process exits normally
>
> ✓ should be equal
>
> ✓ should match pattern provided
>
> receives an exit event when process.exit() is called
>
> ✓ should be equal
>
> ✓ should match pattern provided
>
> ensures that if alwaysLast=true, the handler is run last (signal)
>
> ✓ should match pattern provided
>
> ✓ should match pattern provided
>
> ensures that if alwaysLast=true, the handler is run last (normal exit)
>
> ✓ should match pattern provided
>
> ✓ should match pattern provided
>
> works when loaded multiple times
>
> ✓ should be equal
>
> ✓ should match pattern provided
>
> ✓ should match pattern provided
>
> ✓ should match pattern provided
>
> ✓ should match pattern provided
>
> removes handlers when fully unwrapped
>
> ✓ should be equal
>
> ✓ should be equal
>
>
> ✓ does not load() or unload() more than once (248.597ms)
> receives an exit event when a process is terminated with sigint
>
> ✓ should match pattern provided
>
> receives an exit event when a process is terminated with sigterm
>
> ✓ should match pattern provided
>
> does not exit on sigpipe
>
> ✓ should match pattern provided
>
> ✓ should match pattern provided
>
>
> ✓ handles uncatchable signals with grace and poise (216.379ms)
> does not exit if user handles signal
>
> 1) did not get expected error
> node:domain:136
> throw err;
> ^
>
> Error [ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE]: The `domain` module is in use, which is mutually exclusive with calling process.setUncaughtExceptionCaptureCallback()
> at new NodeError (node:internal/errors:400:5)
> at process.setUncaughtExceptionCaptureCallback (node:domain:134:15)
> at process.domainErrorHandler (/usr/share/nodejs/async-hook-domain/index.js:122:12)
> at process.emit (node:events:513:28)
> at process.emit (node:domain:489:12)
> at process.emit.sharedData.processEmitHook.installedValue (/usr/share/nodejs/@cspotcode/source-map-support/source-map-support.js:745:40)
> at SignalExit.#processEmit (/usr/share/nodejs/signal-exit/src/index.ts:308:17)
> at process.#process.emit (/usr/share/nodejs/signal-exit/src/index.ts:248:31)
> at process._fatalException (node:internal/process/execution:146:13)
> ----------------------------------------
> Error: require(`domain`) at this point
> at node:domain:130:28
> at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/loaders:334:7)
> at requireBuiltin (node:internal/bootstrap/loaders:365:14)
> at node:repl:136:16
> at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/loaders:334:7)
> at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/loaders:270:10)
> at loadBuiltinModule (node:internal/modules/cjs/helpers:50:9)
> at Module._load (node:internal/modules/cjs/loader:899:15)
> at Module.require (node:internal/modules/cjs/loader:1105:19)
> at require (node:internal/modules/cjs/helpers:103:18) {
> code: 'ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE'
> }
>
> Node.js v18.13.0
>
>
> 2) test count !== plan
> test/signals.js
> win32
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> darwin
>
> ✓ should be equal
>
> ✓ must match snapshot
>
> linux
>
> ✓ should be equal
>
> ✓ must match snapshot
>
>
> 184 passing (46s)
> 2 failing
>
> 1) test/signal-exit-test.ts does not exit if user handles signal did not get expected error:
> Error: did not get expected error
> at test/signal-exit-test.ts:163:36
>
> 2) test/signal-exit-test.ts test count !== plan:
>
> test count !== plan
> + expected - actual
>
> -12
> +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/2023/10/27/node-signal-exit_4.1.0-5_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231027;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231027&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