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

Update runtime v1.3.1 #129

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open

Update runtime v1.3.1 #129

wants to merge 53 commits into from

Conversation

raynaudoe
Copy link
Contributor

@raynaudoe raynaudoe commented Sep 7, 2024

  • Upgrade relay chain to v1.3.1
  • Upgrade system chains to v1.3.1
  • Add coretime

@pecorino-bot
Copy link

pecorino-bot commented Sep 7, 2024

Tests have finished.

Relay Chain

Status: failure

System Parachains

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 7, 2024

Tests have finished.

Relay Chain

Status: failure

System Parachains

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 11, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: success

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

Copy link

@seadanda seadanda left a comment

Choose a reason for hiding this comment

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

Coretime parts look good to me, just seems you need to re-run the relay weights

fn default_parachains_host_configuration() -> HostConfiguration<polkadot_primitives::BlockNumber> {
use polkadot_primitives::{MAX_CODE_SIZE, MAX_POV_SIZE};

runtime_parachains::configuration::HostConfiguration {

Choose a reason for hiding this comment

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

This appears to be the same as the one I reviewed in chat, worth checking the three that I highlighted:

  • nodeFeatures are not set, which I think is required for some async backing functionality
  • on-demand queue looks a fair bit bigger than polkadot and may lead to worse performance/higher weights. you might want to just double check that before using it
  • ump limits are quite low, they should still be fine for coretime messages with the number of parachains you have, but some day that might be an issue

// Measured: `2848`
// Estimated: `6313`
// Minimum execution time: 92_241_000 picoseconds.
Weight::from_parts(93_731_000, 0)

Choose a reason for hiding this comment

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

These are the exact same as Polkadot, when they're re-run you should check them against the hardcoded weights in the CoretimeInterface and ensure there's a big enough buffer to allow runtime upgrades of one chain without the other.
It's something to keep an eye on and keep the hardcoded weights up to date, trying to maintain the size of the buffer. If there are changes in weight larger than the buffer, you'd have to upgrade the other chain first with a weight bump, which isn't ideal.

type Currency = Balances;
type OnRevenue = BurnCoretimeRevenue;
type TimeslicePeriod = ConstU32<{ coretime::TIMESLICE_PERIOD }>;
type MaxLeasedCores = ConstU32<55>;

Choose a reason for hiding this comment

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

It's unlikely that you'll ever need a value this high as this is only the legacy leases at the point they get ported over, but I guess you want it to be similar to Polkadot. It might come in useful in the future if permissionless coretime acquisition proves to be an issue with a token with no value.

relay/paseo/src/lib.rs Outdated Show resolved Hide resolved
relay/paseo/src/lib.rs Outdated Show resolved Hide resolved
relay/paseo/src/lib.rs Show resolved Hide resolved
Co-authored-by: Alejandro Martinez Andres <[email protected]>
@pecorino-bot
Copy link

pecorino-bot commented Sep 12, 2024

Tests have finished.

Build

Status: cancelled

Relay Chain

Status: cancelled

System Parachains

Status: cancelled

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 12, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: success

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	chain-spec-generator/src/common.rs
#	chain-spec-generator/src/main.rs
#	integration-tests/emulated/chains/parachains/bridges/bridge-hub-paseo/src/genesis.rs
#	integration-tests/emulated/chains/relays/paseo/src/genesis.rs
#	integration-tests/emulated/networks/paseo-system/src/lib.rs
#	integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/lib.rs
#	integration-tests/emulated/tests/bridges/bridge-hub-paseo/src/tests/snowbridge.rs
#	relay/paseo/Cargo.toml
#	relay/paseo/src/impls.rs
#	relay/paseo/src/lib.rs
#	system-parachains/asset-hub-paseo/src/lib.rs
#	system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs
#	system-parachains/asset-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs
#	system-parachains/asset-hub-paseo/src/weights/frame_system.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_asset_conversion.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_assets_foreign.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_assets_local.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_assets_pool.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_balances.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_collator_selection.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_message_queue.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_multisig.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_nfts.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_proxy.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_session.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_timestamp.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_uniques.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_utility.rs
#	system-parachains/asset-hub-paseo/src/weights/pallet_xcm.rs
#	system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
#	system-parachains/asset-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
#	system-parachains/asset-hub-paseo/tests/weight_trader.rs
#	system-parachains/bridge-hub-paseo/Cargo.toml
#	system-parachains/bridge-hub-paseo/build.rs
#	system-parachains/bridge-hub-paseo/primitives/src/lib.rs
#	system-parachains/bridge-hub-paseo/src/bridge_to_kusama_config.rs
#	system-parachains/bridge-hub-paseo/src/lib.rs
#	system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_parachain_system.rs
#	system-parachains/bridge-hub-paseo/src/weights/cumulus_pallet_xcmp_queue.rs
#	system-parachains/bridge-hub-paseo/src/weights/frame_system.rs
#	system-parachains/bridge-hub-paseo/src/weights/mod.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_balances.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_grandpa.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_messages.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_parachains.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_bridge_relayers.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_collator_selection.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_message_queue.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_multisig.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_session.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_timestamp.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_utility.rs
#	system-parachains/bridge-hub-paseo/src/weights/pallet_xcm.rs
#	system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_ethereum_client.rs
#	system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_inbound_queue.rs
#	system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_outbound_queue.rs
#	system-parachains/bridge-hub-paseo/src/weights/snowbridge_pallet_system.rs
#	system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
#	system-parachains/bridge-hub-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
#	system-parachains/bridge-hub-paseo/src/xcm_config.rs
#	system-parachains/bridge-hub-paseo/tests/snowbridge.rs
#	system-parachains/bridge-hub-paseo/tests/tests.rs
#	system-parachains/people-paseo/src/weights/cumulus_pallet_parachain_system.rs
#	system-parachains/people-paseo/src/weights/cumulus_pallet_xcmp_queue.rs
#	system-parachains/people-paseo/src/weights/frame_system.rs
#	system-parachains/people-paseo/src/weights/pallet_balances.rs
#	system-parachains/people-paseo/src/weights/pallet_collator_selection.rs
#	system-parachains/people-paseo/src/weights/pallet_identity.rs
#	system-parachains/people-paseo/src/weights/pallet_message_queue.rs
#	system-parachains/people-paseo/src/weights/pallet_multisig.rs
#	system-parachains/people-paseo/src/weights/pallet_proxy.rs
#	system-parachains/people-paseo/src/weights/pallet_session.rs
#	system-parachains/people-paseo/src/weights/pallet_timestamp.rs
#	system-parachains/people-paseo/src/weights/pallet_utility.rs
#	system-parachains/people-paseo/src/weights/pallet_xcm.rs
#	system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
#	system-parachains/people-paseo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
@pecorino-bot
Copy link

pecorino-bot commented Sep 12, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: cancelled

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 12, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: success

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 12, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: failure

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 12, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: success

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 13, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: success

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@pecorino-bot
Copy link

pecorino-bot commented Sep 13, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: success

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

al3mart
al3mart previously approved these changes Sep 19, 2024
@claravanstaden
Copy link
Collaborator

Should all the tests pass for this PR?

@raynaudoe
Copy link
Contributor Author

Should all the tests pass for this PR?

At least the integration tests should pass, I'm checking those now and trying to fix them.
The other failing test is due to something wrong with penpal-runtime while running cargo check, also I'll try to check what's going on.

@claravanstaden
Copy link
Collaborator

Should all the tests pass for this PR?

At least the integration tests should pass, I'm checking those now and trying to fix them. The other failing test is due to something wrong with penpal-runtime while running cargo check, also I'll try to check what's going on.

I can give a hand tomorrow, if you need it. :) Let me know.

@pecorino-bot
Copy link

pecorino-bot commented Sep 19, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: failure

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

@raynaudoe
Copy link
Contributor Author

Should all the tests pass for this PR?

At least the integration tests should pass, I'm checking those now and trying to fix them. The other failing test is due to something wrong with penpal-runtime while running cargo check, also I'll try to check what's going on.

I can give a hand tomorrow, if you need it. :) Let me know.

Sure give it a look whenever you can, thanks!
I've just fixed some compilation errors for cargo test, I've also commented out some tests referring to kusama bridging but there others that indirectly uses kusama code which I'm not sure of how to deal with those.

@educlerici-zondax educlerici-zondax added the runtime-upgrade Runtime Upgrade label Sep 23, 2024
@educlerici-zondax educlerici-zondax added this to the Q3 - 2024 milestone Sep 23, 2024
* test auto-gen chain specs

* run on push

* fix

* install deps

* add target

* fix

* Update chain specs

* Add remaining specs

* Update chain specs

* Only commit on changes

* Trigger on specific changes

* Delete generated files

* change job name

* Try unify chain spec gen and runtime release creation

* Add tag string to commit message

* Remove unnecessary specs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@pecorino-bot
Copy link

pecorino-bot commented Sep 26, 2024

Tests have finished.

Build

Status: failure

Relay Chain

Status: failure

System Parachains

Status: success

Integration Tests

Status: failure

❌ Some tests have failed. Please check the details above for more information.

View full run details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runtime-upgrade Runtime Upgrade
Projects
Status: Planned
Development

Successfully merging this pull request may close these issues.

7 participants