[Pkg-javascript-devel] Bug#935983: node-browser-resolve tests fail with node-resolve 1.12.0 in experimental

Pirate Praveen praveen at onenetbeyond.org
Wed Aug 28 18:15:57 BST 2019


package: node-browser-resolve
version: 1.11.3-1
severity: important

While trying to update node-resolve, I found the autopkgtest and build 
is failing with this error,

 1) index.js of module dir
  ✓ alternate main
  ✓ string browser field as main
  ✓ string browser field as main - require subfile
  ✓ string alt browser field as main - require subfile
  ✓ object browser field as main
  ✓ object browser field as main
  2) deep module reference mapping
  3) deep module reference mapping without file extension - .js
  4) deep module reference mapping without file extension - .json
  ✓ object browser field replace file
  ✓ test foobar -> module-b replacement
  ✓ test core -> module-c replacement
  ✓ test core -> module-c replacement with alt browser
  ✓ test foobar -> module-b replacement with transform
  ✓ test ./x -> ./y replacement
  ✓ test foobar -> module-i replacement with transform in replacement
  ✓ object browser field replace file - no paths
  ✓ replace module in browser field object
  ✓ override engine shim
  ✓ alt-browser field
  5) alt-browser deep module reference mapping
  ✓ alt-browser fallback to "browser" on deps of deps
  6) not fail on accessing path name defined in Object.prototype

  18 passing (103ms)
  6 failing

  1) index.js of module dir:
     Uncaught AssertionError [ERR_ASSERTION]: Input A expected to 
strictly equal input B:
+ expected - actual

- {
-   main: 'fixtures'
- }
+ undefined
      at /tmp/tmp.4CFPpTZnNa/test/modules.js:11:16
      at /usr/lib/nodejs/browser-resolve/index.js:269:13
      at /usr/share/nodejs/resolve/lib/async.js:93:25
      at maybeUnwrapSymlink 
(/usr/share/nodejs/resolve/lib/async.js:35:9)
      at /usr/share/nodejs/resolve/lib/async.js:89:24
      at ondir (/usr/share/nodejs/resolve/lib/async.js:264:27)
      at onex (/usr/share/nodejs/resolve/lib/async.js:161:32)
      at /usr/share/nodejs/resolve/lib/async.js:11:20
      at FSReqWrap.oncomplete (fs.js:155:5)

  2) deep module reference mapping:
     Uncaught AssertionError [ERR_ASSERTION]: ifError got unwanted 
exception: Cannot find module 'module-l/direct' from 
'/tmp/tmp.4CFPpTZnNa/test/fixtures'
      at /tmp/tmp.4CFPpTZnNa/test/modules.js:95:16
      at /usr/lib/nodejs/browser-resolve/index.js:265:24
      at /usr/share/nodejs/resolve/lib/async.js:99:17
      at /usr/share/nodejs/resolve/lib/async.js:97:35
      at processDirs (/usr/share/nodejs/resolve/lib/async.js:244:39)
      at ondir (/usr/share/nodejs/resolve/lib/async.js:265:13)
      at load (/usr/share/nodejs/resolve/lib/async.js:137:43)
      at onex (/usr/share/nodejs/resolve/lib/async.js:162:17)
      at /usr/share/nodejs/resolve/lib/async.js:13:69
      at FSReqWrap.oncomplete (fs.js:154:21)

  3) deep module reference mapping without file extension - .js:
     Uncaught AssertionError [ERR_ASSERTION]: ifError got unwanted 
exception: Cannot find module 'module-n/foo' from 
'/tmp/tmp.4CFPpTZnNa/test/fixtures'
      at /tmp/tmp.4CFPpTZnNa/test/modules.js:106:16
      at /usr/lib/nodejs/browser-resolve/index.js:265:24
      at /usr/share/nodejs/resolve/lib/async.js:99:17
      at /usr/share/nodejs/resolve/lib/async.js:97:35
      at processDirs (/usr/share/nodejs/resolve/lib/async.js:244:39)
      at ondir (/usr/share/nodejs/resolve/lib/async.js:265:13)
      at load (/usr/share/nodejs/resolve/lib/async.js:137:43)
      at onex (/usr/share/nodejs/resolve/lib/async.js:162:17)
      at /usr/share/nodejs/resolve/lib/async.js:13:69
      at FSReqWrap.oncomplete (fs.js:154:21)

  4) deep module reference mapping without file extension - .json:
     Uncaught AssertionError [ERR_ASSERTION]: ifError got unwanted 
exception: Cannot find module 'module-n/bar' from 
'/tmp/tmp.4CFPpTZnNa/test/fixtures'
      at /tmp/tmp.4CFPpTZnNa/test/modules.js:113:16
      at /usr/lib/nodejs/browser-resolve/index.js:265:24
      at /usr/share/nodejs/resolve/lib/async.js:99:17
      at /usr/share/nodejs/resolve/lib/async.js:97:35
      at processDirs (/usr/share/nodejs/resolve/lib/async.js:244:39)
      at ondir (/usr/share/nodejs/resolve/lib/async.js:265:13)
      at load (/usr/share/nodejs/resolve/lib/async.js:137:43)
      at onex (/usr/share/nodejs/resolve/lib/async.js:162:17)
      at /usr/share/nodejs/resolve/lib/async.js:13:69
      at FSReqWrap.oncomplete (fs.js:154:21)

  5) alt-browser deep module reference mapping:

      Uncaught AssertionError [ERR_ASSERTION]: 
'/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/direct.js' 
== 
'/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/chromeapp-direct.js'
      + expected - actual

      
-/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/direct.js
      
+/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/alt-browser-field/chromeapp-direct.js

      at /tmp/tmp.4CFPpTZnNa/test/modules.js:292:16
      at /usr/lib/nodejs/browser-resolve/index.js:269:13
      at /usr/share/nodejs/resolve/lib/async.js:93:25
      at maybeUnwrapSymlink 
(/usr/share/nodejs/resolve/lib/async.js:35:9)
      at /usr/share/nodejs/resolve/lib/async.js:89:24
      at onfile (/usr/share/nodejs/resolve/lib/async.js:258:27)
      at onex (/usr/share/nodejs/resolve/lib/async.js:161:32)
      at /usr/share/nodejs/resolve/lib/async.js:11:20
      at FSReqWrap.oncomplete (fs.js:155:5)

  6) not fail on accessing path name defined in Object.prototype:

      Uncaught AssertionError [ERR_ASSERTION]: 'toString' == 
'/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/toString/index.js'
      + expected - actual

      -toString
      +/tmp/tmp.4CFPpTZnNa/test/fixtures/node_modules/toString/index.js

      at /tmp/tmp.4CFPpTZnNa/test/modules.js:317:16
      at /usr/lib/nodejs/browser-resolve/index.js:269:13
      at /usr/share/nodejs/resolve/lib/async.js:87:38
      at ondir (/usr/share/nodejs/resolve/lib/async.js:264:27)
      at onex (/usr/share/nodejs/resolve/lib/async.js:161:32)
      at /usr/share/nodejs/resolve/lib/async.js:11:20
      at FSReqWrap.oncomplete (fs.js:155:5)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20190828/c153feb5/attachment.html>


More information about the Pkg-javascript-devel mailing list