[Pkg-javascript-devel] Bug#1010413: mocha: ftbfs with nodejs 16: workerpool needs to be updated

Jérémy Lal kapouer at melix.org
Sun May 1 00:06:18 BST 2022


Package: mocha
Version: 9.2.2+ds1+~cs28.3.8-1
Severity: important

Hi,
node-crc ftbfs with nodejs 16 because mocha's parallel mode does:
workerpool fails with:

TypeError: The "options" argument must be of type object. Received an instance of Array
    at ChildProcess.target.send (node:internal/child_process:733:7)
    at Array.forEach (<anonymous>)
    at dispatchQueuedRequests (/usr/share/nodejs/workerpool/src/WorkerHandler.js:262:21)
    at ChildProcess.<anonymous> (/usr/share/nodejs/workerpool/src/WorkerHandler.js:221:7)

After standard uscan update (that I pushed on salsa, please tell me if I can upload it),
and a patch to work around webpack < 5, node-crc builds fine with both nodejs 14 and 16.

Jérémy



-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mocha depends on:
ii  node-ansi-colors                          4.1.1-3
ii  node-browser-stdout                       1.3.1-6
ii  node-camelcase                            6.3.0-1
ii  node-chalk                                5.0.0-5
ii  node-chokidar                             3.5.3-1
ii  node-ci-info [node-is-unicode-supported]  3.3.0+~cs4.2.0-1
ii  node-debug                                4.3.4+~cs4.1.7-1
ii  node-decamelize                           4.0.0-1
ii  node-diff                                 5.0.0~dfsg+~5.0.1-3
ii  node-escape-string-regexp                 4.0.0-2
ii  node-find-up                              6.3.0-7
ii  node-glob                                 7.2.1+~cs7.6.15-2
ii  node-growl                                1.10.5-4
ii  node-he                                   1.2.0-3
ii  node-is-plain-obj                         3.0.0-2
ii  node-js-yaml                              4.1.0+dfsg+~4.0.5-6
ii  node-minimatch                            5.0.0+~3.0.5-2
ii  node-ms                                   2.1.3+~cs0.7.31-2
ii  node-postcss [node-nanoid]                8.4.8+~cs7.3.21-2
ii  node-serialize-javascript                 6.0.0-1
ii  node-strip-json-comments                  4.0.0-4
ii  node-supports-color                       8.1.1+~8.1.1-1
ii  node-which                                2.0.2+~cs1.3.2-2
ii  node-wide-align                           1.1.3-4
ii  node-yargs                                16.2.0+~16.0.4-2
ii  node-yargs-parser                         21.0.1+~21.0.0-1
ii  nodejs                                    16.13.2+really14.19.1~dfsg-6+b1

mocha recommends no packages.

Versions of packages mocha suggests:
ii  chai  4.3.6~ds1+~cs9.7.12-3

-- no debconf information


More information about the Pkg-javascript-devel mailing list