Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix para-scheduler migration on Rococo #1921

Merged
merged 6 commits into from
Oct 17, 2023
Merged

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Oct 17, 2023

Closes #1916

Changes:

  • Trivially wrap the migration into a version migration to enforce idempotency.
  • Opinionated logging nits

@liamaharon maybe we can add a check to the try-runtime-cli that migrations are idempotent? It should be possible to check that the storage root is identical after executing a second time (and that it does not panic like it did here 😆).

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez requested review from a team October 17, 2023 16:54
@ggwpez ggwpez changed the title Fix scheduler migration on Rococo Fix para-scheduler migration on Rococo Oct 17, 2023
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez ggwpez added the T2-pallets This PR/Issue is related to a particular pallet. label Oct 17, 2023
@ggwpez ggwpez requested a review from liamaharon October 17, 2023 17:00
@liamaharon
Copy link
Contributor

@liamaharon maybe we can add a check to the try-runtime-cli that migrations are idempotent? It should be possible to check that the storage root is identical after executing a second time (and that it does not panic like it did here 😆).

Yes this has been something in the back of my mind for a long time. Created an issue paritytech/try-runtime-cli#42

Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
@franciscoaguirre franciscoaguirre enabled auto-merge (squash) October 17, 2023 21:50
@franciscoaguirre franciscoaguirre merged commit 58b7927 into master Oct 17, 2023
@franciscoaguirre franciscoaguirre deleted the oty-fix-migration branch October 17, 2023 22:19
tdimitrov pushed a commit that referenced this pull request Oct 23, 2023
Closes #1916

Changes:
- Trivially wrap the migration into a version migration to enforce
idempotency.
- Opinionated logging nits

@liamaharon maybe we can add a check to the `try-runtime-cli` that
migrations are idempotent? It should be possible to check that the
storage root is identical after executing a second time (and that it
does not panic like it did here 😆).

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
Closes paritytech#1916

Changes:
- Trivially wrap the migration into a version migration to enforce
idempotency.
- Opinionated logging nits

@liamaharon maybe we can add a check to the `try-runtime-cli` that
migrations are idempotent? It should be possible to check that the
storage root is identical after executing a second time (and that it
does not panic like it did here 😆).

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Scheduler migration failing on Rococo
4 participants