[Pkg-javascript-devel] Bug#1008756: node-npmrc: autopkgtest needs update for new version of nodejs: require(...).tmpDir is not a function

Paul Gevers elbrus at debian.org
Thu Mar 31 20:44:59 BST 2022


Source: node-npmrc
Version: 1.1.1-2
Severity: serious
X-Debbugs-CC: nodejs at packages.debian.org
Tags: sid bookworm
User: debian-ci at lists.debian.org
Usertags: needs-update
Control: affects -1 src:nodejs

Dear maintainer(s),

With a recent upload of nodejs in the nodejs transition the autopkgtest 
of node-npmrc fails in testing when that autopkgtest is run with the 
binary packages of nodejs from unstable. It passes when run with only 
packages from testing. In tabular form:

                        pass            fail
nodejs                 from testing    16.13.2+really14.19.1~dfsg-6
node-npmrc             from testing    1.1.1-2
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of nodejs to testing 
[1]. Of course, nodejs shouldn't just break your autopkgtest (or even 
worse, your package), but your package needs to update to the new 
situation or, if this is really an issue with nodejs, reassigned to nodejs.

If this is a real problem in your package (and not only in your 
autopkgtest), the right binary package(s) from nodejs should really add 
a versioned Breaks on the unfixed version of (one of your) package(s). 
Note: the Breaks is nice even if the issue is only in the autopkgtest as 
it helps the migration software to figure out the right versions to 
combine in the tests.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=nodejs

https://ci.debian.net/data/autopkgtest/testing/amd64/n/node-npmrc/20473807/log.gz

# Using ./package.(json|yaml)
# Node module name is npmrc
# Build files found: # Test files found: test.js
# Files/dir to be installed from source: test.js # Copy test files
# Copy debian/tests/pkg-js content
'debian/tests/pkg-js' -> 
'/tmp/autopkgtest-lxc.e2nvfpsn/downtmp/autopkgtest_tmp/smokeQF9eaf/debian/tests/pkg-js'
'debian/tests/pkg-js/test' -> 
'/tmp/autopkgtest-lxc.e2nvfpsn/downtmp/autopkgtest_tmp/smokeQF9eaf/debian/tests/pkg-js/test'
# Searching module in /usr/lib/nodejs/npmrc
# Searching module in /usr/lib/*/nodejs/npmrc
# Searching module in /usr/share/nodejs/npmrc
# Found /usr/share/nodejs/npmrc
# Searching files to link in /usr/share/nodejs/npmrc
'./npmrc.1' -> '/usr/share/nodejs/npmrc/npmrc.1'
'./npmrc.js' -> '/usr/share/nodejs/npmrc/npmrc.js'
'./package.json' -> '/usr/share/nodejs/npmrc/package.json'
# Launch debian/tests/pkg-js/test with sh -ex
+ export HOME=/tmp
+ tape test.js
/tmp/autopkgtest-lxc.e2nvfpsn/downtmp/autopkgtest_tmp/smokeQF9eaf/test.js:7
     , tmpdir  = require('os').tmpDir()
                               ^

TypeError: require(...).tmpDir is not a function
     at Object.<anonymous> 
(/tmp/autopkgtest-lxc.e2nvfpsn/downtmp/autopkgtest_tmp/smokeQF9eaf/test.js:7:31)
     at Module._compile (internal/modules/cjs/loader.js:1085:14)
     at Object.Module._extensions..js 
(internal/modules/cjs/loader.js:1114:10)
     at Module.load (internal/modules/cjs/loader.js:950:32)
     at Function.Module._load (internal/modules/cjs/loader.js:790:12)
     at Module.require (internal/modules/cjs/loader.js:974:19)
     at require (internal/modules/cjs/helpers.js:101:18)
     at importOrRequire 
(/usr/share/nodejs/tape/bin/import-or-require.js:14:5)
     at /usr/share/nodejs/tape/bin/tape:90:14
     at Array.reduce (<anonymous>)
autopkgtest [08:10:19]: test pkg-js-autopkgtest

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220331/eeab90eb/attachment-0001.sig>


More information about the Pkg-javascript-devel mailing list