Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(tap): fix Node >=v18 error:0308010C:digital envelope routines::unsupported #2520

Closed
petermetz opened this issue Jun 27, 2023 · 0 comments · Fixed by #2521
Closed

test(tap): fix Node >=v18 error:0308010C:digital envelope routines::unsupported #2520

petermetz opened this issue Jun 27, 2023 · 0 comments · Fixed by #2521
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Tests Anything related to tests be that automatic or manual, integration or unit, etc.

Comments

@petermetz
Copy link
Contributor

Summary

Running tap tests on Node v18 and newer crashes with a generic error as seen
below.

The fix is to upgrade the test runner to the current latest which is compatible
with the newer versions of NodeJS

How to Reproduce

yarn tap --ts --timeout=9999 packages/cactus-plugin-ledger-connector-besu/src/test/typescript/integration/plugin-ledger-connector-besu/deploy-contract/private-deploy-contract-from-json-cactus.test.ts

Lgs

vscode ➜ /workspaces/cacti (main) $ yarn tap --ts --timeout=9999 packages/cactus-plugin-ledger-connector-besu/src/test/typescript/integration/plugin-ledger-connector-besu/deploy-contract/private-deploy-contract-from-json-cactus.test.ts
yarn run v1.22.17
$ /workspaces/cacti/node_modules/.bin/tap --ts --timeout=9999 packages/cactus-plugin-ledger-connector-besu/src/test/typescript/integration/plugin-ledger-connector-besu/deploy-contract/private-deploy-contract-from-json-cactus.test.ts
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at filename (/workspaces/cacti/node_modules/tap/node_modules/import-jsx/cache.js:23:22)
    at handleCache (/workspaces/cacti/node_modules/tap/node_modules/import-jsx/cache.js:43:36)
    at module.exports (/workspaces/cacti/node_modules/tap/node_modules/import-jsx/cache.js:97:9)
    at Module.module._compile (/workspaces/cacti/node_modules/tap/node_modules/import-jsx/index.js:37:19)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at /workspaces/cacti/node_modules/tap/node_modules/append-transform/index.js:64:4
    at require.extensions.<computed> (/workspaces/cacti/node_modules/tap/node_modules/import-jsx/index.js:49:3)
    at Object.<anonymous> (/workspaces/cacti/node_modules/tap/node_modules/append-transform/index.js:64:4) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
TAP version 13
1..0
# time=1.377ms
----------|---------|----------|---------|---------|-------------------
File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
----------|---------|----------|---------|---------|-------------------
All files |       0 |        0 |       0 |       0 |                   
----------|---------|----------|---------|---------|-------------------
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@petermetz petermetz added bug Something isn't working dependencies Pull requests that update a dependency file Tests Anything related to tests be that automatic or manual, integration or unit, etc. labels Jun 27, 2023
@petermetz petermetz self-assigned this Jun 27, 2023
petermetz added a commit to petermetz/cacti that referenced this issue Jun 27, 2023
…nsupported

Bumping tap and tape to their current latest stable versions.

Fixes hyperledger-cacti#2520

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
petermetz added a commit to petermetz/cacti that referenced this issue Jun 28, 2023
…nsupported

Bumping tap and tape to their current latest stable versions.

Fixes hyperledger-cacti#2520

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
petermetz added a commit that referenced this issue Jun 28, 2023
…nsupported

Bumping tap and tape to their current latest stable versions.

Fixes #2520

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
rudranshsharma123 pushed a commit to rudranshsharma123/cacti that referenced this issue Jul 5, 2023
…nsupported

Bumping tap and tape to their current latest stable versions.

Fixes hyperledger-cacti#2520

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
sandeepnRES pushed a commit to sandeepnRES/cacti that referenced this issue Dec 21, 2023
…nsupported

Bumping tap and tape to their current latest stable versions.

Fixes hyperledger-cacti#2520

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Tests Anything related to tests be that automatic or manual, integration or unit, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant