[Pkg-javascript-devel] Bug#997582: 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
Sat Oct 23 22:06:27 BST 2021
Source: node-rollup-plugin-alias
Version: 3.1.1.repack-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 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...
> (!) Entry module "src/index.ts" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/index.ts" to use named exports only.
> https://rollupjs.org/guide/en/#outputexports
> src/index.ts
> (!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module 'os' or its corresponding type declarations.
> src/index.ts: (1:26)
>
> [7m1[0m import { platform } from 'os';
> [7m [0m [91m ~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module 'rollup' or its corresponding type declarations.
> src/index.ts: (3:43)
>
> [7m3[0m import { PartialResolvedId, Plugin } from 'rollup';
> [7m [0m [91m ~~~~~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module 'slash' or its corresponding type declarations.
> src/index.ts: (4:19)
>
> [7m4[0m import slash from 'slash';
> [7m [0m [91m ~~~~~~~[0m
>
> (!) 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: (46:17)
>
> [7m46[0m return Object.entries(entries).map(([key, value]) => {
> [7m [0m [91m ~~~~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS7031: Binding element 'key' implicitly has an 'any' type.
> src/index.ts: (46:40)
>
> [7m46[0m return Object.entries(entries).map(([key, value]) => {
> [7m [0m [91m ~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS7031: Binding element 'value' implicitly has an 'any' type.
> src/index.ts: (46:45)
>
> [7m46[0m return Object.entries(entries).map(([key, value]) => {
> [7m [0m [91m ~~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'inputOptions' implicitly has an 'any' type.
> src/index.ts: (82:16)
>
> [7m82[0m buildStart(inputOptions) {
> [7m [0m [91m ~~~~~~~~~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'importee' implicitly has an 'any' type.
> src/index.ts: (95:15)
>
> [7m95[0m resolveId(importee, importer) {
> [7m [0m [91m ~~~~~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'importer' implicitly has an 'any' type.
> src/index.ts: (95:25)
>
> [7m95[0m resolveId(importee, importer) {
> [7m [0m [91m ~~~~~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'resolved' implicitly has an 'any' type.
> src/index.ts: (114:74)
>
> [7m114[0m return this.resolve(updatedId, importer, { skipSelf: true }).then((resolved) => {
> [7m [0m [91m ~~~~~~~~[0m
>
> (!) Plugin typescript: @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
> created dist/index.js, dist/index.es.js in 510ms
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test --buildsystem=nodejs
> /!\ 1/package.json not found
> Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debian/Debhelper/Buildsystem/nodejs.pm line 725.
> mkdir -p node_modules
> ln -s ../1 node_modules/
> /!\ 1/package.json not found
> /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
> not ok 24 .end() already called: expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/aliasMe.js to end with /fixtures/aliasMe.js
> ---
> operator: fail
> at: <anonymous> (/<<PKGBUILDDIR>>/packages/alias/test/test.js:396:13)
> stack: |-
> Error: .end() already called: expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/aliasMe.js to end with /fixtures/aliasMe.js
> 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.fail (/usr/share/nodejs/tape/lib/test.js:405:10)
> at Test.bound [as fail] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:289:14)
> at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:475:10)
> at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at /<<PKGBUILDDIR>>/packages/alias/test/test.js:396:13
> at Array.forEach (<anonymous>)
> ...
> not ok 25 .end() already called: expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/folder/anotherNumber.js to end with /fixtures/folder/anotherNumber.js
> ---
> operator: fail
> at: <anonymous> (/<<PKGBUILDDIR>>/packages/alias/test/test.js:396:13)
> stack: |-
> Error: .end() already called: expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/folder/anotherNumber.js to end with /fixtures/folder/anotherNumber.js
> 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.fail (/usr/share/nodejs/tape/lib/test.js:405:10)
> at Test.bound [as fail] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:289:14)
> at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:475:10)
> at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at /<<PKGBUILDDIR>>/packages/alias/test/test.js:396:13
> at Array.forEach (<anonymous>)
> ...
> not ok 26 .end() already called: expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/folder/deep/deep2/index.js to end with /fixtures/folder/deep/deep2/index.js
> ---
> operator: fail
> at: <anonymous> (/<<PKGBUILDDIR>>/packages/alias/test/test.js:396:13)
> stack: |-
> Error: .end() already called: expected /<<PKGBUILDDIR>>/packages/alias/test/fixtures/folder/deep/deep2/index.js to end with /fixtures/folder/deep/deep2/index.js
> 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.fail (/usr/share/nodejs/tape/lib/test.js:405:10)
> at Test.bound [as fail] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:289:14)
> at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:475:10)
> at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:96:32)
> at /<<PKGBUILDDIR>>/packages/alias/test/test.js:396:13
> at Array.forEach (<anonymous>)
> ...
>
> 1..26
> # tests 26
> # pass 23
> # fail 3
>
> 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/10/23/node-rollup-plugin-alias_3.1.1.repack-2_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