Package: node-rollup-pluginutils
Version: 2.3.3-2
Severity: serious
Tags: patch

Hello, looks like the latest upload fails its autopkgtestsuite, since
some days/weeks.

See e.g.:
https://ci.debian.net/data/autopkgtest/unstable/amd64/n/node-rollup-pluginutils/1618356/log.gz

(Reading database ... 22971 files and directories currently installed.)
Removing autopkgtest-satdep (0) ...
autopkgtest [07:49:14]: test upstreamtestsuite: [-----------------------
find test/ -name '*.js' -and -not -name 'createFilter.test.js' -exec mocha {} \;
internal/modules/cjs/loader.js:583
    throw err;
    ^

Error: Cannot find module '..'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> 
(/tmp/autopkgtest-lxc.nqmg3_9p/downtmp/build.9cL/src/test/addExtension.test.js:2:22)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at /usr/lib/nodejs/mocha/lib/mocha.js:231:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (/usr/lib/nodejs/mocha/lib/mocha.js:228:14)
    at Mocha.run (/usr/lib/nodejs/mocha/lib/mocha.js:536:10)
    at Object.<anonymous> (/usr/lib/nodejs/mocha/bin/_mocha:573:18)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
internal/modules/cjs/loader.js:583
    throw err;
    ^


I'm not sure which is the best approach to fix this issue, but at least
this approach works:

--- node-rollup-pluginutils-2.3.3/debian/tests/upstreamtestsuite    2018-12-31 
02:23:05.000000000 +0100
+++ node-rollup-pluginutils-2.3.3/debian/tests/upstreamtestsuite    2019-01-20 
22:46:52.000000000 +0100
@@ -1,2 +1,7 @@
 #!/bin/sh
-make -f debian/rules test_package
+sed -i test/dataToEsm.test.js -e "s/( '..' )/('rollup-pluginutils')/g"
+sed -i test/attachScopes.test.js -e "s/( '..' )/('rollup-pluginutils')/g"
+sed -i test/addExtension.test.js -e "s/( '..' )/('rollup-pluginutils')/g"
+sed -i test/makeLegalIdentifier.test.js -e "s/( '..' 
)/('rollup-pluginutils')/g"
+sed -i test/createFilter.test.js -e "s/( '..' )/('rollup-pluginutils')/g"
+make -f debian/rules test_package

This is something that basically reverts commit 
b33024e405af90183a6e6a65ab3163f177932e5e

Thanks for having a look,

Gianfranco

Reply via email to