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

chore: upgrade to 1.14.0 #178

Merged
merged 16 commits into from
Aug 21, 2024
Merged

chore: upgrade to 1.14.0 #178

merged 16 commits into from
Aug 21, 2024

Conversation

chungquantin
Copy link
Collaborator

@chungquantin chungquantin commented Aug 12, 2024

Link to issue: #141

Upgrade guidelines

  1. Each pull request will be merged after two approvals from the reviewers
  2. After merging the version major.minor.patch to developer, the next major.<minor + 1>.patch will be rebased to developer and asking for approvals from the reviewers again.

List of pull requests (merge in order)

Upgrade Polkadot version from 1.7.0 to 1.8.0
@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 2.66667% with 73 lines in your changes missing coverage. Please review.

Project coverage is 6.40%. Comparing base (a9de17d) to head (835cad2).
Report is 1 commits behind head on main.

Files Patch % Lines
node/src/service.rs 0.00% 30 Missing ⚠️
node/src/command.rs 0.00% 13 Missing ⚠️
runtime/devnet/src/lib.rs 7.69% 12 Missing ⚠️
runtime/testnet/src/lib.rs 9.09% 10 Missing ⚠️
runtime/devnet/src/extensions.rs 0.00% 5 Missing ⚠️
runtime/testnet/src/extensions.rs 0.00% 3 Missing ⚠️
@@            Coverage Diff            @@
##             main    #178      +/-   ##
=========================================
- Coverage   10.60%   6.40%   -4.20%     
=========================================
  Files          27      27              
  Lines        2132    1997     -135     
  Branches     2132    1997     -135     
=========================================
- Hits          226     128      -98     
+ Misses       1906    1869      -37     
Files Coverage Δ
node/src/chain_spec.rs 0.00% <ø> (ø)
node/src/cli.rs 0.00% <ø> (ø)
runtime/devnet/src/config/contracts.rs 60.00% <ø> (ø)
runtime/devnet/src/config/xcm.rs 0.00% <ø> (ø)
runtime/testnet/src/config/contracts.rs 60.00% <ø> (ø)
runtime/testnet/src/config/xcm.rs 0.00% <ø> (ø)
runtime/testnet/src/extensions.rs 0.00% <0.00%> (ø)
runtime/devnet/src/extensions.rs 0.00% <0.00%> (ø)
runtime/testnet/src/lib.rs 3.89% <9.09%> (-10.99%) ⬇️
runtime/devnet/src/lib.rs 3.89% <7.69%> (-10.99%) ⬇️
... and 2 more

@chungquantin chungquantin self-assigned this Aug 13, 2024
@chungquantin chungquantin changed the title chore: upgrade to 1.14.0 chore: final upgrade to 1.14.0 Aug 15, 2024
@chungquantin chungquantin requested review from al3mart and peterwht and removed request for al3mart and peterwht August 17, 2024 05:03
@chungquantin chungquantin changed the title chore: final upgrade to 1.14.0 chore: upgrade to 1.14.0 Aug 17, 2024
Co-authored-by: Peter White <petras9789@gmail.com>
@Daanvdplas Daanvdplas self-requested a review August 21, 2024 07:43
Copy link
Collaborator

@Daanvdplas Daanvdplas left a comment

Choose a reason for hiding this comment

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

Well done Tin! We are almost there! I left a few last things two check and I think we forgot the storage reclaim.

Some of the non-polkadot-sdk dependencies are not on the correct version. If you could compare them with the base-parachain on 1.14.

node/src/command.rs Show resolved Hide resolved
node/src/command.rs Show resolved Hide resolved
runtime/devnet/build.rs Show resolved Hide resolved
runtime/devnet/src/lib.rs Show resolved Hide resolved
runtime/devnet/src/lib.rs Show resolved Hide resolved
integration-tests/src/lib.rs Show resolved Hide resolved
node/Cargo.toml Show resolved Hide resolved
node/src/command.rs Show resolved Hide resolved
runtime/devnet/build.rs Show resolved Hide resolved
@Daanvdplas Daanvdplas self-requested a review August 21, 2024 10:36
Copy link
Collaborator

@Daanvdplas Daanvdplas left a comment

Choose a reason for hiding this comment

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

LGTM!

@Daanvdplas Daanvdplas self-requested a review August 21, 2024 13:06
Copy link
Collaborator

@Daanvdplas Daanvdplas left a comment

Choose a reason for hiding this comment

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

I'm getting an error when using try-runtime

Screenshot 2024-08-21 at 15 05 49

@Daanvdplas
Copy link
Collaborator

Daanvdplas commented Aug 21, 2024

I'm afraid there are multiple migrations required for pallet contracts. Automatic migration is what we are doing now and can only happen with single migrations.

Edit: the pallet version is 15 so there should only be needed one (ED deposit migration)

Not sure why it doesn't work

@al3mart
Copy link
Collaborator

al3mart commented Aug 21, 2024

#222 Fixed the above.

@al3mart al3mart merged commit b1394e3 into main Aug 21, 2024
7 of 8 checks passed
@al3mart al3mart deleted the developer branch August 21, 2024 18:48

// debug_message weight is a good approximation of the additional overhead of going
// from contract layer to substrate layer.
// reference: https://github.com/paritytech/ink-examples/blob/b8d2caa52cf4691e0ddd7c919e4462311deb5ad0/psp22-extension/runtime/psp22-extension-example.rs#L236
let overhead = contract_host_weight.debug_message;
// reference: https://github.com/paritytech/polkadot-sdk/pull/4233/files#:~:text=DebugMessage(len)%20%3D%3E%20T%3A%3AWeightInfo%3A%3Aseal_debug_message(len)%2C
Copy link
Collaborator

Choose a reason for hiding this comment

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

Great work updating those references Tin!

Copy link
Collaborator Author

@chungquantin chungquantin Aug 22, 2024

Choose a reason for hiding this comment

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

thank you 🙏

chungquantin added a commit that referenced this pull request Sep 6, 2024
Co-authored-by: Peter White <petras9789@gmail.com>
Co-authored-by: Daanvdplas <daanvdplas@live.nl>
Co-authored-by: Alejandro Martinez Andres <11448715+al3mart@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants