Skip to content

Add benchmarks for robonomics pallets#387

Merged
akru merged 11 commits intoairalab:feat/release-v4from
dkuanyshbaev:feat/release-v4
Oct 27, 2025
Merged

Add benchmarks for robonomics pallets#387
akru merged 11 commits intoairalab:feat/release-v4from
dkuanyshbaev:feat/release-v4

Conversation

@dkuanyshbaev
Copy link
Copy Markdown
Member

Add benchmarks and weights

Copy link
Copy Markdown
Member

@akru akru left a comment

Choose a reason for hiding this comment

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

Great, please fix year (2024->2025) in comments.

@akru akru requested a review from Copilot October 26, 2025 07:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive benchmarking infrastructure and auto-generated weights for all Robonomics pallets, supporting the v4 release. The implementation includes benchmark scripts, weight templates, and integration with the runtime.

Key changes:

  • Added benchmarking support and auto-generated weights for 5 Robonomics pallets (datalog, digital-twin, launch, liability, rws)
  • Created weight generation infrastructure (template and build script)
  • Integrated benchmarks into the runtime with proper feature flags

Reviewed Changes

Copilot reviewed 29 out of 30 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/weights/frame-weight-template.hbs Handlebars template for generating weight files from benchmark results
scripts/weights/benchmark-commands.sh Shell script to run benchmarks for all pallets
runtime/robonomics/src/lib.rs Updated runtime configuration to use auto-generated weights and added benchmark API implementations
runtime/robonomics/Cargo.toml Updated runtime-benchmarks feature configuration
frame/*/src/weights.rs Auto-generated weight files for all pallets
frame/*/src/lib.rs Updated pallet configurations to use WeightInfo trait
frame/*/src/benchmarking.rs Benchmark implementations for all pallets
frame/*/Cargo.toml Added frame-benchmarking dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akru akru changed the title Feat/release v4 Add benchmarks for robonomics pallets Oct 26, 2025
@akru akru merged commit bed56ba into airalab:feat/release-v4 Oct 27, 2025
akru added a commit that referenced this pull request Nov 1, 2025
akru added a commit that referenced this pull request Nov 6, 2025
* Switch to OMNI node code structure with dedicated runtime

* Update Cargo.lock

* Added custom chain loader

* Local development node compile & run ok

* Added migrations

* Fix srtool runtime build

* Uplift to stable2506-1

* Uplift to stable2509

* Build fixes

* Bump omni node lib version

* Added build runtime script

* Add benchmarks for robonomics pallets (#387)

* Fix consensus engine migration

* Collator candidates 100 -> 50

* [CI] Fix license check header

* Add license header into weights files

* Feat/release v4 (#388)

* Add license header to weights template

* Add benchmarks section

* Fix the numbering

* Fix the numbering

* Add remove_source to digital twin pallet

* Fix readme

* Updated weights

* Update frame/digital-twin/src/lib.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Aleksandr Krupenkin <mail@akru.me>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* [CI] update rust in workflows, fix Cargo.toml format

* [CI] reusable workflows & install rust action

* [CI] dont run tests when base checks failed

* [CI] merge base_checks and tests

* [CI] fix workflow name

* [CI] fix concurrency deadlock

* [CI] enable rust cache, fix release workflow

* g[CI] disable cache (automatically enabled by setup-rust-toolchain

* [CI] dont free space it takes a lot of time

* [CI] install solc

* [CI] install resolc

* [CI] install polly

* [CI] simple tests

* [CI] remove unised deps installer

* [CI] build in production profile (for caching)

* [CI] install protobuf deps

* [CI] added docs action

* [CI] build release runtime with on-chain feature

* Fix omni node tests

* Fix frame tests

* [CI] disable benchmarks feature from tests

* Fix warnings for pallets

* Fix warnings for runtime

---------

Co-authored-by: Denis K. <45650192+dkuanyshbaev@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants