[Pkg-javascript-devel] Bug#1011871: node-rollup-pluginutils: FTBFS: dh_auto_test: error: /bin/sh -ex debian/nodejs/test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Thu May 26 20:15:27 BST 2022
Source: node-rollup-pluginutils
Version: 4.2.1~ds+~2.8.2-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 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 legacy module
> dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/legacy/build
> cd ./legacy && sh -ex ../debian/nodejs/legacy/build
> + rollup -c
> [36m
> [1msrc/index.ts[22m → [1mdist/pluginutils.cjs.js, dist/pluginutils.es.js[22m...[39m
> [1m[33m(!) Unresolved dependencies[39m[22m
> [90mhttps://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency[39m
> [1mmicromatch[22m (imported by src/createFilter.ts)
> [32mcreated [1mdist/pluginutils.cjs.js, dist/pluginutils.es.js[22m in [1m398ms[22m[39m
> + cp src/pluginutils.d.ts dist/pluginutils.d.ts
> # Build @rollup/pluginutils
> cd packages/pluginutils; if rollup -c; then \
> echo "build succeeds"; \
> else \
> echo "build failed, trying with legacy rollup plugins"; \
> rollup -c ../../debian/rollup-legacy.config.js; \
> fi
> [36m
> [1msrc/index.ts[22m → [1m./dist/cjs/index.js, ./dist/es/index.js[22m...[39m
> [1m[33m(!) Plugin typescript: @rollup/plugin-typescript TS2307: Cannot find module 'estree-walker' or its corresponding type declarations.[39m[22m
> [1msrc/attachScopes.ts: (4:22)[22m
> [90m
> [7m4[0m import { walk } from 'estree-walker';
> [7m [0m [91m ~~~~~~~~~~~~~~~[0m
> [39m
> [1m[33m(!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'n' implicitly has an 'any' type.[39m[22m
> [1msrc/attachScopes.ts: (66:11)[22m
> [90m
> [7m66[0m enter(n, parent) {
> [7m [0m [91m ~[0m
> [39m
> [1msrc/attachScopes.ts: (135:11)[22m
> [90m
> [7m135[0m leave(n) {
> [7m [0m [91m ~[0m
> [39m
> [1m[33m(!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'parent' implicitly has an 'any' type.[39m[22m
> [1msrc/attachScopes.ts: (66:14)[22m
> [90m
> [7m66[0m enter(n, parent) {
> [7m [0m [91m ~~~~~~[0m
> [39m
> [1m[33m(!) Plugin typescript: @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.[39m[22m
> [1m[33m(!) Unresolved dependencies[39m[22m
> [90mhttps://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency[39m
> [1mestree-walker[22m (imported by src/attachScopes.ts)
> [32mcreated [1m./dist/cjs/index.js, ./dist/es/index.js[22m in [1m1.2s[22m[39m
> build succeeds
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test --buildsystem=nodejs
> mkdir -p node_modules/\@rollup
> ln -s ../../packages/pluginutils node_modules/\@rollup/pluginutils
> cd ./legacy && sh -ex ../debian/nodejs/legacy/test
> + ls test/addExtension.test.ts test/attachScopes.test.ts test/createFilter.test.ts test/dataToEsm.test.ts test/extractAssignedNames.test.ts test/makeLegalIdentifier.test.ts
> + grep -v attachScopes
> + grep -v createFilter
> + mocha test/addExtension.test.ts test/dataToEsm.test.ts test/extractAssignedNames.test.ts test/makeLegalIdentifier.test.ts
>
>
> addExtension
> undefined adds .js to an ID without an extension
> undefined ignores file with existing extension
> undefined ignores file with trailing dot
> undefined ignores leading .
> undefined adds a custom extension
>
> dataToEsm
> undefined outputs treeshakeable data
> undefined handles illegal identifiers, object shorthand, preferConst
> undefined supports non-JSON data
> undefined supports a compact argument
> undefined supports nested objects
> undefined supports nested arrays
> undefined serializes null
> undefined supports default only
> undefined exports default only for arrays
> undefined exports default only for null
> undefined exports default only for primitive values
> undefined supports empty keys
> undefined avoid U+2029 U+2029 -0 be ignored by JSON.stringify, and avoid it return non-string (undefined) before replacing
>
> extractAssignedNames
> undefined extracts an Identifier
> undefined extracts from array patterns
> undefined extracts from object patterns
> undefined ignores updated member expressions
>
> makeLegalIdentifier
> undefined camel-cases names
> undefined replaces keywords
> undefined blacklists arguments (https://github.com/rollup/rollup/issues/871)
> undefined empty
>
>
> 26 passing (24ms)
>
> /bin/sh -ex debian/nodejs/test
> + tape -J packages/pluginutils/test/addExtension.ts packages/pluginutils/test/attachScopes.ts packages/pluginutils/test/createFilter.ts packages/pluginutils/test/dataToEsm.ts packages/pluginutils/test/extractAssignedNames.ts packages/pluginutils/test/makeLegalIdentifier.ts packages/pluginutils/test/normalizePath.ts
> node:internal/modules/cjs/loader:936
> throw err;
> ^
>
> Error: Cannot find module 'acorn'
> Require stack:
> - /<<PKGBUILDDIR>>/packages/pluginutils/test/attachScopes.ts
> - /usr/share/nodejs/tape/bin/import-or-require.js
> - /usr/share/nodejs/tape/bin/tape
> at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
> at Function.Module._load (node:internal/modules/cjs/loader:778:27)
> at Module.require (node:internal/modules/cjs/loader:1005:19)
> at require (node:internal/modules/cjs/helpers:102:18)
> at Object.<anonymous> (/<<PKGBUILDDIR>>/packages/pluginutils/test/attachScopes.ts:5:19)
> at Module._compile (node:internal/modules/cjs/loader:1103:14)
> at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
> at Module.load (node:internal/modules/cjs/loader:981:32)
> at Function.Module._load (node:internal/modules/cjs/loader:822:12)
> at Module.require (node:internal/modules/cjs/loader:1005:19) {
> code: 'MODULE_NOT_FOUND',
> requireStack: [
> '/<<PKGBUILDDIR>>/packages/pluginutils/test/attachScopes.ts',
> '/usr/share/nodejs/tape/bin/import-or-require.js',
> '/usr/share/nodejs/tape/bin/tape'
> ]
> }
> dh_auto_test: error: /bin/sh -ex debian/nodejs/test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2022/05/25/node-rollup-pluginutils_4.2.1~ds+~2.8.2-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&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 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