-
Notifications
You must be signed in to change notification settings - Fork 710
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
[pallet-broker] Fix auto renew benchmarks #6505
base: master
Are you sure you want to change the base?
Conversation
/cmd prdoc --audience runtime_dev --bump minor |
let region = Broker::<T>::do_purchase(caller.clone(), 10u32.into()) | ||
.map_err(|_| BenchmarkError::Weightless)?; | ||
let region = Broker::<T>::do_purchase(caller.clone(), 10_000_000u32.into()) | ||
.expect("Offer not high enough for configuration."); |
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.
Since we advance to the fixed price phase, this is independent of the price adapter implementation and depends only on the config value set earlier in this file. Therefore it's better to unwrap here so the test fails, rather than always being mapped to Weightless.
bot bench substrate-pallet --pallet=pallet_broker |
@seadanda https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7784047 was started for your command Comment |
@seadanda Command |
bot bench cumulus-coretime --runtime=coretime-westend --pallet=pallet_broker |
@seadanda https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7784048 was started for your command Comment |
@seadanda https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7784049 was started for your command Comment |
bot bench substrate-pallet --features=runtime-benchmarks --pallet=pallet_broker |
@seadanda https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7784115 was started for your command Comment |
bot bench cumulus-coretime --features=runtime-benchmarks --runtime=coretime-westend --pallet=pallet_broker |
@seadanda https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7784116 was started for your command Comment |
@seadanda https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7784117 was started for your command Comment |
This will affect polkadot-fellows/runtimes#490 Until this PR is merged and backported we should filter these calls and set MaxAutoRenewals to 0 |
…=dev --target_dir=substrate --features=runtime-benchmarks --pallet=pallet_broker
@seadanda Command |
@seadanda Command |
All GitHub workflows were cancelled due to failure one of the required jobs. |
@seadanda Command |
@seadanda Command |
@seadanda Command |
Fix the broker pallet auto-renew benchmarks which have been broken since #4424, yielding
Weightless
due to some prices being set too low, as reported in #6474.Upon further investigation it turned out that the auto-renew contribution to
rotate_sale
was always failing but the error was mapped. This is also fixed at the cost of a bit of setup overhead.Fixes #6474
TODO: