Skip to content

Conversation

@snowmead
Copy link
Contributor

No description provided.

@snowmead snowmead added B5-clientnoteworthy Changes should be mentioned client-related release notes B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D2-noauditneeded🙈 PR doesn't need to be audited labels Jan 30, 2026
snowmead and others added 5 commits January 30, 2026 15:06
This commit fixes multiple build issues that arose from the polkadot-sdk
stable2503 upgrade when running `cargo test --features runtime-benchmarks`.

Changes:

1. Downgrade Rust to 1.90 (from 1.91)
   - polkavm-linker generates target specs with "target-pointer-width": "64" (string)
   - Rust 1.91 (PR #144443) changed this to require an integer
   - Added documentation explaining this incompatibility in rust-toolchain.toml

2. Add `extern crate alloc;` to pallets
   - Required after polkadot-sdk PR #7043 removed sp-std
   - Added to: bucket-nfts, file-system, providers

3. Fix benchmark helper trait bounds
   - pallet_nfts now requires BenchmarkHelper impl for test signature types
   - Added TestNftsBenchmarkHelper to payment-streams and file-system precompile mocks

4. Fix proofs-dealer benchmark constraints
   - Changed ForestVerifier proof type from CompactProof to ShpCompactProof
   - ShpCompactProof implements DecodeWithMemTracking required by stable2503

5. Trim runtime benchmarks to StorageHub pallets only
   - Removed frame_system, pallet_balances, and other non-StorageHub pallets
   - Reduces benchmark maintenance burden

6. Remove rococo-native feature from polkadot-cli
   - Avoids pallet-xcm -> pallet-revive dependency chain
   - External relay chain via zombienet/RPC still works

7. Add runtime-benchmarks feature to file-system precompile
   - Required for proper feature propagation

Co-Authored-By: Claude Opus 4.5 <[email protected]>
  1. Set XcmEventEmitter to pallet_xcm::Pallet<Runtime> in parachain and xcm-simulator XCM configs for proper XCM event emission

  2. Update relay token reserve transfer test to reflect stable2503 behavior:
    - Network native asset reserve transfers are now blocked at pallet_xcm
 level with InvalidAssetUnknownReserve (Asset Hub Migration prep, PR #9544)
    - Test now expects failure at source rather than at destination
    - Balances remain unchanged since transfer is rejected early
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B5-clientnoteworthy Changes should be mentioned client-related release notes B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes breaking Needs to be mentioned in breaking changes D2-noauditneeded🙈 PR doesn't need to be audited

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants