-
Notifications
You must be signed in to change notification settings - Fork 97
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
Change name of weight files for multiple pallet_balances
instances of Kusama runtime.
#58
Merged
ggwpez
merged 1 commit into
polkadot-fellows:oty-weight-cleanup
from
bkontur:bko-on-oty-weight-cleanup
Nov 16, 2023
Merged
Change name of weight files for multiple pallet_balances
instances of Kusama runtime.
#58
ggwpez
merged 1 commit into
polkadot-fellows:oty-weight-cleanup
from
bkontur:bko-on-oty-weight-cleanup
Nov 16, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…of Kusama runtime.
acatangiu
approved these changes
Oct 10, 2023
bkchr
approved these changes
Oct 10, 2023
ggwpez
approved these changes
Nov 15, 2023
finally I was able to test it and generate weights for kusama locally:
it regenerated two files, exactly as expected:
|
@ggwpez I would suggest just to cherry-pick this commit to your branch to avoid unnecessary begging for approves |
bkchr
pushed a commit
that referenced
this pull request
Nov 16, 2023
Based on: #78 Without this fix we cannot run benchmarks for kusama/polkadot. Tested here: #58 (comment)
ggwpez
merged commit Nov 16, 2023
0115fd5
into
polkadot-fellows:oty-weight-cleanup
2 of 5 checks passed
fellowship-merge-bot bot
added a commit
that referenced
this pull request
Jan 10, 2024
Deleting the weight files of all pallets that were undeployed by the OpenGov migration. Kusama still had one duplicate file for the balances. Also contains #58 --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Branislav Kontur <[email protected]> Co-authored-by: fellowship-merge-bot[bot] <151052383+fellowship-merge-bot[bot]@users.noreply.github.com>
1 task
fellowship-merge-bot bot
added a commit
that referenced
this pull request
Mar 12, 2024
Relates to: #223 A type alias `type Nis = pallet_balances::Pallet::<Runtime, NisCounterpartInstance>;` for the second `pallet_balances` instance was introduced [here](#58). Unfortunately, nobody (including myself) realized that `Nis` is also used for `[pallet_nis, Nis]`. As a result, the benchmark for `pallet_nis` runs as if it were for `pallet_balances`, and the result can be seen here: [link](3bb9a02#diff-9bfa230a9b7f40866df3f84e81dfea72a64cc31bd9ef6e594c3d43582ba76522). Therefore, this PR fixes this anomaly. <!-- Remember that you can run `/merge` to enable auto-merge in the PR --> <!-- Remember to modify the changelog. If you don't need to modify it, you can check the following box. Instead, if you have already modified it, simply delete the following line. --> - [x] Does not require a CHANGELOG entry --------- Co-authored-by: fellowship-merge-bot[bot] <151052383+fellowship-merge-bot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on: #57
Summary
This PR changes benchmarking setup for generating nicer output weight file names for multiple
pallet_balances
instance of Kusama runtime:pallet_balances_balances.rs
->pallet_balances_native.rs
pallet_balances_nis_counterpart_balances.rs
->pallet_balances_nis.rs
TODO