[Pkg-javascript-devel] Bug#1011804: node-babel-loader: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1

Lucas Nussbaum lucas at debian.org
Thu May 26 20:09:47 BST 2022


Source: node-babel-loader
Version: 8.2.5-1
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>>'
> babeljs src -d lib --no-babelrc --copy-files
> Successfully compiled 5 files with Babel (598ms).
> sed -i '1s/^/"use strict";\n\n/' lib/*.js
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> 	mkdir -p node_modules
> 	ln -s ../debian/tests/test_modules/pnp-webpack-plugin node_modules/pnp-webpack-plugin
> 	ln -s ../debian/tests/test_modules/react-intl-webpack-plugin node_modules/react-intl-webpack-plugin
> 	ln -s ../debian/tests/test_modules/ts-pnp node_modules/ts-pnp
> 	ln -s ../. node_modules/babel-loader
> 	/bin/sh -ex debian/tests/pkg-js/test
> + mkdir -p test/output/cache/cachefiles
> + tape test/cache.test.js test/loader.test.js test/metadata.test.js test/options.test.js test/sourcemaps.test.js
> TAP version 13
> # should output files to cache directory
> end
> ok 1 should be strictly equal
> ok 2 should be deeply equivalent
> ok 3 should be deeply equivalent
> ok 4 should be strictly equal
> # should output json.gz files to standard cache dir by default
> end
> ok 5 should be strictly equal
> ok 6 should be deeply equivalent
> ok 7 should be deeply equivalent
> ok 8 should be strictly equal
> ok 9 should be truthy
> # should output non-compressed files to standard cache dir when cacheCompression is set to false
> end
> ok 10 should be strictly equal
> ok 11 should be strictly equal
> ok 12 should be truthy
> # should output files to standard cache dir if set to true in query
> end
> ok 13 should be strictly equal
> ok 14 should be deeply equivalent
> ok 15 should be deeply equivalent
> ok 16 should be strictly equal
> ok 17 should be truthy
> # should read from cache directory if cached file exists
> end
> ok 18 should be strictly equal
> ok 19 should be deeply equivalent
> ok 20 should be deeply equivalent
> ok 21 should be strictly equal
> ok 22 should be strictly equal
> ok 23 should be truthy
> # should have one file per module
> end
> ok 24 should be strictly equal
> ok 25 should be deeply equivalent
> ok 26 should be deeply equivalent
> ok 27 should be strictly equal
> # should generate a new file if the identifier changes
> end
> ok 28 should be strictly equal
> ok 29 should be deeply equivalent
> ok 30 should be deeply equivalent
> ok 31 should be strictly equal
> ok 32 should be deeply equivalent
> ok 33 should be deeply equivalent
> ok 34 should be strictly equal
> # should allow to specify the .babelrc file
> end
> ok 35 should be strictly equal
> ok 36 should be deeply equivalent
> ok 37 should be deeply equivalent
> ok 38 should be deeply equivalent
> ok 39 should be deeply equivalent
> ok 40 should be strictly equal
> # should transpile the code snippet
> ok 41 should be strictly equal
> ok 42 should be deeply equivalent
> ok 43 should be deeply equivalent
> ok 44 should be strictly equal
> # should not throw error on syntax error
> ok 45 should be truthy
> ok 46 should be truthy
> ok 47 should be deeply equivalent
> # should not throw without config
> ok 48 should be strictly equal
> ok 49 should be deeply equivalent
> ok 50 should be deeply equivalent
> # should return compilation errors with the message included in the stack trace
> ok 51 should be strictly equal
> ok 52 should be deeply equivalent
> ok 53 should be truthy
> # should load ESM config files
> ok 54 should be strictly equal
> ok 55 should be deeply equivalent
> ok 56 should be deeply equivalent
> # should throw error
> (node:779973) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
> (Use `node --trace-deprecation ...` to show where the warning was created)
> (node:779973) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
> BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
> 	Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
> 	Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
> ok 57 should be strictly equal
> ok 58 should be truthy
> ok 59 should be deeply equivalent
> # should interpret options given to the loader
> ok 60 should be strictly equal
> ok 61 should be deeply equivalent
> ok 62 should be deeply equivalent
> ok 63 should be strictly equal
> ok 64 should be truthy
> # should output webpack's sourcemap
> ok 65 should be strictly equal
> ok 66 should be deeply equivalent
> ok 67 should be deeply equivalent
> ok 68 should be strictly equal
> # should output webpack's sourcemap properly when set 'inline'
> ok 69 should be strictly equal
> ok 70 should be deeply equivalent
> ok 71 should be deeply equivalent
> ok 72 should be strictly equal
> ok 73 should be truthy
> ok 74 should be strictly equal
> not ok 75 should be strictly equal
>   ---
>     operator: equal
>     expected: |-
>       'webpack://babel-loader/./test/fixtures/basic.js'
>     actual: |-
>       'webpack://babel-loader/webpack/bootstrap'
>     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:123:15)
>     stack: |-
>       Error: should be strictly equal
>           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:314:54)
>           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:478:10)
>           at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:123:15
>           at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
>   ...
> ok 76 should be falsy
> # should output webpack's devtoolModuleFilename option
> ok 77 should be strictly equal
> ok 78 should be deeply equivalent
> ok 79 should be deeply equivalent
> ok 80 should be strictly equal
> ok 81 should be truthy
> ok 82 should be strictly equal
> ok 83 should be truthy
> # should disable sourcemap output with 'sourceMaps:false'
> ok 84 should be strictly equal
> ok 85 should be deeply equivalent
> ok 86 should be deeply equivalent
> ok 87 should be strictly equal
> ok 88 should be truthy
> ok 89 should be strictly equal
> not ok 90 should be strictly equal
>   ---
>     operator: equal
>     expected: |-
>       'webpack://babel-loader/./test/fixtures/basic.js'
>     actual: |-
>       'webpack://babel-loader/webpack/bootstrap'
>     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:240:15)
>     stack: |-
>       Error: should be strictly equal
>           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:314:54)
>           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:478:10)
>           at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:240:15
>           at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
>   ...
> not ok 91 should be truthy
>   ---
>     operator: ok
>     expected: true
>     actual:   false
>     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:247:15)
>     stack: |-
>       Error: should be truthy
>           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:314:54)
>           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at Test.assert (/usr/share/nodejs/tape/lib/test.js:433:10)
>           at Test.bound [as ok] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:247:15
>           at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
>   ...
> # should disable sourcemap output with 'sourceMap:false'
> ok 92 should be strictly equal
> ok 93 should be deeply equivalent
> ok 94 should be deeply equivalent
> ok 95 should be strictly equal
> ok 96 should be truthy
> ok 97 should be strictly equal
> not ok 98 should be strictly equal
>   ---
>     operator: equal
>     expected: |-
>       'webpack://babel-loader/./test/fixtures/basic.js'
>     actual: |-
>       'webpack://babel-loader/webpack/bootstrap'
>     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:304:15)
>     stack: |-
>       Error: should be strictly equal
>           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:314:54)
>           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at Test.strictEqual (/usr/share/nodejs/tape/lib/test.js:478:10)
>           at Test.bound [as is] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:304:15
>           at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
>   ...
> not ok 99 should be truthy
>   ---
>     operator: ok
>     expected: true
>     actual:   false
>     at: <anonymous> (/<<PKGBUILDDIR>>/test/sourcemaps.test.js:311:15)
>     stack: |-
>       Error: should be truthy
>           at Test.assert [as _assert] (/usr/share/nodejs/tape/lib/test.js:314:54)
>           at Test.bound [as _assert] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at Test.assert (/usr/share/nodejs/tape/lib/test.js:433:10)
>           at Test.bound [as ok] (/usr/share/nodejs/tape/lib/test.js:99:32)
>           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:311:15
>           at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
>   ...
> 
> 1..99
> # tests 99
> # pass  94
> # fail  5
> 
> 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/2022/05/25/node-babel-loader_8.2.5-1_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