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

bump politest version #286

Merged
merged 1 commit into from
May 7, 2024
Merged

bump politest version #286

merged 1 commit into from
May 7, 2024

Conversation

JuaniRios
Copy link
Contributor

@JuaniRios JuaniRios commented May 6, 2024

  • Bump Politest one minor version
  • Add migration to v2 for pallet funding

try-runtime output:

polimec-node on  05-06-bump_politest_version [!] via 🦀 v1.76.0-nightly took 7m50s 
❯ try-runtime --runtime ./target/release/wbuild/politest-runtime/politest_runtime.compact.compressed.wasm on-runtime-upgrade live --uri wss://beta.rolimec.org:443
[2024-05-07T08:05:38Z INFO  remote-ext] replacing wss:// in uri with https://: "https://beta.rolimec.org:443" (ws is currently unstable for fetching remote storage, for more see https://github.com/paritytech/jsonrpsee/issues/1086)
[2024-05-07T08:05:38Z INFO  remote-ext] since no at is provided, setting it to latest finalized head, 0xdd9c9b3ab95fdaca010e4d3819b5b4493175b2cbbf1c4bfaf7d0022a4b6be5e9
[2024-05-07T08:05:38Z INFO  remote-ext] since no prefix is filtered, the data for all pallets will be downloaded
[2024-05-07T08:05:38Z INFO  remote-ext] scraping key-pairs from remote at block height 0xdd9c9b3ab95fdaca010e4d3819b5b4493175b2cbbf1c4bfaf7d0022a4b6be5e9
✅ Found 4744 keys (0.20s)
[00:00:00] ✅ Downloaded key values 4,895.7276/s [=====================================================================================================================================] 4744/4744 (0s)
✅ Inserted keys into DB (0.02s)
[2024-05-07T08:05:39Z INFO  remote-ext] adding data for hashed prefix: , took 1.31s
[2024-05-07T08:05:39Z INFO  remote-ext] adding data for hashed key: 3a636f6465
[2024-05-07T08:05:40Z INFO  remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8
[2024-05-07T08:05:40Z INFO  remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac
[2024-05-07T08:05:40Z INFO  remote-ext] 👩‍👦 no child roots found to scrape
[2024-05-07T08:05:40Z INFO  remote-ext] initialized state externalities with storage root 0xf40ab8b7aeebc42660beb51cd54d165d82c3f3d7670c89627a687d7e4f462566 and state_version V1
[2024-05-07T08:05:40Z INFO  try-runtime::cli] Original runtime [Name: RuntimeString::Owned("politest")] [Version: 7003] [Code hash: 0x3e36...dbe1]
[2024-05-07T08:05:40Z INFO  try-runtime::cli] New runtime      [Name: RuntimeString::Owned("politest")] [Version: 7004] [Code hash: 0xba46...8303]
[2024-05-07T08:05:40Z INFO  try-runtime::cli] 🚀 Speed up your workflow by using snapshots instead of live state. See `try-runtime create-snapshot --help`.
[2024-05-07T08:05:40Z INFO  try_runtime_core::misc] ------------------------------------------------------------------
    
    
[2024-05-07T08:05:40Z INFO  try_runtime_core::misc] 🔬 Running TryRuntime_on_runtime_upgrade with checks: PreAndPost
    
    
[2024-05-07T08:05:40Z INFO  try_runtime_core::misc] ------------------------------------------------------------------
    
    
[2024-05-07T08:05:41Z INFO  frame_support::migrations] 🚚 Pallet "Funding" VersionedMigration migrating storage version from 1 to 2.
[2024-05-07T08:05:41Z INFO  runtime::executive] ✅ Entire runtime state decodes without error. 188158 bytes total.
[2024-05-07T08:05:41Z INFO  try_runtime_core::misc] ------------------------------------------------------------------------------------------------------
    
    
[2024-05-07T08:05:41Z INFO  try_runtime_core::misc] 🔬 TryRuntime_on_runtime_upgrade succeeded! Running it again without checks for weight measurements.
    
    
[2024-05-07T08:05:41Z INFO  try_runtime_core::misc] ------------------------------------------------------------------------------------------------------
    
    
[2024-05-07T08:05:41Z INFO  frame_support::migrations] 🚚 Pallet "Funding" VersionedMigration migrating storage version from 1 to 2.
[2024-05-07T08:05:41Z INFO  try_runtime_core::misc] ---------------------------------------------------------------------------------
    
    
[2024-05-07T08:05:41Z INFO  try_runtime_core::misc] 🔬 Running TryRuntime_on_runtime_upgrade again to check idempotency: PreAndPost
    
    
[2024-05-07T08:05:41Z INFO  try_runtime_core::misc] ---------------------------------------------------------------------------------
    
    
[2024-05-07T08:05:41Z WARN  frame_support::migrations] 🚚 Pallet "Funding" VersionedMigration migration 1->2 can be removed; on-chain is already at StorageVersion(2).
[2024-05-07T08:05:41Z INFO  runtime::executive] ✅ Entire runtime state decodes without error. 188158 bytes total.
[2024-05-07T08:05:41Z INFO  try-runtime::cli] PoV size (zstd-compressed compact proof): 6.0 KB. For parachains, it's your responsibility to verify that a PoV of this size fits within any relaychain constraints.
[2024-05-07T08:05:41Z INFO  try-runtime::cli] Consumed ref_time: 0.004075s (0.81% of max 0.5s)
[2024-05-07T08:05:41Z INFO  try-runtime::cli] ✅ No weight safety issues detected. Please note this does not guarantee a successful runtime upgrade. Always test your runtime upgrade with recent state, and ensure that the weight usage of your migrations will not drastically differ between testing and actual on-chain execution.

srtool output:

   Finished production [optimized] target(s) in 13m 06s
✨ Your Substrate WASM Runtime is ready! ✨
✨ WASM  : runtimes/politest/target/srtool/production/wbuild/politest-runtime/politest_runtime.compact.wasm
✨ Z_WASM: runtimes/politest/target/srtool/production/wbuild/politest-runtime/politest_runtime.compact.compressed.wasm
Summary generated with srtool v0.15.0 using the docker image paritytech/srtool:1.77.0:
 Package     : politest-runtime v0.6.0
 GIT commit  : d60f59c3e8e71d51c80c89fafb4b7f2ef2c44c69
 GIT tag     : v0.6.0
 GIT branch  : 05-06-bump_politest_version
 Rustc       : rustc 1.77.0 (aedd173a2 2024-03-17)
 Time        : 2024-05-07T08:25:04Z

== Compact
 Version          : politest-7004 (politest-0.tx2.au1)
 Metadata         : V14
 Size             : 5.09 MB (5336113 bytes)
 setCode          : 0x3ad17ad33dbdecdc976f9adae113239084e2a57afb257343bd3022bc40f2255c
 authorizeUpgrade : 0x067660dc5e780d1daff9cef3457ef8c3083d74f29aaeee4ef4ed565471f55412
 IPFS             : Qmco6LQejkLzvdKS372Sx7T8TxzUQF3QHE5LvaVvpTjsg9
 BLAKE2_256       : 0xf9cc437f34ed03803391391aa94716e0ac33bbb9527e3de6efda5bc86cdf0eb2
 Wasm             : runtimes/politest/target/srtool/production/wbuild/politest-runtime/politest_runtime.compact.wasm

== Compressed
 Version          : politest-7004 (politest-0.tx2.au1)
 Metadata         : V14
 Size             : 1.27 MB (1327325 bytes)
 Compression      : 75.13%
 setCode          : 0xd2a4ec7cd14f25d33445f88c8252080641c4233026536a266031d793e9bd23ea
 authorizeUpgrade : 0x932c2486e5276b8fff1b0774a80a0644894f350400f17a186f8e23df41b6955c
 IPFS             : QmVWRfc1AWmfPht869NvbY5CLphzdMk9JY6gHpk1uSvdQW
 BLAKE2_256       : 0x464ebe979980b56c85b50ce7e2100670a9d161efff47faf0d4ab5a37d8e67eb6
 Wasm             : runtimes/politest/target/srtool/production/wbuild/politest-runtime/politest_runtime.compact.compressed.wasm

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JuaniRios and the rest of your teammates on Graphite Graphite

@JuaniRios JuaniRios marked this pull request as ready for review May 6, 2024 15:22
Copy link

graphite-app bot commented May 6, 2024

Graphite Automations

"Auto-assign PRs to author" took an action on this PR • (05/06/24)

1 assignee was added to this PR based on Juan Ignacio Rios's automation.

@JuaniRios JuaniRios force-pushed the 05-06-bump_politest_version branch from 38fb5ee to 78d2ef0 Compare May 7, 2024 07:26
@JuaniRios JuaniRios force-pushed the 05-06-bump_politest_version branch from 78d2ef0 to d60f59c Compare May 7, 2024 08:06
@JuaniRios JuaniRios requested review from lrazovic and vstam1 May 7, 2024 08:07
Copy link
Member

@lrazovic lrazovic left a comment

Choose a reason for hiding this comment

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

LGTM! Can you please also post the srtool output?

@JuaniRios JuaniRios merged commit d1b5ffb into main May 7, 2024
@JuaniRios JuaniRios deleted the 05-06-bump_politest_version branch May 7, 2024 08:28
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.

2 participants