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

Lucas Nussbaum lucas at debian.org
Tue Dec 21 16:34:13 GMT 2021


Source: node-rollup-plugin-alias
Version: 3.1.8~ds-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211220 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # Build @rollup/plugin-alias
> cd packages/alias && rollup -c
> 
> src/index.ts → dist/index.js, dist/index.es.js...
> (!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module 'rollup' or its corresponding type declarations.
> src/index.ts: (1:43)
> 
> 1 import { PartialResolvedId, Plugin } from 'rollup';
>                                             ~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS2550: Property 'entries' does not exist on type 'ObjectConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2017' or later.
> src/index.ts: (37:17)
> 
> 37   return Object.entries(entries).map(([key, value]) => {
>                    ~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7031: Binding element 'key' implicitly has an 'any' type.
> src/index.ts: (37:40)
> 
> 37   return Object.entries(entries).map(([key, value]) => {
>                                           ~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7031: Binding element 'value' implicitly has an 'any' type.
> src/index.ts: (37:45)
> 
> 37   return Object.entries(entries).map(([key, value]) => {
>                                                ~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'inputOptions' implicitly has an 'any' type.
> src/index.ts: (73:16)
> 
> 73     buildStart(inputOptions) {
>                   ~~~~~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'importee' implicitly has an 'any' type.
> src/index.ts: (86:15)
> 
> 86     resolveId(importee, importer, resolveOptions) {
>                  ~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'importer' implicitly has an 'any' type.
> src/index.ts: (86:25)
> 
> 86     resolveId(importee, importer, resolveOptions) {
>                            ~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'resolveOptions' implicitly has an 'any' type.
> src/index.ts: (86:35)
> 
> 86     resolveId(importee, importer, resolveOptions) {
>                                      ~~~~~~~~~~~~~~
> 
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'resolved' implicitly has an 'any' type.
> src/index.ts: (109:15)
> 
> 109       ).then((resolved) => {
>                   ~~~~~~~~
> 
> created dist/index.js, dist/index.es.js in 420ms
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules/\@rollup
> 	ln -s ../../packages/alias node_modules/\@rollup/plugin-alias
> 	/bin/sh -ex debian/tests/pkg-js/test
> + cd packages/alias
> + mkdir -p node_modules/@rollup
> + ln -s ../.. node_modules/@rollup/plugin-alias
> + tape test/test.js
> TAP version 13
> # type
> ok 1 should be strictly equal
> # instance
> ok 2 should be strictly equal
> ok 3 should be strictly equal
> # defaults
> ok 4 should be strictly equal
> ok 5 should be strictly equal
> # Simple aliasing (array)
> ok 6 should be deeply equivalent
> # Simple aliasing (object)
> ok 7 should be deeply equivalent
> # RegExp aliasing
> ok 8 should be deeply equivalent
> # Will not confuse modules with similar names
> ok 9 should be deeply equivalent
> # Leaves entry file untouched if matches alias
> ok 10 should be deeply equivalent
> # i/am/a/file
> ok 11 should be deeply equivalent
> # Windows absolute path aliasing
> ok 12 should be deeply equivalent
> # Works in rollup with non fake input
> ok 13 should be strictly equal
> ok 14 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/aliasMe.js to end with /fixtures/aliasMe.js
> ok 15 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/folder/anotherNumber.js to end with /fixtures/folder/anotherNumber.js
> ok 16 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/index.js to end with /fixtures/index.js
> ok 17 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/localAliasMe.js to end with /fixtures/localAliasMe.js
> ok 18 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/nonAliased.js to end with /fixtures/nonAliased.js
> # Global customResolver function
> ok 19 should be deeply equivalent
> # Local customResolver function
> ok 20 should be deeply equivalent
> # Global customResolver plugin-like object
> ok 21 should be deeply equivalent
> # Local customResolver plugin-like object
> ok 22 should be deeply equivalent
> # supports node-resolve as a custom resolver
> ok 23 should be deeply equivalent
> # Alias + rollup-plugin-node-resolve
> ok 24 should be strictly equal
> ok 25 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/aliasMe.js to end with /fixtures/aliasMe.js
> ok 26 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/folder/anotherNumber.js to end with /fixtures/folder/anotherNumber.js
> ok 27 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/folder/deep/deep2/index.js to end with /fixtures/folder/deep/deep2/index.js
> ok 28 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/index.js to end with /fixtures/index.js
> ok 29 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/localAliasMe.js to end with /fixtures/localAliasMe.js
> ok 30 expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/nonAliased.js to end with /fixtures/nonAliased.js
> # Forwards isEntry and custom options to a custom resolver
> not ok 31 should be deeply equivalent
>   ---
>     operator: deepEqual
>     expected: |-
>       [ [ 'entry-point', '/src/importer.js', { custom: undefined } ], [ 'non-entry-point', '/src/importer.js', { custom: { test: 42 } } ] ]
>     actual: |-
>       [ [ 'entry-point', '/src/importer.js', { custom: undefined, isEntry: true } ], [ 'non-entry-point', '/src/importer.js', { custom: { test: 42 }, isEntry: false } ] ]
>     at: <anonymous> (/<<PKGBUILDDIR>>/packages/alias/test/test.js:475:7)
>     stack: |-
>       Error: should be deeply equivalent
>           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:311:54)
>           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:96:32)
>           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:552:10)
>           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:96:32)
>           at /<<PKGBUILDDIR>>/packages/alias/test/test.js:475:7
>           at processTicksAndRejections (internal/process/task_queues.js:97:5)
>   ...
> ok 32 should be deeply equivalent
> # Forwards isEntry and custom options to other plugins
> not ok 33 should be deeply equivalent
>   ---
>     operator: deepEqual
>     expected: |-
>       [ [ 'entry-point', '/src/importer.js', { custom: undefined } ], [ 'non-entry-point', '/src/importer.js', { custom: { test: 42 } } ] ]
>     actual: |-
>       [ [ 'entry-point', '/src/importer.js', { custom: undefined, isEntry: true } ], [ 'non-entry-point', '/src/importer.js', { custom: { test: 42 }, isEntry: false } ] ]
>     at: <anonymous> (/<<PKGBUILDDIR>>/packages/alias/test/test.js:522:7)
>     stack: |-
>       Error: should be deeply equivalent
>           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:311:54)
>           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:96:32)
>           at Test.tapeDeepEqual (/usr/share/nodejs/tape/lib/test.js:552:10)
>           at Test.bound [as deepEqual] (/usr/share/nodejs/tape/lib/test.js:96:32)
>           at /<<PKGBUILDDIR>>/packages/alias/test/test.js:522:7
>           at processTicksAndRejections (internal/process/task_queues.js:97:5)
>   ...
> ok 34 should be deeply equivalent
> 
> 1..34
> # tests 34
> # pass  32
> # fail  2
> 
> 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/2021/12/20/node-rollup-plugin-alias_3.1.8~ds-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 mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list