Skip to content

omni-node: fix benchmark pallet to work with --runtime#8594

Merged
iulianbarbu merged 27 commits intoparitytech:masterfrom
iulianbarbu:ib-benchmark-parity
Jun 4, 2025
Merged

omni-node: fix benchmark pallet to work with --runtime#8594
iulianbarbu merged 27 commits intoparitytech:masterfrom
iulianbarbu:ib-benchmark-parity

Conversation

@iulianbarbu
Copy link
Contributor

@iulianbarbu iulianbarbu commented May 21, 2025

Description

The PR fixes the logic so that polkadot-omni-node benchmark pallet subcommand pulls in the appropriate arguments, while not needing to instatiate the full node configuration, which requires always passing --chain flag.

Integration

Developers will be able to use polkadot-omni-node benchmark pallet with --runtime flag, same as frame-omni-bencher.

Review Notes

Did a few things in this PR:

  • made polkadot-omni-node benchmark pallet not require always the --chain flag
  • removed the deprecated run method for benchmark pallet from benchmarking-cli.
  • removed the check that disallows the chain flag from frame-omni-bencher since it is allowed and usable

TODO:

  • a few more testing of the commands with both --runtime and --chain.
  • remove runtime-benchmarks feature guard for benchmark cmds

Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
@iulianbarbu iulianbarbu self-assigned this May 21, 2025
@iulianbarbu iulianbarbu requested a review from serban300 May 21, 2025 11:50
@iulianbarbu iulianbarbu changed the title omni-node: fix benchmark pallet to work just with --runtime too omni-node: fix benchmark pallet to work with --runtime May 21, 2025
@iulianbarbu
Copy link
Contributor Author

/cmd prdoc

github-actions bot and others added 2 commits May 21, 2025 11:55
@iulianbarbu iulianbarbu added the I2-bug The node fails to follow expected behavior. label May 21, 2025
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
@iulianbarbu iulianbarbu requested review from ggwpez and skunert May 21, 2025 12:10
@bkontur
Copy link
Contributor

bkontur commented May 21, 2025

Developers will be able to use polkadot-omni-node benchmark pallet with --runtime flag, same as frame-omni-bencher.

@iulianbarbu Does this apply also to polkadot-parachain-bin?

@franciscoaguirre This is something you asked me about in the morning. Looks like Iulian "heard" our element conversation :D

@iulianbarbu
Copy link
Contributor Author

Does this apply also to polkadot-parachain-bin?

Yes it does.

iulianbarbu and others added 2 commits May 21, 2025 15:17
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
@iulianbarbu iulianbarbu enabled auto-merge May 22, 2025 05:37
@iulianbarbu iulianbarbu disabled auto-merge May 22, 2025 05:37
iulianbarbu and others added 6 commits June 2, 2025 17:37
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
iulianbarbu and others added 5 commits June 3, 2025 14:02
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
@iulianbarbu iulianbarbu added this pull request to the merge queue Jun 4, 2025
Merged via the queue into paritytech:master with commit d9e16fd Jun 4, 2025
246 checks passed
@iulianbarbu iulianbarbu deleted the ib-benchmark-parity branch June 4, 2025 16:49
ordian added a commit that referenced this pull request Jun 4, 2025
* master:
  omni-node: fix `benchmark pallet` to work with `--runtime` (#8594)
  Handle and suppress "New unknown `FromSwarm` libp2p event" warning (#8731)
  Implement detailed logging for XCM failures (#8724)
  [pallet-revive] contract's nonce starts at 1 (#8734)
  sync/fix: Clear gap sync on known imported blocks (#8445)
  [PoP] Add personhood tracking pallets (#8164)
  client/net: Use litep2p as the default network backend (#8461)
  Unflake `returns_status_for_pruned_blocks` (#8709)
  [AHM] Report the weights of epmb pallet to expose kusama and polkadot weights (#8704)
  Remove all XCM dependencies from `pallet-revive` (#8584)
  Docker master image tag fix (#8711)
  Record ed as part of the storage deposit (#8718)
  [pallet-revive] update dry-run logic (#8662)
  feat: add collator peer ID to ParachainInherentData (#8708)
  Nest errors in pallet-xcm (#7730)
  pallet-assets ERC20 precompile (#8554)
  Broker: Introduce min price + adjust renewals to lower market. (#8630)
  [AHM] Staking async fixes for XCM and election planning (#8422)
  Staking (EPMB): Add defensive error handling to voter snapshot creation and solution verification (#8687)
pgherveou pushed a commit that referenced this pull request Jun 11, 2025
# Description

The PR fixes the logic so that `polkadot-omni-node benchmark pallet`
subcommand pulls in the appropriate arguments, while not needing to
instatiate the full node configuration, which requires always passing
`--chain` flag.

## Integration

Developers will be able to use `polkadot-omni-node benchmark pallet`
with `--runtime` flag, same as `frame-omni-bencher`.

## Review Notes

Did a few things in this PR:
- made `polkadot-omni-node benchmark pallet` not require always the
`--chain` flag
- removed the deprecated `run` method for `benchmark pallet` from
`benchmarking-cli`.
- removed the check that disallows the chain flag from
`frame-omni-bencher` since it is allowed and usable

TODO:
- [x] a few more testing of the commands with both `--runtime` and
`--chain`.
- [x] remove `runtime-benchmarks` feature guard for benchmark cmds

---------

Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
# Description

The PR fixes the logic so that `polkadot-omni-node benchmark pallet`
subcommand pulls in the appropriate arguments, while not needing to
instatiate the full node configuration, which requires always passing
`--chain` flag.

## Integration

Developers will be able to use `polkadot-omni-node benchmark pallet`
with `--runtime` flag, same as `frame-omni-bencher`.

## Review Notes

Did a few things in this PR:
- made `polkadot-omni-node benchmark pallet` not require always the
`--chain` flag
- removed the deprecated `run` method for `benchmark pallet` from
`benchmarking-cli`.
- removed the check that disallows the chain flag from
`frame-omni-bencher` since it is allowed and usable

TODO:
- [x] a few more testing of the commands with both `--runtime` and
`--chain`.
- [x] remove `runtime-benchmarks` feature guard for benchmark cmds

---------

Signed-off-by: Iulian Barbu <iulian.barbu@parity.io>
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

I2-bug The node fails to follow expected behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants