Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 862408 - net-libs/nodejs-18.6.0 fails test phase
Summary: net-libs/nodejs-18.6.0 fails test phase
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-07-31 00:19 UTC by Jonathan Lovelace
Modified: 2024-06-20 20:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
net-libs:nodejs-18.6.0:20220730-210938.log.gz (net-libs:nodejs-18.6.0:20220730-210938.log.gz,131.21 KB, application/gzip)
2022-07-31 00:19 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.71 KB, text/plain)
2022-07-31 00:20 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-07-31 00:19:58 UTC
Created attachment 795895 [details]
net-libs:nodejs-18.6.0:20220730-210938.log.gz

=net-libs/nodejs-18.6.0 fails its test phase for me. From the summary line at the end of the build log I guess 3182 individual tests failed(?), but I only see four stack traces in the log, two of which are about a failure of getaddrinfo to resolve "localhost" (which is defined for both IPv4 and IPv6 in /etc/hosts):

--------------------------------------------------------
=== release test-dns-setserver-when-querying ===                               
Path: parallel/test-dns-setserver-when-querying
node:assert:124        
  throw new AssertionError(obj);                                                                              
  ^
                           
AssertionError [ERR_ASSERTION]: Missing expected exception.                                                       at Object.<anonymous> (/var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/test/parallel/test-dns-se
tserver-when-querying.js:17:12)                                                                               
    at Module._compile (node:internal/modules/cjs/loader:1120:14)             
    at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
    at Module.load (node:internal/modules/cjs/loader:998:32)
    at Module._load (node:internal/modules/cjs/loader:839:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {      
  generatedMessage: false,                             
  code: 'ERR_ASSERTION',                                                                                        actual: undefined,                                   
  expected: {                                                                                                 
    code: 'ERR_DNS_SET_SERVERS_FAILED',                                                                       
    message: /^c-ares failed to set servers: "There are pending queries\." \[.+\]$/g        
  },                                                                                                          
  operator: 'throws'                                                                                          }                        
                                                                                                              
Node.js v18.6.0                                                                                               
Command: out/Release/node /var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/test/parallel/test-dns-set
server-when-querying.js                                
=== release test-fs-mkdir ===                                                  
Path: parallel/test-fs-mkdir
node:internal/fs/utils:347
    throw err;
    ^

Error: ENOENT: no such file or directory, mkdir '/var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/tes
t/.tmp.762/test10/../test11/test12'
    at Object.mkdirSync (node:fs:1394:3)
    at Object.<anonymous> (/var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/test/parallel/test-fs-mkd
ir.js:131:6)
    at Module._compile (node:internal/modules/cjs/loader:1120:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
    at Module.load (node:internal/modules/cjs/loader:998:32)
    at Module._load (node:internal/modules/cjs/loader:839:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47 {
  errno: -2,
  syscall: 'mkdir',
  code: 'ENOENT',
  path: '/var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/test/.tmp.762/test10/../test11/test12'
}

Node.js v18.6.0
Command: out/Release/node /var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/test/parallel/test-fs-mkdi
r.js
=== release test-net-socket-connect-without-cb ===                             
Path: parallel/test-net-socket-connect-without-cb
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND localhost
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:26)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -3007,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'localhost'
}

Node.js v18.6.0
Command: out/Release/node /var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/test/parallel/test-net-soc
ket-connect-without-cb.js
=== release test-tcp-wrap-listen ===                                           
Path: parallel/test-tcp-wrap-listen
(node:26711) internal/test/binding: These APIs are for internal testing only. Do not use them.
(Use `node --trace-warnings ...` to show where the warning was created)
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND localhost
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:111:26)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -3007,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'localhost'
}

Node.js v18.6.0
Command: out/Release/node --expose-internals /var/tmp/portage/net-libs/nodejs-18.6.0/work/node-v18.6.0/test/pa
rallel/test-tcp-wrap-listen.js
[09:31|% 100|+ 3182|-   4]: Done                                               
--------------------------------------------------------

(The attached build log includes two runs through the test phase, with AFAICT identical results, because I ran "ebuild /usr/portage/net-libs/nodejs-18.6.0 install" after the initial failure.)
Comment 1 Jonathan Lovelace 2022-07-31 00:20:11 UTC
Created attachment 795898 [details]
emerge-info.txt
Comment 2 William Hubbs gentoo-dev 2024-06-20 20:05:21 UTC
This version is no longer in the tree.
Comment 3 William Hubbs gentoo-dev 2024-06-20 20:15:13 UTC
This version is no longer in the tree.