fix: expose try-runtime feature in bridge-hub-test-utils#11211
Open
Kanasjnr wants to merge 23 commits into
Open
fix: expose try-runtime feature in bridge-hub-test-utils#11211Kanasjnr wants to merge 23 commits into
Kanasjnr wants to merge 23 commits into
Conversation
Contributor
Author
|
/cmd prdoc --audience node_dev --bump patch |
Contributor
Author
|
/cmd label T6-XCM I5-enhancement R0-no-crate-publish-required |
Contributor
Author
|
@pandres95 Kindly review |
rockbmb
requested changes
Feb 28, 2026
pandres95
approved these changes
Mar 2, 2026
Contributor
|
@Kanasjnr please, apply this patch below to this branch, when somebody is using
|
Contributor
|
Review required! Latest push from author must always be reviewed |
Contributor
Author
updated |
Contributor
Author
|
@bkontur @pandres95 @rockbmb Pinging you on this kindly help review |
…ly set keys (paritytech#11197) Tracks whether session keys were set externally (via `SessionInterface`, e.g. from AH) or locally. Transitions between the two paths correctly manage the key deposit and consumer ref in both directions. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…e_dev --bump patch'
…1223) Fix failing semver check due to old compiled-in cargo in parity-publish by: 1. Upgrading `parity-publish` to the latest version. 2. Fixing its build dependencies installation with `apt-get`. ``` Error: failed to load manifest for workspace member `/__w/polkadot-sdk/polkadot-sdk/bridges/bin/runtime-common` referenced by workspace at `/__w/polkadot-sdk/polkadot-sdk/Cargo.toml` Caused by: 0: failed to load manifest for dependency `bp-header-chain` ... 23: failed to load manifest for dependency `pallet-revive` 24: failed to parse manifest at `/__w/polkadot-sdk/polkadot-sdk/substrate/frame/revive/Cargo.toml` 25: feature `edition2024` is required The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.83.0). Consider adding `cargo-features = ["edition2024"]` to the top of Cargo.toml (above the [package] table) to tell Cargo you are opting in to use this unstable feature. ```
This PR brings litep2p [v0.13.1](https://github.com/paritytech/litep2p/releases/tag/v0.13.1) to polkadot-sdk. The improvements include: 1. When dialing remote peers, all addresses from the DHT are tried, starting from the public addresses. Before litep2p v0.13.1, only up to 8 addresses were tried, leading to dial failures when due to misconfiguration there was a lot of private addresses in the DHT. 2. Protocols are now notified about connected peers before the library user, fixing failures in opening substreams when the user command arrived before the connection event. 3. Ping protocol implementation now conforms to the spec. This improves the connection stability between polkadot-sdk and [smoldot](https://github.com/smol-dot/smoldot) dramatically. Before this PR, smoldot always disconnected polkadot-sdk peers every 15 seconds for 5 seconds due to failed pings. --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Closes: paritytech#11205 --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lukasz Rubaszewski <117115317+lrubasze@users.noreply.github.com>
This is fix for failing job: https://github.com/paritytech/polkadot-sdk/actions/runs/22578558700/job/65404381763?pr=10215 <img width="2079" height="544" alt="image" src="https://github.com/user-attachments/assets/37d07015-fa22-4079-ab3f-8315dcf1565c" /> Inspired by: paritytech#11223
… for emulated chains
…rella regeneration)
c224a5f to
748488e
Compare
Contributor
Author
|
@bkontur @rockbmb @pandres95 Pinging you on this again the pr is ready for review |
pandres95
approved these changes
Mar 23, 2026
Contributor
Author
08bc7ea to
3c045a6
Compare
3c045a6 to
c48cb69
Compare
a06a974 to
1cd8796
Compare
rockbmb
requested changes
Apr 15, 2026
ggwpez
reviewed
May 20, 2026
Drop prdoc entries for other PRs (paritytech#11197, paritytech#11204, paritytech#11224) that were accidentally included on this branch.
Required by check-zepter and check-umbrella after master added pallet-accumulate-and-forward and pallet-dap to emulated tests common.
ggwpez
approved these changes
May 22, 2026
bkontur
approved these changes
May 25, 2026
rockbmb
approved these changes
May 26, 2026
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.
Description
Fixes and should probably close #10962
When running
cargo test --features try-runtime(or--all-features) on BridgeHub runtimes, compilation failed with:This happened because
bridge-hub-test-utilsdid not declare atry-runtimefeature, so the flag never propagated toasset-test-utils→assets-common.As a result,
assets-commonwas compiled withouttry-runtime, whileframe-supporthad it enabled → thetry_successful_originmethod (guarded by#[cfg(feature = "try-runtime")]) was missing, causing the trait implementation error.Changes:
try-runtimefeature tobridge-hub-test-utils/Cargo.tomlthat forwards the flag only to the 16 dependencies that actually declare/support it.cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.tomlcumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.tomlAfter these changes,
cargo check --features try-runtimeandcargo test --release --locked --all-features(withSKIP_PALLET_REVIVE_FIXTURES=1) pass cleanly on both rococo and westend runtimes.The real BridgeHub Kusama & Polkadot runtimes (in polkadot-fellows/runtimes) will need the same one-line activation in their
try-runtimefeature lists as seen in this error (planned as a follow-up PR).Integration
Downstream projects / other runtimes that depend on
bridge-hub-test-utilsas a dev-dependency and want to usetry-runtimetests should add:in their runtime
Cargo.toml.This is the same pattern already used by
asset-test-utils,parachains-common, etc.No crate publish is required this is only a feature addition in a test-utils crate.
Review Notes
try-runtimeforwarding matches exactly the crates in polkadot-sdk that declare the feature (verified against your earlier table: 16 crates with, 9 without).No leftover TODOs.
Checklist
T6-XCM,D2-trivial,I5-enhancementor similar)Bot Commands
You can use the following bot commands in comments to help manage your PR:
Labeling (Self-service for contributors):
/cmd label T1-FRAME- Add a single label/cmd label T1-FRAME R0-no-crate-publish-required- Add multiple labels/cmd label T6-XCM D2-substantial I5-enhancement- Add multiple labels at onceOther useful commands:
/cmd fmt- Format code (cargo +nightly fmt and taplo)/cmd prdoc- Generate PR documentation/cmd bench- Run benchmarks/cmd update-ui- Update UI tests/cmd --help- Show help for all available commands