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

Upgrades to 0.9.30 #710

Merged
merged 22 commits into from
Nov 10, 2022
Merged

Upgrades to 0.9.30 #710

merged 22 commits into from
Nov 10, 2022

Conversation

claravanstaden
Copy link
Contributor

@claravanstaden claravanstaden commented Oct 27, 2022

  • Replaces Event, Call and Origin with new names. (I may have missed a few places in the benchmarking code, will updates as part of checking if the benchmarking features compile)
  • Updates node source (service.rs, command.rs)
  • Snowbase runtime compiles
  • Snowblink runtime compiles
  • Snowbridge runtime compiles
  • Test parachain compiles
  • E2E tests pass
  • Benchmarking features compiles
  • Github actions pass
  • Fix compiler warnings
  • Fix Rust tests

@claravanstaden claravanstaden self-assigned this Oct 28, 2022
@claravanstaden
Copy link
Contributor Author

E2E pass on Snowbridge:

  Bridge
2022-11-07 13:32:58        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    Basic Channel
      ✓ should transfer DOT for 6 accounts from Substrate to Ethereum (basic channel) (122963ms)

  Bridge
2022-11-07 13:35:02        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    Bootstrap
      ✓ should transfer DOT from Substrate to Ethereum (basic channel) (131186ms)
      ✓ should transfer ETH from Ethereum to Substrate (basic channel) (227017ms)

  Bridge
2022-11-07 13:41:01        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    DOT App
      ✓ should transfer DOT from Substrate to Ethereum (incentivized channel) (126176ms)
      ✓ should transfer DOT from Ethereum to Substrate (basic channel) (233271ms)
      ✓ should transfer DOT from Ethereum to Substrate (incentivized channel) (191806ms)

  Bridge
2022-11-07 13:50:13        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    ERC20 App
      ✓ should transfer ERC20 tokens from Ethereum to Substrate (267989ms)
      ✓ should transfer ERC20 from Substrate to Ethereum (146013ms)
    ERC20 App XCM
      ✓ should transfer ERC20 tokens from Ethereum to Parachain 1001 (249981ms)
      ✓ should not transfer ERC20 tokens from Ethereum to Parachain 1001 without fee (287997ms)
      ✓ should not transfer ERC20 tokens from Ethereum to non-existent Parachain 2001 (215999ms)

  Bridge
2022-11-07 14:09:48        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    ETH App
      ✓ should transfer ETH from Substrate to Ethereum (incentivized channel) (133200ms)
    ETH App XCM
      ✓ should transfer ETH from Ethereum to Parachain 1001 (incentivized channel) (213968ms)

      ✓ should not transfer ETH from Ethereum to Parachain 1001 without fee (293996ms)
      ✓ should not transfer ETH from Ethereum to non-existent Parachain 2001 (306004ms)

  Bridge
    Malicious DOT App
      - should deliver message but fail to transfer DOT from Substrate to Ethereum (basic channel)
      
  15 passing (53m)
  1 pending

Done in 3159.80s.

@claravanstaden claravanstaden marked this pull request as ready for review November 9, 2022 14:15
Copy link
Collaborator

@vgeddes vgeddes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -12,26 +12,26 @@ targets = [ "x86_64-unknown-linux-gnu" ]
[dependencies]
serde = { version = "1.0.137", optional = true }
codec = { version = "3.0.0", package = "parity-scale-codec", default-features = false, features = [ "derive" ] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we standardise parity-scale-codec to version 3.1.5 like in the top level Cargo.toml?

Suggested change
codec = { version = "3.0.0", package = "parity-scale-codec", default-features = false, features = [ "derive" ] }
codec = { version = "3.1.5", package = "parity-scale-codec", default-features = false, features = [ "derive" ] }

@@ -12,20 +12,20 @@ targets = [ "x86_64-unknown-linux-gnu" ]
[dependencies]
serde = { version = "1.0.137", optional = true }
codec = { version = "3.0.0", package = "parity-scale-codec", default-features = false, features = [ "derive" ] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

parachain/pallets/dispatch/src/lib.rs Outdated Show resolved Hide resolved
@@ -101,7 +101,10 @@ snowblink-runtime-benchmarks = [ "snowblink-runtime/runtime-benchmarks" ]
snowbase-runtime-benchmarks = [ "snowbase-runtime/runtime-benchmarks" ]
polkadot-runtime-benchmarks = [ "polkadot-service/runtime-benchmarks" ]

runtime-benchmarks = []
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the /runtime-benchmarks suffix here? We're using frame-benchmarking in the runtime-benchmarks feature for the runtimes.

.github/workflows/parachain.yml Outdated Show resolved Hide resolved
parachain/src/command.rs Outdated Show resolved Hide resolved
// https://github.com/paritytech/substrate/blob/1802a115e8480fd7a4654d45c85b58c2189c508a/client/db/src/lib.rs#L1096
#[cfg(feature = "runtime-benchmarks")]
BenchmarkCmd::Storage(_) => Err(
"Storage benchmarking can be enabled with `--features runtime-benchmarks`."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to disable storage benchmarking? I can't see the reason at the link above.

Could we change the error message to mention that storage benchmarking is disabled? This will only be displayed when the runtime-benchmarks feature is enabled, but this message advises enabling the same feature.

Suggested change
"Storage benchmarking can be enabled with `--features runtime-benchmarks`."
"Storage benchmarking is disabled."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed the not clause here, corrected now. 8fc8037

claravanstaden and others added 2 commits November 10, 2022 09:24
Co-authored-by: David Dunn <26876072+doubledup@users.noreply.github.com>
@claravanstaden
Copy link
Contributor Author

I'm just running the E2E tests again after the latest changes, then I'll merge.

@claravanstaden
Copy link
Contributor Author

claravanstaden commented Nov 10, 2022

E2E passes after changes:

Bridge
2022-11-10 11:00:32        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    Basic Channel
      ✓ should transfer DOT for 6 accounts from Substrate to Ethereum (basic channel) (133490ms)

  Bridge
2022-11-10 11:02:46        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    Bootstrap
      ✓ should transfer DOT from Substrate to Ethereum (basic channel) (113488ms)
      ✓ should transfer ETH from Ethereum to Substrate (basic channel) (230038ms)

  Bridge
2022-11-10 11:08:30        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    DOT App
      ✓ should transfer DOT from Substrate to Ethereum (incentivized channel) (129464ms)
      ✓ should transfer DOT from Ethereum to Substrate (basic channel) (200027ms)
      ✓ should transfer DOT from Ethereum to Substrate (incentivized channel) (300281ms)

  Bridge
2022-11-10 11:19:00        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    ERC20 App
      ✓ should transfer ERC20 tokens from Ethereum to Substrate (265985ms)
      ✓ should transfer ERC20 from Substrate to Ethereum (136012ms)
    ERC20 App XCM
      - should transfer ERC20 tokens from Ethereum to Parachain 1001
      - should not transfer ERC20 tokens from Ethereum to Parachain 1001 without fee
      - should not transfer ERC20 tokens from Ethereum to non-existent Parachain 2001

  Bridge
2022-11-10 11:25:46        API/INIT: RPC methods not decorated: basicOutboundChannel_getMerkleProof
    ETH App
      ✓ should transfer ETH from Substrate to Ethereum (incentivized channel) (107523ms)
    ETH App XCM
      - should transfer ETH from Ethereum to Parachain 1001 (incentivized channel)
      - should not transfer ETH from Ethereum to Parachain 1001 without fee
      - should not transfer ETH from Ethereum to non-existent Parachain 2001


  9 passing (27m)
  6 pending

@claravanstaden claravanstaden merged commit ff2b986 into main Nov 10, 2022
@claravanstaden claravanstaden deleted the clara/sno333-upgrade-to-v0.9.30 branch November 10, 2022 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants