-
Notifications
You must be signed in to change notification settings - Fork 19
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
Upgrade to Polkadot 0.9.42 #1590
Conversation
f517dfa
to
fe063c5
Compare
⏳ Running benchmarks and calculating weights. DO NOT MERGE! A new commit will be added upon completion... |
⏳ Running benchmarks and calculating weights. DO NOT MERGE! A new commit will be added upon completion... |
✅ Finished running benchmarks. Updated weights have been committed to this PR branch in commit a892003. |
Codecov Report
@@ Coverage Diff @@
## main #1590 +/- ##
==========================================
+ Coverage 72.93% 73.02% +0.09%
==========================================
Files 49 49
Lines 4751 4745 -6
==========================================
Hits 3465 3465
+ Misses 1286 1280 -6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
⏳ Running benchmarks and calculating weights. DO NOT MERGE! A new commit will be added upon completion... |
✅ Finished running benchmarks. Updated weights have been committed to this PR branch in commit 5374d58. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic!! 🏆🏅
@@ -45,6 +45,11 @@ frame_support::construct_runtime!( | |||
|
|||
// See https://paritytech.github.io/substrate/master/pallet_collective/index.html for | |||
// the descriptions of these configs. | |||
parameter_types! { | |||
pub MaxProposalWeight: frame_support::weights::Weight = | |||
Perbill::from_percent(50) * common_runtime::constants::MAXIMUM_BLOCK_WEIGHT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the same value as Polkadot uses. I believe it to be ok, but we will want to test governance upgrade on testnet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This value is in the unit testing mocks, which needed to be changed to pass the unit tests.
The value defined in runtime is (runtime/frequency/src/lib.rs
):
type MaxProposalWeight = MaxCollectivesProposalWeight;
// Which resolves to this:
pub MaxCollectivesProposalWeight: Weight = Perbill::from_percent(50) * RuntimeBlockWeights::get().max_block;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One open question on the metadata_at stuff, otherwise all good to go from my side!
Additional tests run:
- Build mainnet and it connected to the network ✅
- Export metadata still works ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Lots of great work in there. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 💯
# Goal The goal of this PR is to update all remaining dependencies. In part a follow up to #1590 # Discussion - The 0.9.42 branch had moved to `9326fee1fb853be3d5096a2beef5fb46624e9d75` Polkadot release did as well. https://github.com/paritytech/substrate/commits/polkadot-v0.9.42 - General upgrade of additional packages
# Goal The goal of this PR is upgrade Polkadot to v0.9.42 Polkadot Release Notes: https://github.com/paritytech/polkadot/releases/tag/v0.9.42 https://github.com/paritytech/polkadot/releases/tag/v0.9.41 https://github.com/paritytech/polkadot/releases/tag/v0.9.40 Polkadot Release Analysis: https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-41-v0-9-42/2828/1 Closes #1472 Closes #1270 Closes #1332 # Discussion - v0.9.40 was not working and there was evidence that changes in v0.9.42 were related, so we decided to jump ahead to v0.9.42 <!-- List discussion items --> # Runtime Migrations Included - [x] paritytech/polkadot#6937 - [x] paritytech/substrate#13715 - [x] paritytech/substrate#13936 - [x] paritytech/polkadot#7114 - [x] Further all migrations from 9.38+ are included: paritytech/polkadot#7162) # Checklist - [x] Chain spec updated - [ ] Custom RPC OR Runtime API added/changed? Updated js/api-augment. - [ ] Design doc(s) updated - [ ] Tests added - [ ] Benchmarks added - [x] Weights updated # Tests Performed - [x] `make ci-local` -- Passing (includes lint, docs, unit-test and integration-test) - [x] `make start-native` -- Successfully attached debugger when creating MSA with Polkadot UI - [x] `make start-relay` -- Docker Containers successfully started, but too slow in emulation on Apple Silicon M2. - [x] `make upgrade-local` -- Successfully started local relay network and upgraded to a newer test runtime. - [x] `make upgrade-local` -- Successfully updated a node running the current version on branch `main` --------- Co-authored-by: Frequency CI [bot] <[email protected]> Co-authored-by: Matthew Orris <--help> Co-authored-by: Robert La Ferla <[email protected]>
# Goal The goal of this PR is to update all remaining dependencies. In part a follow up to #1590 # Discussion - The 0.9.42 branch had moved to `9326fee1fb853be3d5096a2beef5fb46624e9d75` Polkadot release did as well. https://github.com/paritytech/substrate/commits/polkadot-v0.9.42 - General upgrade of additional packages
Goal
The goal of this PR is upgrade Polkadot to v0.9.42
Polkadot Release Notes:
https://github.com/paritytech/polkadot/releases/tag/v0.9.42
https://github.com/paritytech/polkadot/releases/tag/v0.9.41
https://github.com/paritytech/polkadot/releases/tag/v0.9.40
Polkadot Release Analysis:
https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-41-v0-9-42/2828/1
Closes #1472
Closes #1270
Closes #1332
Discussion
Runtime Migrations Included
ReportsByKindIndex
paritytech/polkadot#7114Checklist
Tests Performed
make ci-local
-- Passing (includes lint, docs, unit-test and integration-test)make start-native
-- Successfully attached debugger when creating MSA with Polkadot UImake start-relay
-- Docker Containers successfully started, but too slow in emulation on Apple Silicon M2.make upgrade-local
-- Successfully started local relay network and upgraded to a newer test runtime.make upgrade-local
-- Successfully updated a node running the current version on branchmain