Skip to content

Moved presets to the testnet runtimes#5327

Merged
bkontur merged 40 commits intomasterfrom
bko-get_preset-for-testnets
Sep 22, 2024
Merged

Moved presets to the testnet runtimes#5327
bkontur merged 40 commits intomasterfrom
bko-get_preset-for-testnets

Conversation

@bkontur
Copy link
Copy Markdown
Contributor

@bkontur bkontur commented Aug 12, 2024

It is a first step for switching to the frame-omni-bencher for CI.

This PR includes several changes related to generating chain specs plus:

Closes: #5680

Follow-ups

@bkontur bkontur added T12-benchmarks This PR/Issue is related to benchmarking and weights. T14-system_parachains This PR/Issue is related to system parachains. R0-no-crate-publish-required The change does not require any crates to be re-published. labels Aug 12, 2024
@bkontur bkontur force-pushed the bko-get_preset-for-testnets branch from 63d05be to 932e369 Compare August 13, 2024 08:54
@bkontur
Copy link
Copy Markdown
Contributor Author

bkontur commented Aug 30, 2024

@michalkucharczyk I just saw your branch origin/mku-asset-hub-rococo-preset and your PR, I think you are doing the same as I here, but in this PR I've already refactored some of the testnet AssetHubs/BridgeHubs.

What if I update this branch to actual master and then we could merge your PR's changes here and then you could also continue with other runtimes here? wdyt?

@bkontur bkontur force-pushed the bko-get_preset-for-testnets branch from 932e369 to 80475ff Compare August 30, 2024 13:56
@michalkucharczyk
Copy link
Copy Markdown
Contributor

@michalkucharczyk I just saw your branch origin/mku-asset-hub-rococo-preset and your PR, I think you are doing the same as I here, but in this PR I've already refactored some of the testnet AssetHubs/BridgeHubs.

What if I update this branch to actual master and then we could merge your PR's changes here and then you could also continue with other runtimes here? wdyt?

Can we just merge my PR to master (as it is ready to be merged) and then you can merge master to this PR?
I am not sure who will work on reworking rest of runtimes as I am still invoved in #4639 .

testnet_parachains_constants::westend::currency::UNITS * 1_000_000,
1000.into(),
))
.with_genesis_config_patch(asset_hub_westend_development_genesis(para_id.into()))
Copy link
Copy Markdown
Contributor

@michalkucharczyk michalkucharczyk Aug 30, 2024

Choose a reason for hiding this comment

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

You shall use: with_genesis_config_preset_name.

This would allow to fetch the preset from the wasm blob, w/o necessity to natively compile the runtime.

I noticed the same in polkadot-fellows/runtimes#379 (review)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, I saw that fellows comment, it is still in my TODOs :)

@bkontur
Copy link
Copy Markdown
Contributor Author

bkontur commented Aug 30, 2024

@michalkucharczyk I just saw your branch origin/mku-asset-hub-rococo-preset and your PR, I think you are doing the same as I here, but in this PR I've already refactored some of the testnet AssetHubs/BridgeHubs.
What if I update this branch to actual master and then we could merge your PR's changes here and then you could also continue with other runtimes here? wdyt?

Can we just merge my PR to master (as it is ready to be merged) and then you can merge master to this PR? I am not sure who will work on reworking rest of runtimes as I am still invoved in #4639 .

ok, let's merge your and I will adjust and continue here with other testnets

@michalkucharczyk
Copy link
Copy Markdown
Contributor

@michalkucharczyk I just saw your branch origin/mku-asset-hub-rococo-preset and your PR, I think you are doing the same as I here, but in this PR I've already refactored some of the testnet AssetHubs/BridgeHubs.
What if I update this branch to actual master and then we could merge your PR's changes here and then you could also continue with other runtimes here? wdyt?

Can we just merge my PR to master (as it is ready to be merged) and then you can merge master to this PR? I am not sure who will work on reworking rest of runtimes as I am still invoved in #4639 .

ok, let's merge your and I will adjust and continue here with other testnets

Thank you

@michalkucharczyk
Copy link
Copy Markdown
Contributor

Not sure if you are interested - there is one more I plan to merge soon: #4739

@bkontur bkontur force-pushed the bko-get_preset-for-testnets branch 2 times, most recently from 89133a0 to 493ad6b Compare September 1, 2024 21:00
@paritytech-cicd-pr
Copy link
Copy Markdown

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 1/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7209375

@paritytech-cicd-pr
Copy link
Copy Markdown

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 3/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7209377

@bkontur bkontur force-pushed the bko-get_preset-for-testnets branch from 493ad6b to 4ae31df Compare September 2, 2024 11:09
@bkontur
Copy link
Copy Markdown
Contributor Author

bkontur commented Sep 2, 2024

bot fmt

@command-bot
Copy link
Copy Markdown

command-bot bot commented Sep 2, 2024

@bkontur https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7214774 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 2-3568b7dd-c695-4ae7-a3d4-30e9d1fb4ca3 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link
Copy Markdown

command-bot bot commented Sep 2, 2024

@bkontur Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7214774 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7214774/artifacts/download.

@bkontur bkontur force-pushed the bko-get_preset-for-testnets branch from e96f540 to 24d28ae Compare September 2, 2024 19:36
@bkontur bkontur force-pushed the bko-get_preset-for-testnets branch 2 times, most recently from bc435cd to 8238baf Compare September 9, 2024 17:58
@bkontur bkontur force-pushed the bko-get_preset-for-testnets branch 2 times, most recently from b95e603 to c35a621 Compare September 11, 2024 09:26
@bkontur bkontur added this pull request to the merge queue Sep 22, 2024
Merged via the queue into master with commit 8735c66 Sep 22, 2024
@bkontur bkontur deleted the bko-get_preset-for-testnets branch September 22, 2024 17:04
@paritytech-cmd-bot-polkadot-sdk
Copy link
Copy Markdown
Contributor

Created backport PR for stable2407:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-5327-to-stable2407
git worktree add --checkout .worktree/backport-5327-to-stable2407 backport-5327-to-stable2407
cd .worktree/backport-5327-to-stable2407
git reset --hard HEAD^
git cherry-pick -x 8735c66393978fec6fd811ef7832b08355a2885a
git push --force-with-lease

@paritytech-cmd-bot-polkadot-sdk
Copy link
Copy Markdown
Contributor

Created backport PR for stable2409:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-5327-to-stable2409
git worktree add --checkout .worktree/backport-5327-to-stable2409 backport-5327-to-stable2409
cd .worktree/backport-5327-to-stable2409
git reset --hard HEAD^
git cherry-pick -x 8735c66393978fec6fd811ef7832b08355a2885a
git push --force-with-lease

bkontur added a commit that referenced this pull request Sep 22, 2024
It is a first step for switching to the `frame-omni-bencher` for CI.

This PR includes several changes related to generating chain specs plus:

- [x] pallet `assigned_slots` fix missing `#[serde(skip)]` for phantom
- [x] pallet `paras_inherent` benchmark fix - cherry-picked from
#5688
- [x] migrates `get_preset` to the relevant runtimes
- [x] fixes Rococo genesis presets - does not work
https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7317249
- [x] fixes Rococo benchmarks for CI
- [x] migrate westend genesis
- [x] remove wococo stuff

Closes: #5680

- Fix for frame-omni-bencher
#5655
- Enable new short-benchmarking CI -
#5706
- Remove gitlab pipelines for short benchmarking
- refactor all Cumulus runtimes to use `get_preset` -
#5704
- #5705
- #5700
- [ ] Backport to the stable

---------

Co-authored-by: command-bot <>
Co-authored-by: ordian <[email protected]>
(cherry picked from commit 8735c66)
@bkontur bkontur had a problem deploying to subsystem-benchmarks September 22, 2024 18:11 — with GitHub Actions Failure
EgorPopelyaev pushed a commit that referenced this pull request Sep 24, 2024
Backport #5327 into `stable2409` from bkontur.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Branislav Kontur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T12-benchmarks This PR/Issue is related to benchmarking and weights. T14-system_parachains This PR/Issue is related to system parachains.

Projects

Status: Milestone 0
Status: Done

Development

Successfully merging this pull request may close these issues.

Rococo benchmarks not working for polkadot_runtime_parachains::paras_inherent

10 participants