-
Notifications
You must be signed in to change notification settings - Fork 97
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
Short benchmarking in CI with frame-omni-bencher
+ extract chain-spec-builder
stuff to get_preset
#379
Short benchmarking in CI with frame-omni-bencher
+ extract chain-spec-builder
stuff to get_preset
#379
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
17d3e21
to
8a531c9
Compare
Update .github/workflows/test.yml Co-authored-by: Oliver Tale-Yazdi <[email protected]> add time to cmd
76e5409
to
1398b62
Compare
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!
system-parachains/collectives/collectives-polkadot/src/impls.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
…enchmarks-get_preset
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! 🚀
/merge |
Enabled Available commands
For more information see the documentation |
afe696b
into
polkadot-fellows:main
@@ -348,7 +43,9 @@ pub fn polkadot_development_config() -> Result<Box<dyn ChainSpec>, String> { | |||
.with_name("Polakdot Development") | |||
.with_id("polkadot-dev") | |||
.with_chain_type(ChainType::Development) | |||
.with_genesis_config_patch(polkadot_development_config_genesis()) | |||
.with_genesis_config_patch( |
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.
You could 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,
This PR introduces a new CI pipeline for checking and running runtime benchmarks as part of the test pipelines. This means we will now know if any changes break the benchmarks.
The pipeline is based on downloading
frame-omni-bencher
(building it in-place is too expensive for every matrix run) and running it with a minimal setup:--steps 2 --repeat 1
.Another part of this PR splits the default genesis setups from
chain-spec-generator
and moves them to thesp_genesis_builder::GenesisBuilder::get_preset
runtime API implementation for every runtime, which is required byframe-omni-bencher
.Closes: #197
Relates to: #298
Relates to: #324
Future works
When this issue is fixed, I will rewrite weight-generation.md. The new version will be significantly simplified, with instructions to simply download
frame-omni-bencher
, build the runtime WASM, and run it—no other steps will be necessary.