Skip to content

Conversation

@chungquantin
Copy link
Contributor

@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
@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.

@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
Member

al3mart commented Aug 21, 2024

#222 Fixed the above.

@al3mart al3mart merged commit b1394e3 into main Aug 21, 2024
@al3mart al3mart deleted the developer branch August 21, 2024 18:48
// 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
Contributor 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 <[email protected]>
Co-authored-by: Daanvdplas <[email protected]>
Co-authored-by: Alejandro Martinez Andres <[email protected]>
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.

5 participants