[Pkg-javascript-devel] Bug#1001745: node-grunt-webpack: FTBFS with webpack5: Fails integration tests

Caleb Adepitan calebpitan at gmail.com
Wed Dec 15 06:38:45 GMT 2021


Source: node-grunt-webpack

Version: 4.0.3-1

Severity: important

Justification: ftbfs

Tags: ftbfs

User: pkg-javascript-devel at 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-grunt-webpack was found to fail to build in 
that situation.

Relevant part (hopefully):


FAIL tests/integration/fixtures.test.js (93.203 s)
   ● Console

     console.log
       Running "webpack" task
       asset output.js 106 bytes [emitted] (name: main)
       ./entry.js 19 bytes [built] [code generated]
       webpack 5.58.2 compiled successfully in 231 ms

       at eval (eval at runExec 
(tests/integration/fixtures.test.js:40:50), <anonymous>:1:44)

   ● Fixture Tests › webpack error

     expect(received).toMatch(expected)

     Expected pattern: /Can't resolve '\.\/b'/
     Received string:  "Running \"webpack\" task
     Fatal error: Cannot read property 'fullySpecified' of undefined
     TypeError: Cannot read property 'fullySpecified' of undefined

       871 | 			[
       872 | 				callback => {
     > 873 | 					if (!resolver.options.fullySpecified) return callback();
           | 					                      ^
       874 | 					resolver
       875 | 						.withOptions({
       876 | 							fullySpecified: false

       at Array.<anonymous> 
(../../../usr/share/nodejs/webpack/lib/NormalModuleFactory.js:873:28)
       at arrayEachFunc 
(../../../usr/share/nodejs/neo-async/lib/async.js:2517:19)
       at Object.parallel 
(../../../usr/share/nodejs/neo-async/lib/async.js:6858:9)
       at NormalModuleFactory._resolveResourceErrorHints 
(../../../usr/share/nodejs/webpack/lib/NormalModuleFactory.js:870:12)
       at 
../../../usr/share/nodejs/webpack/lib/NormalModuleFactory.js:831:18
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:184:12
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:13:1)
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:10:1)
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/DescriptionFilePlugin.js:42:38
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:31:1)
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:10:1)
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/DescriptionFilePlugin.js:42:38
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:22:1)
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:13:1)
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/DirectoryExistsPlugin.js:22:13
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/CachedInputFileSystem.js:73:15
       at processTicksAndRejections (internal/process/task_queues.js:79:11)·
       "
       at eval (eval at runExec 
(tests/integration/fixtures.test.js:40:50), <anonymous>:1:50)
       at runExec (tests/integration/fixtures.test.js:41:13)
       at finish (tests/integration/fixtures.test.js:119:27)
       at ChildProcess.<anonymous> 
(tests/integration/fixtures.test.js:124:13)

   ● Fixture Tests › webpack error

     thrown: "Exceeded timeout of 10000 ms for a test.
     Use jest.setTimeout(newTimeout) to increase the timeout value, if 
this is a long-running test."

       75 |     const testFunc = directoryParts.pop().startsWith(".") ? 
test.skip : test;
       76 |
     > 77 |     testFunc(
          |     ^
       78 |       name,
       79 |       async () => {
       80 |         await fs.copy(directory, cwd);

       at forEach (tests/integration/fixtures.test.js:77:5)
           at Map.forEach (<anonymous>)
       at tests/integration/fixtures.test.js:73:9
       at Object.<anonymous> (tests/integration/fixtures.test.js:55:1)

   ● Fixture Tests › webpack error-without-stats

     expect(received).toMatch(expected)

     Expected pattern: /Can't resolve '\.\/b'/
     Received string:  "Running \"webpack\" task
     Fatal error: Cannot read property 'fullySpecified' of undefined
     TypeError: Cannot read property 'fullySpecified' of undefined

       871 | 			[
       872 | 				callback => {
     > 873 | 					if (!resolver.options.fullySpecified) return callback();
           | 					                      ^
       874 | 					resolver
       875 | 						.withOptions({
       876 | 							fullySpecified: false

       at Array.<anonymous> 
(../../../usr/share/nodejs/webpack/lib/NormalModuleFactory.js:873:28)
       at arrayEachFunc 
(../../../usr/share/nodejs/neo-async/lib/async.js:2517:19)
       at Object.parallel 
(../../../usr/share/nodejs/neo-async/lib/async.js:6858:9)
       at NormalModuleFactory._resolveResourceErrorHints 
(../../../usr/share/nodejs/webpack/lib/NormalModuleFactory.js:870:12)
       at 
../../../usr/share/nodejs/webpack/lib/NormalModuleFactory.js:831:18
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:184:12
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:13:1)
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:10:1)
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/DescriptionFilePlugin.js:42:38
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:31:1)
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:10:1)
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/DescriptionFilePlugin.js:42:38
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:22:1)
       at ../../../usr/share/nodejs/enhanced-resolve/lib/Resolver.js:238:5
       at eval (<anonymous>:13:1)
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/DirectoryExistsPlugin.js:22:13
       at 
../../../usr/share/nodejs/enhanced-resolve/lib/CachedInputFileSystem.js:73:15
       at processTicksAndRejections (internal/process/task_queues.js:79:11)·
       "
       at eval (eval at runExec 
(tests/integration/fixtures.test.js:40:50), <anonymous>:1:50)
       at runExec (tests/integration/fixtures.test.js:41:13)
       at finish (tests/integration/fixtures.test.js:119:27)
       at ChildProcess.<anonymous> 
(tests/integration/fixtures.test.js:124:13)

   ● Fixture Tests › webpack error-without-stats

     thrown: "Exceeded timeout of 10000 ms for a test.
     Use jest.setTimeout(newTimeout) to increase the timeout value, if 
this is a long-running test."

       75 |     const testFunc = directoryParts.pop().startsWith(".") ? 
test.skip : test;
       76 |
     > 77 |     testFunc(
          |     ^
       78 |       name,
       79 |       async () => {
       80 |         await fs.copy(directory, cwd);

       at forEach (tests/integration/fixtures.test.js:77:5)
           at Map.forEach (<anonymous>)
       at tests/integration/fixtures.test.js:73:9
       at Object.<anonymous> (tests/integration/fixtures.test.js:55:1)

   ● Fixture Tests › webpack multi-compiler

     expect(received).toBe(expected) // Object.is equality

     Expected: 0
     Received: 3

       3 |     success: function assertGruntSuccess() {
       4 |       expect(timeout).toBe(false);
     > 5 |       expect(returnCode).toBe(0);
         |                          ^
       6 |       expect(stdout).not.toMatch(/ERROR/i);
       7 |     },
       8 |     failed: function assertGruntFailed() {

       at Object.apply [as success] (tests/utils/assertGrunt.js:5:26)
       at eval (eval at runExec 
(tests/integration/fixtures.test.js:40:50), <anonymous>:1:26)
       at runExec (tests/integration/fixtures.test.js:41:13)
       at finish (tests/integration/fixtures.test.js:119:27)
       at ChildProcess.<anonymous> 
(tests/integration/fixtures.test.js:124:13)

   ● Fixture Tests › webpack multi-compiler

     thrown: "Exceeded timeout of 10000 ms for a test.
     Use jest.setTimeout(newTimeout) to increase the timeout value, if 
this is a long-running test."

       75 |     const testFunc = directoryParts.pop().startsWith(".") ? 
test.skip : test;
       76 |
     > 77 |     testFunc(
          |     ^
       78 |       name,
       79 |       async () => {
       80 |         await fs.copy(directory, cwd);

       at forEach (tests/integration/fixtures.test.js:77:5)
           at Map.forEach (<anonymous>)
       at tests/integration/fixtures.test.js:73:9
       at Object.<anonymous> (tests/integration/fixtures.test.js:55:1)

   ● Fixture Tests › webpack multi-compiler-verbose

     expect(received).toBe(expected) // Object.is equality

     Expected: 0
     Received: 3

       3 |     success: function assertGruntSuccess() {
       4 |       expect(timeout).toBe(false);
     > 5 |       expect(returnCode).toBe(0);
         |                          ^
       6 |       expect(stdout).not.toMatch(/ERROR/i);
       7 |     },
       8 |     failed: function assertGruntFailed() {

       at Object.apply [as success] (tests/utils/assertGrunt.js:5:26)
       at eval (eval at runExec 
(tests/integration/fixtures.test.js:40:50), <anonymous>:1:26)
       at runExec (tests/integration/fixtures.test.js:41:13)
       at finish (tests/integration/fixtures.test.js:119:27)
       at ChildProcess.<anonymous> 
(tests/integration/fixtures.test.js:124:13)

   ● Fixture Tests › webpack multi-compiler-verbose

     thrown: "Exceeded timeout of 10000 ms for a test.
     Use jest.setTimeout(newTimeout) to increase the timeout value, if 
this is a long-running test."

       75 |     const testFunc = directoryParts.pop().startsWith(".") ? 
test.skip : test;
       76 |
     > 77 |     testFunc(
          |     ^
       78 |       name,
       79 |       async () => {
       80 |         await fs.copy(directory, cwd);

       at forEach (tests/integration/fixtures.test.js:77:5)
           at Map.forEach (<anonymous>)
       at tests/integration/fixtures.test.js:73:9
       at Object.<anonymous> (tests/integration/fixtures.test.js:55:1)

The full log is attached to this mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node-grunt-webpack.log
Type: text/x-log
Size: 131533 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211215/4408c07d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x8A1B2CC96775D2D7.asc
Type: application/pgp-keys
Size: 3139 bytes
Desc: OpenPGP public key
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211215/4408c07d/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20211215/4408c07d/attachment.sig>


More information about the Pkg-javascript-devel mailing list