Skip to content

Test failures in 23.1.0

Building currently fails with three testsuite failures:

One is parallel/test-crypto-hash:

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected

+ ''
- '7f9c2ba4e88f827d616045507605853e'

    at Object.<anonymous> (/build/nodejs/src/node/test/parallel/test-crypto-hash.js:186:10)
    at Module._compile (node:internal/modules/cjs/loader:1572:14)
    at Object..js (node:internal/modules/cjs/loader:1709:10)
    at Module.load (node:internal/modules/cjs/loader:1315:32)
    at Function._load (node:internal/modules/cjs/loader:1125:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: '',
  expected: '7f9c2ba4e88f827d616045507605853e',
  operator: 'strictEqual'
}

Easily reproducible with:

const crypto = require('crypto');
crypto.createHash('shake128').digest('hex')

Just shows an empty string

=== release test-crypto-oneshot-hash ===
Path: parallel/test-crypto-oneshot-hash
node:internal/crypto/hash:216
  return oneShotDigest(algorithm, getCachedHashId(algorithm), getHashCache(),
         ^

Error: error:00000000:lib(0)::reason(0)
    at Object.hash (node:internal/crypto/hash:216:10)
    at Object.<anonymous> (/build/nodejs/src/node/test/parallel/test-crypto-oneshot-hash.js:36:37)
    at Module._compile (node:internal/modules/cjs/loader:1572:14)
    at Object..js (node:internal/modules/cjs/loader:1709:10)
    at Module.load (node:internal/modules/cjs/loader:1315:32)
    at Function._load (node:internal/modules/cjs/loader:1125:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49

Node.js v23.1.0

Likely related to the other hash issue? Relevant test code is https://github.com/nodejs/node/blob/main/test/parallel/test-crypto-oneshot-hash.js#L36

Lastly

=== release test-tls-psk-circuit ===
Path: parallel/test-tls-psk-circuit
node:assert:90
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected

+ 'ERR_SSL_TLSV1_ALERT_DECRYPT_ERROR'
- 'ERR_SSL_SSL/TLS_ALERT_ILLEGAL_PARAMETER'
           ^

    at TLSSocket.<anonymous> (/build/nodejs/src/node/test/parallel/test-tls-psk-circuit.js:52:16)
    at TLSSocket.<anonymous> (/build/nodejs/src/node/test/common/index.js:491:15)
    at TLSSocket.emit (node:events:507:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 'ERR_SSL_TLSV1_ALERT_DECRYPT_ERROR',
  expected: 'ERR_SSL_SSL/TLS_ALERT_ILLEGAL_PARAMETER',
  operator: 'strictEqual'
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information