#1001683 node-babel-loader: FTBFS with webpack5: failing tests

#1001683#5
Date:
2021-12-14 08:47:30 UTC
From:
To:
Version: 8.2.3-1

Severity: important

Justification: ftbfs

Tags: ftbfs

User: pkg-javascript-devel@alioth-lists.debian.net

Usertags: webpack5

Hi,

We are starting to build against webpack5 in experimental and the
package needed for local build is webpack and node-webpack-source from
experimental.
During a test rebuild, node-babel-loader was found to fail to build in
that situation.

Relevant part (hopefully):


# should throw error
(node:207301) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK]
DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to
NormalModule.getCompilationHooks(compilation).loader
(node:207301) [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_*.

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:311:54)
           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>>/test/sourcemaps.test.js:123:15
           at FSReqCallback.readFileAfterClose [as oncomplete]
(internal/fs/read_file_context.js:63:3)
   ...
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:311:54)
           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>>/test/sourcemaps.test.js:240:15
           at FSReqCallback.readFileAfterClose [as oncomplete]
(internal/fs/read_file_context.js:63: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:311:54)
           at Test.bound [as _assert]
(/usr/share/nodejs/tape/lib/test.js:96:32)
           at Test.assert (/usr/share/nodejs/tape/lib/test.js:430:10)
           at Test.bound [as ok] (/usr/share/nodejs/tape/lib/test.js:96:32)
           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:247:15
           at FSReqCallback.readFileAfterClose [as oncomplete]
(internal/fs/read_file_context.js:63:3)
   ...
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:311:54)
           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>>/test/sourcemaps.test.js:304:15
           at FSReqCallback.readFileAfterClose [as oncomplete]
(internal/fs/read_file_context.js:63: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:311:54)
           at Test.bound [as _assert]
(/usr/share/nodejs/tape/lib/test.js:96:32)
           at Test.assert (/usr/share/nodejs/tape/lib/test.js:430:10)
           at Test.bound [as ok] (/usr/share/nodejs/tape/lib/test.js:96:32)
           at /<<PKGBUILDDIR>>/test/sourcemaps.test.js:311:15
           at FSReqCallback.readFileAfterClose [as oncomplete]
(internal/fs/read_file_context.js:63:3)
   ...


The full log is attached to this mail.

#1001683#24
Date:
2022-05-31 17:07:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-babel-loader, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011804@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Yadd <yadd@debian.org> (supplier of updated node-babel-loader package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 31 May 2022 18:44:20 +0200
Source: node-babel-loader
Architecture: source
Version: 8.2.5-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Yadd <yadd@debian.org>
Closes: 1011804
Changes:
 node-babel-loader (8.2.5-2) unstable; urgency=medium
 .
   * Team upload
   * Declare compliance with policy 4.6.1
   * Fix clean
   * Fix test for webpack5 and tape (instead of ava 3) (Closes: #1011804)
Checksums-Sha1:
 153f0729a7610a68f10b3c2a79572f016dbab8ab 2257 node-babel-loader_8.2.5-2.dsc
 00165d86585e458016b25fe7d7013f1f1d2cc217 12048 node-babel-loader_8.2.5-2.debian.tar.xz
Checksums-Sha256:
 978e066b851c647fac69d2bc61a1d4a123bcb1f935998ed7baad2c21b95b1c1a 2257 node-babel-loader_8.2.5-2.dsc
 bd8e1b203c82c208166ded60ba5173a9ba002ca6d15927611aa3839a1398bef8 12048 node-babel-loader_8.2.5-2.debian.tar.xz
Files:
 f6011ff8fce81caab86df6b42ef839d1 2257 javascript optional node-babel-loader_8.2.5-2.dsc
 38fb9e324b3c27028ae842505a84f26c 12048 javascript optional node-babel-loader_8.2.5-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmKWRkEACgkQ9tdMp8mZ
7unUKw/+MLScC5lYKowL7ZiqBcqb+5j4q/h0C7h1/y7bYzjqtq1hAVNRhvh43QNW
BRb8MDBUgdNZCd8xFTcIMFnPoElEGym6agP6LUnRWMz47oBIPsMdwzueOt7NWIQ/
URDV0Fh86m821O2ax7GEUEykB0mXT3fSD1L8lz6GlLS4QzzfsY2a3y/gKBYsah5F
EqDRbhg12OFQEAZJPV3R9jLbOIyq4MWZqNgKEMgp18OwFPgwU/jg5zw5dl2ILeAi
s7c7ahsZL9cuTD33ovDBQLc6cy68wkee04e+zugIr3wk2yXpZO7AwtyGM+oBHBfI
brlKiyu0CkFr5/P7KQ46Rkni/uHkOS48UKlJrxtk0+U991sYrjCmK2E1Azv0pHEE
Emy0F704q/NaPR2t+261UCUwb7JeIZKO4n42nUScf1vpDM9HASIRd0zrYHDfP166
K65PrI03ggQ7KcInnxoJHaE5+vOX2ijUnJW6FCxY/qlHxO24X09wC4Zge4oZwest
4m0J4bsrGv3y3i6o5/XS+CVzYjgs4oOtu22J+s65Z26dJKwmf2wz7KnQKWzpp+Q+
86qxN9Sax5wSrW4u/SeNMWu62GOF87SPg+C2vNOJhhQac2q/K6PnMEBjF2xmVeZc
Vql6UZic4afBZXgUTjlTzxDxN++6xq2bZxB8dPPZYO3boOHWSVw=
=Fjpl
-----END PGP SIGNATURE-----