Skip to content

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
@codecov
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
@enddynayn enddynayn requested a review from wilwade as a code owner 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
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.

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

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
Contributor

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

}

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

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.

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.

AccountIdConversion::<polkadot_primitives::AccountId>::into_account_truncating(&id);

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

7 participants