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): v1.10.0 to v1.11.0 #2117

Merged

Conversation

enddynayn
Copy link
Collaborator

@enddynayn enddynayn commented Aug 8, 2024

  • Upgrade Polkadot-sdk 1.10.0 to 1.11.0
  • Update weights to reflect the new version.

Notable Changes:

For more details, please refer to:

Release Notes

#1957

@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch from 8e515fd to 118cc6d Compare August 8, 2024 16:03
Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch 2 times, most recently from 2ad5baf to 3e72965 Compare August 8, 2024 22:20
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Aug 8, 2024
@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch from 5336cf4 to 5b6de32 Compare August 9, 2024 15:31
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Aug 9, 2024
@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch 5 times, most recently from f3f6b24 to d172134 Compare August 12, 2024 19:42
@enddynayn enddynayn changed the title Chore/upgrade polkadot v1.10.0 to v1.11.0 issue 1957 chore(upgrade): v1.10.0 to v1.11.0 Aug 12, 2024
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Aug 12, 2024
@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch from d172134 to f5f10cc Compare August 12, 2024 20:56
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Aug 12, 2024
@enddynayn
Copy link
Collaborator Author

I’ve split off the Omni Benchmarker CI updates into a follow-up PR.

@enddynayn enddynayn marked this pull request as ready for review August 12, 2024 20:58
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Aug 12, 2024
deny.toml Outdated Show resolved Hide resolved
Copy link
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

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

I reviewed weights changes, and ran make start. I ran all the rust tests. I could not run make start-paseo-relay because of broken docker files (not a regression).
I could not get e2e tests to run locally and they would not recognize a running local frequency instance:
Unable to find or start a Frequency node; aborting.

e2e/capacity/capacity_rpc.test.ts Outdated Show resolved Hide resolved
@@ -101,8 +101,8 @@ impl<T: frame_system::Config> pallet_preimage::WeightInfo for SubstrateWeight<T>
// Proof Size summary in bytes:
// Measured: `243`
// Estimated: `5041`
// Minimum execution time: 47_210_000 picoseconds.
Weight::from_parts(48_322_000, 5041)
// Minimum execution time: 66_888_000 picoseconds.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noting large weight changes throughout this file.

runtime/frequency/genesis_config_presets.rs Outdated Show resolved Hide resolved
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_account_id_from_seed::<sr25519::Public>("Dave"),
],
development_invulnerables(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice

@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch from 237200e to 29997b2 Compare August 13, 2024 13:21
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Aug 13, 2024
@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch from 29997b2 to 8ac302c Compare August 13, 2024 13:24
@enddynayn
Copy link
Collaborator Author

enddynayn commented Aug 13, 2024

I reviewed weights changes, and ran make start. I ran all the rust tests. I could not run make start-paseo-relay because of broken docker files (not a regression). I could not get e2e tests to run locally and they would not recognize a running local frequency instance: Unable to find or start a Frequency node; aborting.

Thanks for double checking. How are you running the e2e tests? I was able to run them using make e2e-tests.

Copy link
Collaborator

@saraswatpuneet saraswatpuneet left a comment

Choose a reason for hiding this comment

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

read through the changes

  • Mostly appear to be updates/refactor
  • Existing comments are useful and can be addressed

Lgtm

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Aug 13, 2024
- Upgrade Polkadot-sdk 1.10.0 to 1.11.0
- Update weights to reflect the new version.

Notable Changes:
- [Apply patch `run_with_spec`](paritytech/polkadot-sdk#3512)
- [Genesis Presets](paritytech/polkadot-sdk#2714)
- [Integrate LiteP2P](paritytech/polkadot-sdk#2944)
- [Template Simplification](https://github.com/paritytech/polkadot-sdk/pull/3801/files)

For more details, please refer to:

[Release Notes](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.11.0)

issue-1957
@enddynayn enddynayn force-pushed the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch from 8ac302c to f1e3247 Compare August 13, 2024 14:24
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Aug 13, 2024
Copy link
Collaborator

@JoeCap08055 JoeCap08055 left a comment

Choose a reason for hiding this comment

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

  • Pull branch
  • Built & ran unit tests
  • Built & ran e2e tests

Looks good!

Comment on lines 377 to +379
/// Build the import queue for the parachain runtime.
#[cfg(not(feature = "frequency-no-relay"))]
/// Build the import queue for the parachain runtime.
Copy link
Collaborator

Choose a reason for hiding this comment

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

One of these is not needed:

Suggested change
/// Build the import queue for the parachain runtime.
#[cfg(not(feature = "frequency-no-relay"))]
/// Build the import queue for the parachain runtime.
#[cfg(not(feature = "frequency-no-relay"))]
/// Build the import queue for the parachain runtime.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice catch! I’ll update this in my follow-up PR to avoid triggering the CI again.

@@ -482,15 +471,3 @@ fn start_consensus(

Ok(())
}

/// Start a parachain node.
#[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice cleanup.

@@ -192,7 +192,7 @@ impl WeightToFeeTrait for TransactionByteFee {

impl pallet_transaction_payment::Config for Test {
type RuntimeEvent = RuntimeEvent;
type OnChargeTransaction = CurrencyAdapter<Balances, ()>;
type OnChargeTransaction = FungibleAdapter<Balances, ()>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bye, bye Currency. 🤓

Copy link
Collaborator

@mattheworris mattheworris left a comment

Choose a reason for hiding this comment

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

  • Read through Polkadot Release notes.
  • Read through code changes.

Looks good, nice work!

🚢 it!

Copy link
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

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

Looks like my test run is a local problem. Approved!

Copy link
Collaborator

@aramikm aramikm left a comment

Choose a reason for hiding this comment

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

Read the code and looked good. Just some questions.

@@ -48,7 +48,7 @@ sp-inherents = { workspace = true }
sp-keyring = { workspace = true }
sp-runtime = { workspace = true }
sp-timestamp = { workspace = true }
try-runtime-cli = { workspace = true, optional = true }
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Would you mind explaining why is this removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good question. I missed including that in the PR description. There’s now a standalone CLI, which is a result of this Polkadot-sdk issue.


info!("Parachain id: {:?}", id);
info!("Parachain Account: {}", parachain_account);
Copy link
Collaborator

Choose a reason for hiding this comment

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

no more parachain account?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I think this might be leftover code since it was only used for logging. The PR description where Parity removed it doesn’t provide a clear explanation.
Link to the PR.

@enddynayn enddynayn merged commit 404a1e4 into main Aug 13, 2024
27 checks passed
@enddynayn enddynayn deleted the chore/upgrade-polkadot-v1.10.0-to-v1.11.0-issue-1957 branch August 13, 2024 18:02
aramikm pushed a commit that referenced this pull request Aug 15, 2024
- Upgrade Polkadot-sdk 1.10.0 to 1.11.0
- Update weights to reflect the new version.

Notable Changes:
- [Apply patch
`run_with_spec`](paritytech/polkadot-sdk#3512)
- [Genesis
Presets](paritytech/polkadot-sdk#2714)
- [Integrate
LiteP2P](paritytech/polkadot-sdk#2944)
- [Template
Simplification](https://github.com/paritytech/polkadot-sdk/pull/3801/files)
- [Remove
try-runtime-cli](https://github.com/paritytech/polkadot-sdk/pull/4017/files#diff-3a3aa5e088741f8ab1ca38fbe314c7a150d18b7466426f4ad2569113017e8439)

For more details, please refer to:

[Release
Notes](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.11.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metadata-changed Metadata has changed since the latest full release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants