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 deprecation in benchmarks script #3138

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

manuelmauro
Copy link
Contributor

What does it do?

When running run-benches-for-runtime.sh to generate the runtime weights, the following warning appears in the logs:

Using the chain spec instead of the runtime to generate the genesis state is deprecated. Please remove the `--chain`/`--dev`/`--local` argument, point `--runtime` to your runtime blob and set `--genesis-builder=runtime`. This warning may become a hard error any time after December 2024. 

This PR updates the script to use --runtime <runtime> instead of --chain=<chain-spec>.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

Copy link
Contributor

github-actions bot commented Jan 17, 2025

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2272 KB (no changes) ✅

Moonbeam runtime: 2248 KB (no changes) ✅

Moonriver runtime: 2240 KB (no changes) ✅

Compared to latest release (runtime-3400)

Moonbase runtime: 2272 KB (+244 KB compared to latest release) ⚠️

Moonbeam runtime: 2248 KB (+236 KB compared to latest release) ⚠️

Moonriver runtime: 2240 KB (+228 KB compared to latest release) ⚠️

Copy link
Contributor

github-actions bot commented Jan 17, 2025

Coverage Report

@@                                Coverage Diff                                @@
##           master   manuel/update-deprecation-in-benchmarks-script     +/-   ##
=================================================================================
  Coverage   74.59%                                           74.59%   0.00%     
  Files         377                                              377             
  Lines       96033                                            96033             
=================================================================================
  Hits        71632                                            71632             
  Misses      24401                                            24401             
Files Changed Coverage

Coverage generated Fri Jan 17 18:20:26 UTC 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant