-
Notifications
You must be signed in to change notification settings - Fork 517
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
stake-tracker
remote externalities tests + improvements
#4436
base: gpestana/stake-tracker_integration
Are you sure you want to change the base?
stake-tracker
remote externalities tests + improvements
#4436
Conversation
bot bench polkadot-pallet --runtime=westend --pallet=pallet-staking |
@gpestana option '--pallet ' argument 'pallet-staking' is invalid. argument pallet is not matching rule ^([a-z_]+)([:]{2}[a-z_]+)?$ |
bot bench polkadot-pallet --runtime=westend --pallet=pallet_staking |
@gpestana https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6179886 was started for your command Comment |
@gpestana Command |
what is the example execution output? any insights or results? |
stake-tracker
remote externalities testsstake-tracker
remote externalities tests + improvements
The migration and try-state in this branch are working now. There were a few edge side-cases that we had to change in this PR, I'll add them to the comments and then merge this PR into the main PR branch. |
bot bench polkadot-pallet --runtime=westend --pallet=pallet_staking |
@gpestana https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6349082 was started for your command Comment |
@@ -2682,6 +2681,64 @@ mod remote_tests { | |||
.unwrap(); | |||
ext.execute_with(|| Runtime::on_runtime_upgrade(UpgradeCheckSelect::PreAndPost)); | |||
} | |||
|
|||
#[tokio::test] |
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.
TODO: remove these tests before merging in the base branch.
bot bench polkadot-pallet --runtime=westend --pallet=pallet_staking |
@gpestana https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6350207 was started for your command Comment |
…=westend --target_dir=polkadot --pallet=pallet_staking
@gpestana Command |
The CI pipeline was cancelled due to failure one of the required jobs. |
@gpestana Command |
Changes in the migration code introduced in this PR:
fn do_add_nominator
with dedup nominations)fn do_add_nominator
if necessary)Nominators
map first and through all theValidators
map to insert all the validators that are not nominated to the target list (with self-stake only).The migration code has been validated against the Polkadot using the externalities tests in polkadot/runtime/westend/src/lib.rs. Upon running the migrations, we ensure that: