Add benchmarks for robonomics pallets#387
Merged
akru merged 11 commits intoairalab:feat/release-v4from Oct 27, 2025
Merged
Conversation
akru
requested changes
Oct 26, 2025
Member
akru
left a comment
There was a problem hiding this comment.
Great, please fix year (2024->2025) in comments.
Contributor
There was a problem hiding this comment.
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add benchmarks and weights