Skip to content
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

Refactor pallets to V2 bench syntax #6202

Open
22 of 44 tasks
ggwpez opened this issue Oct 23, 2024 · 19 comments
Open
22 of 44 tasks

Refactor pallets to V2 bench syntax #6202

ggwpez opened this issue Oct 23, 2024 · 19 comments
Labels
C2-good-first-issue A task for a first time contributor to become familiar with the Polkadot-SDK. D0-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder. I4-refactor Code needs refactoring. T12-benchmarks This PR/Issue is related to benchmarking and weights.

Comments

@ggwpez
Copy link
Member

ggwpez commented Oct 23, 2024

We should move all remaining pallets to the V2 benchmarking syntax. It seems to be stable and feature complete.

👉 If you want to work on this: Please check that there is not already a merge request for the pallet that you want to work on. Please pick only one or a small set of pallets - not all at once. This keeps review times low.

Full pallet list:

Then the Polkadot and Cumulus pallets:

  • ./cumulus/pallets/session-benchmarking/src/inner.rs
  • ./polkadot/xcm/pallet-xcm-benchmarks/src/generic/benchmarking.rs
  • ./polkadot/xcm/pallet-xcm/src/benchmarking.rs
  • ./polkadot/runtime/common/src/claims.rs Refactor pallet claims #6318
  • ./polkadot/runtime/common/src/crowdloan/mod.rs
  • ./polkadot/runtime/common/src/paras_registrar/mod.rs
  • ./polkadot/runtime/common/src/auctions.rs
  • ./polkadot/runtime/common/src/slots/mod.rs
  • ./polkadot/runtime/parachains/src/initializer/benchmarking.rs
  • ./polkadot/runtime/parachains/src/configuration/benchmarking.rs
  • ./polkadot/runtime/parachains/src/paras_inherent/benchmarking.rs
  • ./polkadot/runtime/parachains/src/inclusion/benchmarking.rs
  • ./polkadot/runtime/parachains/src/disputes/benchmarking.rs
  • ./polkadot/runtime/parachains/src/disputes/slashing/benchmarking.rs
  • ./polkadot/runtime/parachains/src/paras/benchmarking.rs
@ggwpez ggwpez added I4-refactor Code needs refactoring. T12-benchmarks This PR/Issue is related to benchmarking and weights. D0-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder. C2-good-first-issue A task for a first time contributor to become familiar with the Polkadot-SDK. labels Oct 23, 2024
@ggwpez ggwpez changed the title Migrate all pallets to benchmarking V2 syntax Refactor pallets to V2 bench syntax Oct 23, 2024
@AurevoirXavier
Copy link
Contributor

AurevoirXavier commented Oct 28, 2024

Some updates:

github-merge-queue bot pushed a commit that referenced this issue Oct 29, 2024
github-merge-queue bot pushed a commit that referenced this issue Oct 29, 2024
Part of:

- #6202

---------

Co-authored-by: Dónal Murray <donalm@seadanda.dev>
mordamax pushed a commit to paritytech-stg/polkadot-sdk that referenced this issue Oct 29, 2024
mordamax pushed a commit to paritytech-stg/polkadot-sdk that referenced this issue Oct 29, 2024
Part of:

- paritytech#6202

---------

Co-authored-by: Dónal Murray <donalm@seadanda.dev>
mordamax pushed a commit to paritytech-stg/polkadot-sdk that referenced this issue Oct 29, 2024
mordamax pushed a commit to paritytech-stg/polkadot-sdk that referenced this issue Oct 29, 2024
Part of:

- paritytech#6202

---------

Co-authored-by: Dónal Murray <donalm@seadanda.dev>
@programskillforverification
Copy link
Contributor

programskillforverification commented Oct 30, 2024

Pick up:

github-merge-queue bot pushed a commit that referenced this issue Oct 30, 2024
Part of:

- #6202.

---------

Co-authored-by: Dónal Murray <donalm@seadanda.dev>
@clangenb
Copy link
Contributor

clangenb commented Oct 30, 2024

Pickup:

@AurevoirXavier
Copy link
Contributor

Pickup:

  • pallet-remark, pallet-scheduler

Hi, I'm working scheduler currently. :)

@clangenb
Copy link
Contributor

Thanks for the quick response 🚀

@clangenb
Copy link
Contributor

clangenb commented Oct 30, 2024

@AurevoirXavier
Copy link
Contributor

Pick up:

  • transaction-storage, indices
  • babe, child-bounties, democracy
  • fast-unstake, glutton

Well... I recommend handling them individually and providing updates here, rather than claiming them all at once.

github-merge-queue bot pushed a commit that referenced this issue Nov 4, 2024
- [x] Removing `without_storage_info` and adding bounds on the stored
types for pallet `claims` - issue
#6289
- [x] Migrating to benchmarking V2 -
#6202

---------

Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
github-merge-queue bot pushed a commit that referenced this issue Nov 4, 2024
Part of:

- #6202.

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
Co-authored-by: Dónal Murray <donal.murray@parity.io>
github-merge-queue bot pushed a commit that referenced this issue Nov 4, 2024
…ove doc (#6316)

Part of:

- #6202.

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Guillaume Thiolliere <guillaume.thiolliere@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
github-merge-queue bot pushed a commit that referenced this issue Nov 4, 2024
Part of:
* #6202

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
github-merge-queue bot pushed a commit that referenced this issue Nov 5, 2024
Part of:
* #6202

---------

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
@re-gius re-gius mentioned this issue Nov 5, 2024
2 tasks
@re-gius
Copy link
Contributor

re-gius commented Nov 5, 2024

Working on pallet-society in #6367

github-merge-queue bot pushed a commit that referenced this issue Nov 5, 2024
Part of:

- #6202.

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
@clangenb
Copy link
Contributor

clangenb commented Nov 6, 2024

Pickup:

Edit: Sorry I haven't seen that you were on fast-unstake: @programskillforverification. Feel free to incorporate my PRs changes into your branch, mine would be finished, and I don't want to snatch work from you.

@clangenb
Copy link
Contributor

clangenb commented Nov 6, 2024

Pickup:

github-merge-queue bot pushed a commit that referenced this issue Nov 7, 2024
…#6315)

Part of:

- #6202.

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Guillaume Thiolliere <guillaume.thiolliere@parity.io>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
github-merge-queue bot pushed a commit that referenced this issue Nov 7, 2024
)

Part of:

- #6202.

---------

Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
Co-authored-by: GitHub Action <action@github.com>
github-merge-queue bot pushed a commit that referenced this issue Nov 8, 2024
…#6290)

Part of:
#6202

---------

Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
Co-authored-by: GitHub Action <action@github.com>
github-merge-queue bot pushed a commit that referenced this issue Nov 11, 2024
Migrates pallet-nft-fractionalization to benchmarking v2 syntax.

Part of:
* #6202

---------

Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
github-merge-queue bot pushed a commit that referenced this issue Nov 12, 2024
Part of:

- #6202.

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
github-merge-queue bot pushed a commit that referenced this issue Nov 13, 2024
- [x] Removing `without_storage_info` and adding bounds on the stored
types for pallet `society` - issue
#6289
- [x] Migrating to benchmarking V2 -
#6202

---------

Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Muharem <ismailov.m.h@gmail.com>
@kianenigma
Copy link
Contributor

Great work being done around all PRs made here. Thank you to all contributors, and thank you @re-gius for coordinating.

  1. All of these PRs can be merged with Silent tag as they are backwards compat.
  2. @re-gius please reward those who work on this and provide a DOT address with a /tip small.

@re-gius
Copy link
Contributor

re-gius commented Nov 15, 2024

  1. @re-gius please reward those who work on this and provide a DOT address with a /tip small.

I'm checking all the merged PRs and rewarding with /tip small one in two for each user (as @shawntabrizi started doing).

@clangenb
Copy link
Contributor

clangenb commented Nov 15, 2024

Pickup:

github-merge-queue bot pushed a commit that referenced this issue Nov 15, 2024
…#6302)

Migrates pallet-nomination-pool-benchmarking to benchmarking syntax v2.

Part of:
* #6202

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Guillaume Thiolliere <guillaume.thiolliere@parity.io>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
@ndkazu
Copy link
Contributor

ndkazu commented Nov 16, 2024

Hello,
I am working on pallet-democracy migration to benchmarks V2 in the following PR:
#6509

github-merge-queue bot pushed a commit that referenced this issue Nov 18, 2024
Part of #6202

---------

Co-authored-by: Guillaume Thiolliere <guillaume.thiolliere@parity.io>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
@Krayt78
Copy link

Krayt78 commented Nov 19, 2024

Hi !
I started working on pallet-offences-benchmark migration to V2 in this draft PR #6543

github-merge-queue bot pushed a commit that referenced this issue Nov 19, 2024
# Description

Migrates pallet-democracy benchmarks to benchmark v2 syntax
This is Part of #6202

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: command-bot <>
Co-authored-by: Dmitry Markin <dmitry@markin.tech>
Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C2-good-first-issue A task for a first time contributor to become familiar with the Polkadot-SDK. D0-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder. I4-refactor Code needs refactoring. T12-benchmarks This PR/Issue is related to benchmarking and weights.
Projects
Status: Backlog
Development

No branches or pull requests

8 participants