Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

add pallet_im_online::migration to Unreleased migrations #7387

Merged
merged 3 commits into from
Jun 25, 2023

Conversation

melekes
Copy link
Contributor

@melekes melekes commented Jun 16, 2023

@paritytech-ci paritytech-ci requested review from a team June 16, 2023 12:08
@melekes melekes added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Jun 16, 2023
@melekes melekes requested review from a team and bkchr June 16, 2023 12:15
@ggwpez ggwpez added the E0-runtime_migration PR introduces code that might require downstream chains to run a runtime upgrade. label Jun 16, 2023
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

CI try-runtime should turn green for Kusama and Westend.

@melekes
Copy link
Contributor Author

melekes commented Jun 16, 2023

[2023-06-16 12:42:53] 2023-06-16 12:42:53.375 ERROR main remote-ext: Error = Transport(Server returned an error status code: 404)    
[2023-06-16 12:42:53] Error: 
[2023-06-16 12:42:53]    0: Invalid input: rpc finalized_head failed.

does this mean there's an error in migration?

@ggwpez
Copy link
Member

ggwpez commented Jun 16, 2023

I asked in the CI/CD channel, but i think the node is down or something.

@paritytech-ci paritytech-ci requested a review from a team June 18, 2023 11:18
@melekes
Copy link
Contributor Author

melekes commented Jun 18, 2023

[2023-06-18 14:34:23] 2023-06-18 14:34:23.686 ERROR main runtime::configuration: Last PendingConfig is invalidity MaxCodeSizeExceedHardLimit { max_code_size: 10485760 }    
[2023-06-18 14:34:23] 2023-06-18 14:34:23.686  INFO main runtime::im-online::migration::v1: Migrating 26 received heartbeats    
[2023-06-18 14:34:23] 2023-06-18 14:34:23.687 ERROR main try-runtime: Detected multiple errors while executing `try_on_runtime_upgrade`:    
[2023-06-18 14:34:23] 2023-06-18 14:34:23.687 ERROR main try-runtime: Other("must upgrade linearly")    
[2023-06-18 14:34:23] 2023-06-18 14:34:23.687 ERROR main try-runtime: Other("Pending upgrade must be sane but was not")  

[2023-06-18 14:34:23] 2023-06-18 14:34:23.687  INFO main runtime::frame-support: ⚠️ XcmPallet declares internal migrations (which *might* execute). On-chain `StorageVersion(1)` vs current storage version `StorageVersion(1)` 

[2023-06-18 14:34:23] 2023-06-18 14:34:23.687 ERROR main runtime: panicked at 'called `Result::unwrap()` on an `Err` value: Other("Detected multiple errors while executing `try_on_runtime_upgrade`, check the logs!")', /builds/parity/mirrors/polkadot/runtime/polkadot/src/lib.rs:2075:65

does this mean I should've set STORAGE_VERSION to 0 here https://github.com/paritytech/substrate/blob/ae1a608c91a5da441a0ee7c26a4d5d410713580d/frame/im-online/src/lib.rs#L255 ?

@bkchr
Copy link
Member

bkchr commented Jun 18, 2023

does this mean I should've set STORAGE_VERSION to 0 here

No that is not the error. The error is this

ERROR main runtime::configuration: Last PendingConfig is invalidity MaxCodeSizeExceedHardLimit { max_code_size: 10485760

Which isn't your fault

@liamaharon
Copy link
Contributor

Are there any blockers to merging this @melekes?

@melekes
Copy link
Contributor Author

melekes commented Jun 23, 2023

Are there any blockers to merging this @melekes?

broken CI #7387 (comment) ?

@ggwpez
Copy link
Member

ggwpez commented Jun 23, 2023

The polkadot try-runtime will not go green until https://polkadot.polkassembly.io/referenda/9 is enacted.
But Kusama and Westend look good.

@bkchr
Copy link
Member

bkchr commented Jun 24, 2023

@melekes just let's merge master and then let's ignore the failing migration.

@melekes
Copy link
Contributor Author

melekes commented Jun 24, 2023

bot rebase

@paritytech-processbot
Copy link

Error: Command 'Command { std: cd "/storage/repositories/polkadot" && "git" "merge" "origin/master" "--no-ff" "--no-edit", kill_on_drop: false }' failed with status Some(1); output: no output

@ggwpez
Copy link
Member

ggwpez commented Jun 24, 2023

The error in the Kusama society pallet is fixed here Society: On chain storage version StorageVersion(0) doesn't match current storage version StorageVersion(2).: paritytech/substrate#14421

@bkchr
Copy link
Member

bkchr commented Jun 24, 2023

bot fmt

@command-bot
Copy link

command-bot bot commented Jun 24, 2023

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

Comment bot cancel 27-3294f378-c88f-449d-a0a0-8687e175846d to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Jun 24, 2023

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

@bkchr bkchr merged commit ee49329 into master Jun 25, 2023
@bkchr bkchr deleted the anton/7181-remove-external-addresses-from-heartbeats-2s branch June 25, 2023 22:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. E0-runtime_migration PR introduces code that might require downstream chains to run a runtime upgrade.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants