-
Notifications
You must be signed in to change notification settings - Fork 132
[AHM] Enable check-migrations jobs #904
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
base: oty-dev-asset-hub-migration-2506
Are you sure you want to change the base?
Conversation
@kianenigma @sigurpol I enabled check-migrations, there are just AssetHubs that do not pass,
|
#workflow_dispatch: | ||
branches: ["main", "release-*"] | ||
pull_request: | ||
workflow_dispatch: |
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.
@ggwpez Should/could we enable this now for AHM branch? Or maybe just to disable for AssetHubs or something?
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.
I think we should keep the check enabled, given that we want to merge it into master soon.
|
@sigurpol I don't quite understand why removing pallets from the Westend (do you mean the relay chain) should fix try-runtime for AssetHub? |
a-ha, I didn't look into the logs in details and I assumed the failure was the same as https://github.com/paritytech/polkadot-sdk/actions/runs/17401852305/job/49396795142 on westend (RC!)
Let me check |
and AssetHubPolkadot has exactly the same error: https://github.com/polkadot-fellows/runtimes/actions/runs/17627858405/job/50127739849?pr=904
|
The issue is that ah-migrator and rc-migrator have not run so nothing has been migrated from RC to AH which means that we get this [2025-09-11T14:03:48Z INFO runtime::staking] [AH] Pre-check staking state: active_era=None, current_era=None, bonded_eras_count=0
[2025-09-11T14:03:48Z INFO runtime::staking] [AH] BondedEras is EMPTY which doesn't play well with the check in staking pallet // bonded eras must always be the range [active - bonding_duration .. active_era]
let bonded = BondedEras::<T>::get();
ensure!(
bonded.into_iter().map(|(era, _sess)| era).collect::<Vec<_>>() ==
(active.saturating_sub(T::BondingDuration::get())..=active).collect::<Vec<_>>(),
"BondedEras range incorrect" A trivial fix in the staking pallet would be to discard this check in |
A potential fix in the SDK: paritytech/polkadot-sdk#9721 |
Instead of waiting for the fix, we can also do the |
TODO: just to see if anything is not working