paritytech / zombienet

A cli tool to easily spawn ephemeral Polkadot/Substrate networks and perform tests against them.
https://paritytech.github.io/zombienet/
GNU General Public License v3.0
159 stars 91 forks source link

Need to update `@polkadot/*` pkg deps #1846

Closed timbrinded closed 2 months ago

timbrinded commented 2 months ago

Issue Description

Running latest zombienet with the rest of the latest @polkadot libraries, you get the following:

(node:969053) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error:       Error: The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.

undefined

Steps to reproduce the issue

Steps to reproduce the issue 1.Run zombienet with latest 13.0.2 packages:

Describe the results you received

(node:969053) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error:       Error: The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.

undefined

Describe the results you expected

network to launch

Zombienet version

"@zombienet/cli": "1.3.106", "@zombienet/utils": "0.0.25",

Provider

Native

Provider version

## For binaries
polkadot 0.9.40-a2b62fb872b
polkadot-parachain 0.9.380-fe24f39507f 

## For Kubernetes/Podman
podman version 4.4.1

OR

kubectl version v0.26.3
cluster version 1.25.2

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Screenshots

No response

pepoviola commented 2 months ago

Thanks @timbrinded, I will draft a new release asap. Thx!

timbrinded commented 2 months ago

@pepoviola FYI still an issue for @zombienet/cli : 1.3.107 because of @zombienet/orchestrator 0.0.88

❯ pnpm zombienet spawn configs/fullNetworkNative.toml
@polkadot/keyring has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
    cjs 13.0.2  node_modules/.pnpm/@polkadot+keyring@13.0.2_@polkadot+util-crypto@13.0.2_@polkadot+util@13.0.2__@polkadot+util@13.0.2/node_modules/@polkadot/keyring/cjs
    cjs 12.6.2  node_modules/.pnpm/@polkadot+keyring@12.6.2_@polkadot+util-crypto@12.6.2_@polkadot+util@13.0.2__@polkadot+util@13.0.2/node_modules/@polkadot/keyring/cjs
@polkadot/util-crypto has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
    cjs 13.0.2  node_modules/.pnpm/@polkadot+util-crypto@13.0.2_@polkadot+util@13.0.2/node_modules/@polkadot/util-crypto/cjs
    cjs 12.6.2  node_modules/.pnpm/@polkadot+util-crypto@12.6.2_@polkadot+util@13.0.2/node_modules/@polkadot/util-crypto/cjs
@polkadot/wasm-crypto has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
    cjs 7.3.2   node_modules/.pnpm/@polkadot+wasm-crypto@7.3.2_@polkadot+util@13.0.2_@polkadot+x-randomvalues@13.0.2_@polkadot+u_kb5poh4fz3lr2y7edsbmbjzjri/node_modules/@polkadot/wasm-crypto/cjs
    cjs 7.3.2   node_modules/.pnpm/@polkadot+wasm-crypto@7.3.2_@polkadot+util@13.0.2_@polkadot+x-randomvalues@12.6.2_@polkadot+u_w2qkw3e36vihiitxb4i6k3d52e/node_modules/@polkadot/wasm-crypto/cjs
@polkadot/wasm-bridge has multiple versions, ensure that there is only one installed.
Either remove and explicitly install matching versions or dedupe using your package manager.
The following conflicting packages were found:
    cjs 7.3.2   node_modules/.pnpm/@polkadot+wasm-bridge@7.3.2_@polkadot+util@13.0.2_@polkadot+x-randomvalues@13.0.2_@polkadot+u_lhbo4eytojbhic6cpuivbba2cy/node_modules/@polkadot/wasm-bridge/cjs
    cjs 7.3.2   node_modules/.pnpm/@polkadot+wasm-bridge@7.3.2_@polkadot+util@13.0.2_@polkadot+x-randomvalues@12.6.2_@polkadot+u_7andcvwaf4hx2hrgj4pgjjmrm4/node_modules/@polkadot/wasm-bridge/cjs
(node:190789) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Error:       Error: The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.

undefined
❯ pnpm up -i --latest
✔ Choose which packages to update (Press <space> to select, <a> to toggle all, <i> to invert selection) · @zombienet/cli
..                                       |  WARN  `node_modules` is present. Lockfile only installation will make it out-of-date
 WARN  3 deprecated subdependencies found: @substrate/connect@0.8.10, glob@8.1.0, inflight@1.0.6
..                                       | Progress: resolved 476, reused 0, downloaded 0, added 0, done
 WARN  Issues with peer dependencies found
test
└─┬ @zombienet/cli 1.3.107
  └─┬ @zombienet/orchestrator 0.0.88
    ├─┬ @polkadot/util-crypto 12.6.2
    │ ├── ✕ unmet peer @polkadot/util@12.6.2: found 13.0.2
    │ └─┬ @polkadot/x-randomvalues 12.6.2
    │   └── ✕ unmet peer @polkadot/util@12.6.2: found 13.0.2
    └─┬ @polkadot/keyring 12.6.2
      └── ✕ unmet peer @polkadot/util@12.6.2: found 13.0.2

..                                       |  +14  -30 +---
Done in 11.9s
❯
pepoviola commented 2 months ago

Hi @timbrinded, can you re-check with the latest version please? Should works as expected. Thx!

timbrinded commented 2 months ago

Confirmed, works a treat.

Thx fren 🙏

pepoviola commented 2 months ago

Awesome!! Thanks for your feedback :)