Skip to content

Add storage-weight-reclaim to polkadot system chains#1047

Merged
bkchr merged 14 commits into
mainfrom
skunert/enable-reclaim-polkadot
Jan 13, 2026
Merged

Add storage-weight-reclaim to polkadot system chains#1047
bkchr merged 14 commits into
mainfrom
skunert/enable-reclaim-polkadot

Conversation

@skunert

@skunert skunert commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

This adds storage-weight-reclaim to polkadot-system-chains.

@skunert

skunert commented Jan 5, 2026

Copy link
Copy Markdown
Contributor Author

/cmd bench --runtime asset-hub-polkadot bridge-hub-polkadot coretime-polkadot collectives-polkadot people-polkadot --pallet cumulus_pallet_weight_reclaim

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found a few maintainability issues: trailing whitespace introduced in multiple new autogenerated weight files and some runtime files, plus test updates relying on implicit .into() type inference (can become brittle).

Comment thread system-parachains/bridge-hubs/bridge-hub-polkadot/tests/tests.rs
Comment thread system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs
Comment thread system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
Comment thread system-parachains/collectives/collectives-polkadot/src/lib.rs
Comment thread system-parachains/coretime/coretime-polkadot/src/lib.rs
Comment thread system-parachains/people/people-polkadot/src/lib.rs
@github-actions

github-actions Bot commented Jan 5, 2026

Copy link
Copy Markdown

Command "bench --runtime asset-hub-polkadot bridge-hub-polkadot coretime-polkadot collectives-polkadot people-polkadot --pallet cumulus_pallet_weight_reclaim" has started 🚀 See logs here

…ot bridge-hub-polkadot coretime-polkadot collectives-polkadot people-polkadot --pallet cumulus_pallet_weight_reclaim'
@github-actions

github-actions Bot commented Jan 5, 2026

Copy link
Copy Markdown

Command "bench --runtime asset-hub-polkadot bridge-hub-polkadot coretime-polkadot collectives-polkadot people-polkadot --pallet cumulus_pallet_weight_reclaim" has finished ✅ See logs here

Details

Subweight results:
File Extrinsic Old New Change [%]
system-parachains/people/people-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 11.47us Added
system-parachains/coretime/coretime-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 12.62us Added
system-parachains/collectives/collectives-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 12.31us Added
system-parachains/bridge-hubs/bridge-hub-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 7.52us Added
system-parachains/asset-hubs/asset-hub-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 14.05us Added

@skunert

skunert commented Jan 6, 2026

Copy link
Copy Markdown
Contributor Author

/cmd bench --runtime asset-hub-polkadot --pallet cumulus_pallet_weight_reclaim

@github-actions

github-actions Bot commented Jan 6, 2026

Copy link
Copy Markdown

Command "bench --runtime asset-hub-polkadot --pallet cumulus_pallet_weight_reclaim" has started 🚀 See logs here

@github-actions

github-actions Bot commented Jan 6, 2026

Copy link
Copy Markdown

Command "bench --runtime asset-hub-polkadot --pallet cumulus_pallet_weight_reclaim" has finished ✅ See logs here

Details

Subweight results:
File Extrinsic Old New Change [%]
system-parachains/people/people-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 11.47us Added
system-parachains/coretime/coretime-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 12.62us Added
system-parachains/collectives/collectives-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 12.31us Added
system-parachains/bridge-hubs/bridge-hub-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 7.52us Added
system-parachains/asset-hubs/asset-hub-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs storage_weight_reclaim 14.66us Added

@skunert skunert marked this pull request as ready for review January 6, 2026 14:05

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found 2 cross-cutting correctness/maintainability risks in the new StorageWeightReclaim TransactionExtension wiring: (1) potential ordering/fee-impact ambiguity depending on how the wrapper sequences post_dispatch relative to fee-charging extensions, and (2) tests now rely on implicit .into() conversions that make the signed-extra composition less explicit and easier to break with future extension changes.

Comment thread system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs
Comment thread system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
Comment thread system-parachains/collectives/collectives-polkadot/src/lib.rs
Comment thread system-parachains/coretime/coretime-polkadot/src/lib.rs
Comment thread system-parachains/people/people-polkadot/src/lib.rs
Comment thread system-parachains/bridge-hubs/bridge-hub-polkadot/tests/tests.rs
fellowship-merge-bot Bot added a commit that referenced this pull request Jan 7, 2026
…1049)

While working on #1047
I noticed that the `/cmd bench` command commits `solc` and `resolc`
binaries. This is unwanted.

I propose to not put the binaries into the main repo directory, but use
the `RUNNER_TEMP` directory. Then we have a general solution and don't
need to mess with manual exclusion of whatever tooling we want in the
future in the git workflow.

Example commit created by bot which shows the issue:
1854d62

Example commit which shows that fix works (no binaries present):
a4e34df

- [x] Does not require a CHANGELOG entry

Co-authored-by: fellowship-merge-bot[bot] <151052383+fellowship-merge-bot[bot]@users.noreply.github.com>
@skunert skunert requested review from acatangiu, bkchr and eskimor January 8, 2026 08:26
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown

Review required! Latest push from author must always be reviewed

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found several whitespace-only line additions (likely trailing whitespace) across the new runtime/weights files, and a changelog entry that should include the PR reference for traceability.


Suggestions that couldn't be attached to a specific line

system-parachains/asset-hubs/asset-hub-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs:4,16,24,39,44

The newly added auto-generated weights file includes whitespace-only lines (blank lines containing spaces). Strip whitespace on empty lines to prevent whitespace-sensitive CI/lint failures and reduce noisy diffs.


system-parachains/bridge-hubs/bridge-hub-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs:4,16,24,39,44

The newly added auto-generated weights file includes whitespace-only lines (blank lines containing spaces). Strip whitespace on empty lines to prevent whitespace-sensitive CI/lint failures and reduce noisy diffs.


system-parachains/collectives/collectives-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs:4,16,24,39,44

The newly added auto-generated weights file includes whitespace-only lines (blank lines containing spaces). Strip whitespace on empty lines to prevent whitespace-sensitive CI/lint failures and reduce noisy diffs.


system-parachains/coretime/coretime-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs:4,16,24,39,44

The newly added auto-generated weights file includes whitespace-only lines (blank lines containing spaces). Strip whitespace on empty lines to prevent whitespace-sensitive CI/lint failures and reduce noisy diffs.


system-parachains/people/people-polkadot/src/weights/cumulus_pallet_weight_reclaim.rs:4,16,24,39,44

The newly added auto-generated weights file includes whitespace-only lines (blank lines containing spaces). Strip whitespace on empty lines to prevent whitespace-sensitive CI/lint failures and reduce noisy diffs.

Comment thread CHANGELOG.md Outdated

### Added
- AH Polkadot - A new stepped curve primitive. Used for the 'Hard Pressure' inflation changes from [Ref 1710](https://polkadot.subsquare.io/referenda/1710) ([#898](https://github.com/polkadot-fellows/runtimes/pull/898)).
- Add `cumulus-pallet-weight-reclaim` to all Polkadot system parachains (Asset Hub, Bridge Hub, Coretime, People, Collectives) for storage weight reclaim functionality.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Changelog entry lacks a PR/link reference and ends without a consistent style/format compared to surrounding bullets. Add the PR number/link (and keep punctuation consistent) to make the change traceable (e.g., "... functionality. (#NNNN)").

impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A whitespace-only line was added (diff shows a standalone added line). Remove trailing whitespace/blank lines containing spaces to avoid formatting/CI checks that fail on whitespace-only changes.

impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A whitespace-only line was added (diff shows a standalone added line). Remove trailing whitespace/blank lines containing spaces to avoid formatting/CI checks that fail on whitespace-only changes.

impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A whitespace-only line was added (diff shows a standalone added line). Remove trailing whitespace/blank lines containing spaces to avoid formatting/CI checks that fail on whitespace-only changes.

impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A whitespace-only line was added (diff shows a standalone added line). Remove trailing whitespace/blank lines containing spaces to avoid formatting/CI checks that fail on whitespace-only changes.

impl cumulus_pallet_weight_reclaim::Config for Runtime {
type WeightInfo = weights::cumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A whitespace-only line was added (diff shows a standalone added line). Remove trailing whitespace/blank lines containing spaces to avoid formatting/CI checks that fail on whitespace-only changes.

@acatangiu acatangiu mentioned this pull request Jan 13, 2026
# Conflicts:
#	CHANGELOG.md
#	system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs
#	system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
@bkchr

bkchr commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

/cmd fmt

@github-actions

Copy link
Copy Markdown

Command "fmt" has started 🚀 See logs here

@github-actions

Copy link
Copy Markdown

Command "fmt" has finished ✅ See logs here

@acatangiu

Copy link
Copy Markdown
Contributor

/merge

@bkchr bkchr merged commit 075a913 into main Jan 13, 2026
2 checks passed
@bkchr bkchr deleted the skunert/enable-reclaim-polkadot branch January 13, 2026 09:11
@fellowship-merge-bot

Copy link
Copy Markdown
Contributor

There was a problem running the action.

❌😵❌

Please find more information in the logs.

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.

6 participants