-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add benchmarking support for digest items #12159
Add benchmarking support for digest items #12159
Conversation
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.
Nice.
It still needs companions and a fmt. In the future we can think about putting all of these args in a config struct to have fewer companion requirements.
I am working on implementing
I believe this will build if CI will run against my polkadot companion (am I missing something?) |
Looks like it. But it also needs a Cumulus comp, since we also expose these commands there… |
I don't think it does unless it's compiling a branch other than It looks to me like the CI failure here is coming out of polkadot, example:
Is |
bot merge
Yea you are right. Cumulus just ignores these commands (currently). |
Error: Github API says "Allow edits from maintainers" is not enabled for paritytech/polkadot#5958. The bot would use that permission to push the lockfile update after merging this PR. Please check https://docs.github.com/en/github/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork. |
I recreated my companion PR from my personal repo so I could enable edits from maintainers. Sorry for the mess... New PR: paritytech/polkadot#5959 |
bot merge |
Error: Github API says #12159 is not mergeable |
bot merge |
* Add benchmarking support for digest items * fmt
This PR provides a mechanism for pushing digest items into the
benchmark overhead
andbenchmark extrinsic
pipelines. It is a potential fix for #12142. The rationale for it is thoroughly described there, but briefly: this solves the dependency problem where an inherent requires a pre-runtime digest to be present.Note that I tested a similar fix through Moonbeam against an older version of Substrate (
v0.9.26
) but have not tested the code in this PR. I'll be happy to do so if there is support for it in the first place.Companions
polkadot
: Reflect benchmarking fn signature change polkadot#5958cumulus
: not needednimbus
: not required, but could be used to demonstrate that this worksTODO
polkadot companion: paritytech/polkadot#5959