Update Runtime Weights#129
Conversation
|
it would be cool to include also this cleaning PR: #57 |
|
Weights are all updated now. One small thing I'm not sure of is why
@ggwpez any ideas? |
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
|
/merge |
|
Enabled Available commands
For more information see the documentation |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
|
The two remaining failing tests are from #114 and could be commented for now. |
I'm looking into this now, so far looks like actual weights issue with
|
| // Minimum execution time: 500_000_000_000 picoseconds. | ||
| Weight::from_parts(500_000_000_000, 0) | ||
| // Minimum execution time: 18_446_744_073_709_551_000 picoseconds. | ||
| Weight::from_parts(18_446_744_073_709_551_000, 0) |
There was a problem hiding this comment.
This is now incorrectly set to Weight::MAX - looks like the issue is with benchmarks - I can look into it later today unless somebody knows off the top of their heads what the issue is
no, the assert is correct - it works fine without the bad weights - the problem is certain XCMs are unweighable with this PR because multiple XCM instructions have been benchmarked to this is a valid weights issue, not a test issue |
That previous value This |
My point is that I changed that Maybe I am wrong, but I think it is safer not to execute at all, if we don't know the real benchmark weight beforehand. |
let (trusted_reserve, transferable_reserve_asset) = T::TrustedReserve::get()
.ok_or(BenchmarkError::Override(
BenchmarkResult::from_weight(T::BlockWeights::get().max_block)
BenchmarkResult::from_weight(Weight::MAX)
))?;Ok, so runtimes which don't recognize any reserve locations, will fail on initial XCM weighing instead of failing on barrier a bit later. That's fine, and I agree it's better to use Weight::MAX instead of some dummy value. Changing test to expect weight failure instead of barrier failure. |
|
@liamaharon I'm not allowed to push into your fork: Please add the fix yourself, you can find it here: acatangiu@48787a1 |
|
@liamaharon is OOO but AFAIK i can push 🤷 |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>


For #68 (comment).
Uses instructions introduced to the readme in #127 to re-bench all runtimes.
TODO
Polkadot Changes
Kusama Changes
Asset Hub Polkadot Changes
Asset Hub Kusama Changes
Bridge Hub Polkadot
Bridge Hub Kusama
Collectives Polkadot