Open
Conversation
Signed-off-by: Giles Cope <gilescope@gmail.com>
Contributor
Contributor
|
Ok, I got to the bottom of why it was needed:
|
NachoPal
approved these changes
Mar 8, 2026
Contributor
Author
|
Is SKIP_FRAME_STORAGE_ACCESS_TEST_RUNTIME_WASM_BUILD a thing? I don't see any reference to it in the polkadot repo? |
Contributor
|
gilescope
commented
Mar 9, 2026
Contributor
ozgb
approved these changes
Mar 9, 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.









Overview
Remove
frame-storage-access-test-runtimefrom the runtime's[build-dependencies]. This polkadot-sdk test crate was accidentally included in PR #42 (Federated Authority, Sep 2025) — likely copy-pasted from a polkadot-sdk template. It was never imported inbuild.rsor any Rust code.Because it had
default-features = true(which enablessubstrate-wasm-builder), it built its own separate WASM runtime on every release build, adding ~2.5 minutes of compile time and pulling in 179 unnecessary crates including the entire parachain/cumulus/XCM stack — none of which belong in a sidechain node.Build time improvement (clean release build):
No functional changes. The runtime WASM output is identical.
🗹 TODO before merging
📌 Submission Checklist
🧪 Testing Evidence
Clean release build with
cargo build --timings -p midnight-node --release:Before: 9m 18s, 1,791 crates,
frame-storage-access-test-runtime build script (run)at 122.8sAfter: 6m 55s, 1,612 crates, no
frame-storage-access-test-runtimeor parachain-related entriesWASM runtime artifacts produced correctly (compact, compressed variants)
Additional tests are provided (if possible)
🔱 Fork Strategy
Links
464f1a78, "done")