-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix zombienet tests: Use compressed runtimes & log errors. #11641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ccf52e3
Use compressed runtimes & log errors.
eskimor 73028f9
Add prdoc
eskimor 9abb321
Remove env var hack
eskimor a69c384
Fix prdoc
eskimor c1b4889
Update from github-actions[bot] running command 'fmt'
github-actions[bot] 6c5ba25
Better error messages
eskimor f73474e
fmt
eskimor 33928a5
Docs
eskimor 9b70135
Cleaned up fix + prdoc
eskimor da55577
Add debug output
eskimor 1d609e1
Fmt
eskimor b876268
Debug
eskimor f204125
More debug + rule out caching
eskimor a790900
Remove debugging output
eskimor 6e74402
Merge branch 'master' into rk-fix-code-upgrade-too-large-in-testing
eskimor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| title: 'Fix runtime upgrade zombienet tests exceeding max_code_size' | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| The wasm-builder's compaction and compression decision now uses the actual | ||
| blob build profile rather than the outer cargo profile. Since debug builds | ||
| already compile WASM blobs with the Release profile, they now also get | ||
| compacted and compressed, producing a properly sized `WASM_BINARY`. | ||
| Previously `WASM_BINARY` in debug builds was identical to `WASM_BINARY_BLOATY`. | ||
| - audience: Node Dev | ||
| description: |- | ||
| Zombienet runtime upgrade tests now use compact (`WASM_BINARY`) runtimes | ||
| instead of `WASM_BINARY_BLOATY`, which had grown beyond the relay chain's | ||
| `max_code_size` limit. A new `submit_sudo_runtime_upgrade` helper verifies | ||
| that the inner sudo dispatch succeeded and renders any dispatch errors using | ||
| runtime metadata (e.g. `ParachainSystem::TooBig` instead of raw byte indices). | ||
| crates: | ||
| - name: substrate-wasm-builder | ||
| bump: patch | ||
| - name: cumulus-zombienet-sdk-helpers | ||
| bump: minor | ||
| - name: cumulus-zombienet-sdk-tests | ||
| bump: none |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of these changes should be required. I don't get why you are touching this file, when you are trying to use compressed files in zombienet. The zombienet test are compiled any way in release mode? Please explain why this is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct fix here: #11765