Skip to content

Improve inbound_queue::BenchmarkHelper to add more flexibility#9627

Merged
bkontur merged 21 commits into
paritytech:masterfrom
dimartiro:improve-inbound-queue-benchmarks-helper
Sep 22, 2025
Merged

Improve inbound_queue::BenchmarkHelper to add more flexibility#9627
bkontur merged 21 commits into
paritytech:masterfrom
dimartiro:improve-inbound-queue-benchmarks-helper

Conversation

@dimartiro
Copy link
Copy Markdown
Contributor

Description

Improve the usage of the inbound_queue::BenchmarkHelper to decouple the mocks from the benchmark.
This change will enable any user to benchmark custom messages since now it's harcoded to the register_token_message only

@paritytech-review-bot paritytech-review-bot Bot requested a review from a team September 2, 2025 14:09
@dimartiro
Copy link
Copy Markdown
Contributor Author

@claravanstaden maybe you could take a look here 🙌

@dimartiro
Copy link
Copy Markdown
Contributor Author

@bkontur just checking — do I need more reviews before merging this?
If so, would you mind adding someone else from the team?
It should be a fairly quick PR to review, and I’d really appreciate getting it merged if possible.

tmpolaczyk pushed a commit to moondance-labs/polkadot-sdk that referenced this pull request Sep 17, 2025
tmpolaczyk pushed a commit to moondance-labs/polkadot-sdk that referenced this pull request Sep 18, 2025
@bkchr
Copy link
Copy Markdown
Member

bkchr commented Sep 18, 2025

@dimartiro tests are still failing that first need to be fixed.

@bkchr bkchr added the T15-bridges This PR/Issue is related to bridges. label Sep 18, 2025
@dimartiro dimartiro force-pushed the improve-inbound-queue-benchmarks-helper branch from e25d268 to 0da9001 Compare September 20, 2025 16:11
@dimartiro dimartiro force-pushed the improve-inbound-queue-benchmarks-helper branch from 1d4c834 to 9e6dc19 Compare September 20, 2025 19:02
@dimartiro dimartiro force-pushed the improve-inbound-queue-benchmarks-helper branch from 9e6dc19 to 02a433f Compare September 20, 2025 19:12
@bkontur
Copy link
Copy Markdown
Contributor

bkontur commented Sep 22, 2025

/cmd prdoc --audience runtime_dev --bump patch

@bkontur bkontur added the T12-benchmarks This PR/Issue is related to benchmarking and weights. label Sep 22, 2025
Comment thread prdoc/pr_9627.prdoc Outdated
Copy link
Copy Markdown
Contributor

@claravanstaden claravanstaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! :)

Comment thread bridges/snowbridge/pallets/inbound-queue/src/mock.rs Outdated
@dimartiro
Copy link
Copy Markdown
Contributor Author

@dimartiro tests are still failing that first need to be fixed.

Thanks Basti. I think I’ve addressed everything, let me know if there is something else missing

@bkontur bkontur added this pull request to the merge queue Sep 22, 2025
Merged via the queue into paritytech:master with commit ef10d5e Sep 22, 2025
245 of 248 checks passed
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
# Description

Improve the usage of the `inbound_queue::BenchmarkHelper` to decouple
the mocks from the benchmark.
This change will enable any user to benchmark custom messages since now
it's harcoded to the register_token_message only

---------

Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T12-benchmarks This PR/Issue is related to benchmarking and weights. T15-bridges This PR/Issue is related to bridges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants